Closed bonesyblue closed 9 months ago
Hi all 👋 I spent some time today examining the issue I described above. As I'm working on a production project, I created a separate fresh project for testing purposes. I'm pleased to report that I couldn't reproduce the issue described above in the new project, indicating that the problem I'm experiencing is not directly related to react-native-code-push
.
I'll continue my investigation in the linked repository below, but for now, I'll close this issue.
I discovered that the issue was actually related to the expo-updates
module. After removing expo-updates
in my test project the CodePush OTAs began working as expected on iOS. 🚀
pls check this i had this issue which was solved. https://github.com/microsoft/react-native-code-push/issues/2529#issuecomment-1968788585
Steps to Reproduce
The following code manually checks for the availability of a CodePush update and, if available, proceeds to download and install the update.
My root component:
Expected Behavior
When restarting the application, the update bundle is applied.
Actual Behavior
The update bundle is only applied if I explicitly call
CodePush.restartApp()
. However, the update is lost if I then restart the application.Things I've Tried
I've followed the troubleshooting guide and enabled CodePush logs for my release target. There are no issues logged and the update appears to be successful.
I also tried replacing my manual code by just calling CodePush.sync(), however, I experience exactly the same behaviour on iOS.
Environment