react-native-code-push icon indicating copy to clipboard operation
react-native-code-push copied to clipboard

iOS app doesn't update in all the devices.

Open mariogarciat opened this issue 2 years ago • 3 comments

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

  1. Release a new version (with JS changes) to the code push server.
  2. Follow the steps we set in the code push decorator config to get the changes (checkFrequency: CodePush.CheckFrequency.ON_APP_RESUME and installMode: CodePush.InstallMode.ON_NEXT_SUSPEND).
  3. 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.

mariogarciat avatar Sep 22 '22 21:09 mariogarciat

the same problem

bonnmh avatar Sep 26 '22 02:09 bonnmh

same problem :(

hoanglam10499 avatar Sep 27 '22 06:09 hoanglam10499

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

felipegmg avatar Sep 29 '22 20:09 felipegmg

Same issue here! Any updates on a workaround? Does the appcenter-cli issue above fixes the issue?

knro avatar Oct 19 '22 05:10 knro

Experiencing same issue. Please help

bentburton avatar Oct 20 '22 06:10 bentburton

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

renopp avatar Oct 25 '22 08:10 renopp

This should be treated as a show-stopper. Any workarounds?

knro avatar Oct 25 '22 16:10 knro

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.

ghost avatar Dec 24 '22 17:12 ghost

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.

ghost avatar Jan 09 '23 00:01 ghost

Facing same issue. Codepush updating only few iOS devices. Android is working fine. Please help.

SravanthiGujjula avatar Feb 08 '23 20:02 SravanthiGujjula

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)

knro avatar Feb 09 '23 04:02 knro

Facing same issue. Codepush updating only few iOS devices. Please help

SravanthiGujjula avatar Jun 29 '23 14:06 SravanthiGujjula

Same issue with our production application

thespacemanatee avatar Jul 27 '23 03:07 thespacemanatee

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?

vxm5091 avatar Nov 30 '23 00:11 vxm5091

I'm facing the same issue

carloslibardo avatar Apr 23 '24 17:04 carloslibardo