on iOS, After modifying some features and stuff in our app we just released both new versions over the air and all goes ok. The app discovers the update accordingly, then installs it and so restarts the app.
Everything was ok until I realize that when I restart the app it kind of roll-back to the default store version (w/o our new updates).
But on android, it is working fine.
I am using:
"react-native": "0.66.4",
"react-native-code-push": "^7.1.0",
React Native Code:
CodePush.sync(
{
installMode: CodePush.InstallMode.IMMEDIATE,
mandatoryInstallMode: CodePush.InstallMode.IMMEDIATE,
updateDialog: true,
},
Xcode Code:
#import <CodePush/CodePush.h>
...
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
{
#if DEBUG
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
#else
// return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
return [CodePush bundleURL];
#endif
}
Any suggestion would be appreciated.