Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The update is not installed, keeps rolled back or throwing an exception #2638

Closed
mununki opened this issue Dec 27, 2023 · 1 comment
Closed

Comments

@mununki
Copy link

mununki commented Dec 27, 2023

Thanks so much for filing an issue or feature request! Please fill out the following (wherever relevant):

Every updates are not installed and keep rolled back or throwing an exception on iOS.
I started facing this issue after upgrading RN 0.68.7 -> 0.72.7 and code-push 7.1.0 -> 8.1.0.

Steps to Reproduce

  1. RN v0.72.7 and code-push v8.1.0, might be relavant "react-native-reanimated": "^3.4.0"
  2. Wrap the app
export default codePush({
  checkFrequency: codePush.CheckFrequency.MANUAL,
  installMode: codePush.InstallMode.ON_NEXT_RESTART,
})(App);
  1. Release the update

Expected Behavior

The update is installed

Actual Behavior

The update keeps rolled back, not installed on iOS. AOS is fine. I observed symptoms in two cases. It works fine on the previous versions.

1. Auto update

{
  checkFrequency: codePush.CheckFrequency.ON_APP_RESUME,
  installMode: codePush.InstallMode.IMMEDIATE,
}

This case cause the exception when I ran the app through the xcode to get an error stack.
Thread 3: "Error when sending event: CodePushDownloadProgress with body: {\n receivedBytes = 8914917;\n totalBytes = 8914917;\n}. RCTCallableJSModules is not set. This is probably because you've explicitly synthesized the RCTCallableJSModules in CodePush, even though it's inherited from RCTEventEmitter."

2. Manual update

{
  checkFrequency: codePush.CheckFrequency.MANUAL,
  installMode: codePush.InstallMode.ON_NEXT_RESTART,
}

This case doesn't cause the exception, but the sync call is not working as intended. When the sync is called, it logs

[CodePush] Checking for update.
[CodePush] An update is available, but it is being ignored due to having been previously rolled back.

Even if you check the app center dashboard, all updates are rolled back and not installed.

Reproducible Demo

Environment

  • react-native-code-push version: "^8.1.0"
  • react-native version: "0.72.7"
  • iOS/Android/Windows version: iOS 16.5.1
  • Does this reproduce on a debug build or release build? release and debug
  • Does this reproduce on a simulator, or only on a physical device? physical device and simulator
@mununki mununki closed this as completed Dec 27, 2023
@mununki mununki reopened this Jan 11, 2024
@mununki mununki closed this as completed Jan 11, 2024
@amanthegreatone
Copy link

pls check this i had this issue which was solved. #2529 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants