React-native-code-push: `InstallMode.ON_NEXT_SUSPEND` not supported on iOS?

Created on 18 Jan 2020  路  4Comments  路  Source: microsoft/react-native-code-push

Steps to Reproduce

  1. Create a React Native project
  2. Add @CodePush decorator, with installMode: InstallMode.ON_NEXT_SUSPEND.

Expected Behavior

Bundle should update when app is suspended.

Actual Behavior

Works on Android, but not on iOS, even after leaving app foregrounded for several minutes, then backgrounded for several minutes, and repeating the process several times. Force restarting the app also does not cause it to update on iOS. Other InstallMode's work as expected.

Looking at the source code, I don't even see any iOS-specific logic for this InstallMode, if not supported for iOS shouldn't the docs be updated to reflect that?

Version:
react-native-code-push: 6.0.0
react-native: 0.61.5
react: 16.9.0

bug iOS investigating

Most helpful comment

Hi @jd20, @lbelavoir
Thank you for reporting and sorry for delay!

We reproduced this problem and opened a fix PR for this. 小urrent PR: #1863.
I will let you know when this will be finally fixed.

All 4 comments

@jd20 Have you found any work around ?

I did not, I just switched to using InstallMode.ON_NEXT_RESUME until this issue is fixed.

Hi @jd20, @lbelavoir
Thank you for reporting and sorry for delay!

We reproduced this problem and opened a fix PR for this. 小urrent PR: #1863.
I will let you know when this will be finally fixed.

Hi @jd20, @lbelavoir,

We released a new version for react-native-code-push v6.2.1 with a fix for this issue.

Please let me know if you have any questions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vira-khdr picture vira-khdr  路  3Comments

Adr1ann picture Adr1ann  路  3Comments

cgerikj picture cgerikj  路  3Comments

SudoPlz picture SudoPlz  路  4Comments

djw27 picture djw27  路  3Comments