Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.
This repository was archived by the owner on May 20, 2025. It is now read-only.

[Android] App restart loop when using InstallMode.ON_NEXT_RESUME #841

@AndrewJack

Description

@AndrewJack

Description

When InstallMode.ON_NEXT_RESUME is used on android the app will go into a restart loop and crash the app.

Reproduction

  1. Initialise with the following code push options
      {
           checkFrequency: CheckFrequency.ON_APP_RESUME,
           installMode: InstallMode.ON_NEXT_RESUME
       }
    
  2. Run the app - wait for it to download the update
  3. Press the home button
  4. Resume the app from the multi task view
    Observe: App will go black and into a loop of onResume -> loadBundle

I think the cause is around here - https://github.com/Microsoft/react-native-code-push/blob/master/android/app/src/main/java/com/microsoft/codepush/react/CodePushNativeModule.java#L470

Additional Information

  • react-native-code-push version: 2.0.3-beta
  • react-native version: 0.44
  • iOS/Android/Windows version: Android 7.1
  • Does this reproduce on a debug build or release build? Release build
  • Does this reproduce on a simulator, or only on a physical device? Reproduced on a device

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions