Hi, my app is in debug mode, and I add this to app/build.gradle
project.ext.react = [
bundleInDebug: true
]
Steps to Reproduce
1.app check update and the update is installed
ReactNativeJS: [CodePush] Checking for update.
ReactNativeJS: [CodePush] Awaiting user action.
ReactNativeJS: [CodePush] Downloading package.
ReactNative: [CodePush] Applying full update.
ReactNativeJS: [CodePush] Installing update.
ReactNativeJS: [CodePush] Update is installed and will be run on the next app restart.
2. restart app
ReactNative: [CodePush] Loading JS bundle from "/data/user/0/pkgName/files/CodePush/33601dfc1a2ec23e07ab178f548e3f1aa2a50f07f1fcf61f6829f278951417f7/CodePush/index.android.bundle"
ReactNative: [CodePush] Update did not finish loading the last time, rolling back to a previous version.
ReactNative: [CodePush] Loading JS bundle from "assets://index.android.bundle"
3.open the react-native activity
com.facebook.jni.CppException: facebook::react::Recoverable: Could not open file/data/user/0/pkgName/files/CodePush/33601dfc1a2ec23e07ab178f548e3f1aa2a50f07f1fcf61f6829f278951417f7/CodePush/index.android.bundle: No such file or directory
Expected Behavior
update can apply to my app
Actual Behavior
update not work
Reproducible Demo
Environment
- react-native-code-push version: 5.6.0
- react-native version: 0.59.8
- iOS/Android/Windows version: Android Q
- Does this reproduce on a debug build or release build? debug build
- Does this reproduce on a simulator, or only on a physical device? physical device Google pixel 2
project integrates react-native and react-native-navigation v2 into existing native app
Hi, my app is in debug mode, and I add this to app/build.gradle
Steps to Reproduce
1.app check update and the update is installed
ReactNativeJS: [CodePush] Checking for update.
ReactNativeJS: [CodePush] Awaiting user action.
ReactNativeJS: [CodePush] Downloading package.
ReactNative: [CodePush] Applying full update.
ReactNativeJS: [CodePush] Installing update.
ReactNativeJS: [CodePush] Update is installed and will be run on the next app restart.
2. restart app
ReactNative: [CodePush] Loading JS bundle from "/data/user/0/pkgName/files/CodePush/33601dfc1a2ec23e07ab178f548e3f1aa2a50f07f1fcf61f6829f278951417f7/CodePush/index.android.bundle"
ReactNative: [CodePush] Update did not finish loading the last time, rolling back to a previous version.
ReactNative: [CodePush] Loading JS bundle from "assets://index.android.bundle"
3.open the react-native activity
com.facebook.jni.CppException: facebook::react::Recoverable: Could not open file/data/user/0/pkgName/files/CodePush/33601dfc1a2ec23e07ab178f548e3f1aa2a50f07f1fcf61f6829f278951417f7/CodePush/index.android.bundle: No such file or directory
Expected Behavior
update can apply to my app
Actual Behavior
update not work
Reproducible Demo
Environment
project integrates react-native and react-native-navigation v2 into existing native app