react-native-code-push
react-native-code-push copied to clipboard
iOS app doesn't update in all the devices.
Our iOS app is not updating with codepush in all the devices. After completing the release, not all the devices with the previous version get the new one uploaded to the code push server. This happens in all our environments, prod and nonprod. The described unexpected behavior occurs only with iOS devices, Android works correctly.
Steps to Reproduce
- Release a new version (with JS changes) to the code push server.
- Follow the steps we set in the code push decorator config to get the changes (
checkFrequency: CodePush.CheckFrequency.ON_APP_RESUME
andinstallMode: CodePush.InstallMode.ON_NEXT_SUSPEND
). - From 10 devices, 4 to 6 don't download the new version.
Expected Behavior
All devices with previous version should install the new one released to the code push server.
Actual Behavior
Almost 50% of devices don't get the new version by following the configuration steps, we need to do other steps and even so, some of them never get the update.
Tests were run in different devices: iPhone X, Xr, 11, 12, 13 as well as with different iOS versions. Every time we changed the environment, the results changed. For example, if a specific device failed to update in Staging, it updated successfully in Prod.
We even changed the mandatory
flag to true
but the results were the same. Working devices get the update immediately, but not working ones still don't get the update
We ran out of ideas about what the root cause of this behavior could be.
Environment
- react-native-code-push version: 5.7.0
- react-native version: 0.61.5
- iOS: 14.4, 15.3.1, 15.4.4, 16.0
- Does this reproduce on a debug build or release build? This reproduce on both release and debug builds
- Does this reproduce on a simulator, or only on a physical device? *Physical devices, we don't use code push with simulators.
the same problem
same problem :(
Do you use any bridge libraries? I ran into this problem due to the webengage bridge. It overrides the default code
return [CodePush bundleURL]
and does not update the code via codepush
Same issue here! Any updates on a workaround? Does the appcenter-cli issue above fixes the issue?
Experiencing same issue. Please help
same problem, it's happened on android & iOS. not all the devices get the update from codepush
the result from codePushStatusDidChange
got codePush.SyncStatus.UP_TO_DATE
try to add a mandatory flag, but it still same
This should be treated as a show-stopper. Any workarounds?
This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.
This issue will now be closed because it hasn't had any activity for 15 days after stale. Please feel free to open a new issue if you still have a question/issue or suggestion.
Facing same issue. Codepush updating only few iOS devices. Android is working fine. Please help.
RIght, just confirmed this here again as well with latest releases of all components. Codepush works fine on iPad (iOS v16.3), but apparently loads and then immediately rolls back on iPhone (iOS v16.1)
Facing same issue. Codepush updating only few iOS devices. Please help
Same issue with our production application
Having the same issue and what's worked for me is pushing out another incremental release, however small, just to pass the diff check.
I'm new to Codepush so I've only had to do it a handful of times but so far that's worked.
Edit: The incremental increase doesn't always work. Sometimes it takes several until I see an update, so this is not a great fix. Has anyone else found a more consistent approach?
I'm facing the same issue