Thanks so much for filing an issue or feature request! Please fill out the following (wherever relevant):
What you expected to happen?
Apps should update after restart without a crash
What actually happens?
Nothing happens on Android, iOS crashed after restarting the app.
Examples folder run node create-app.js appName [email protected] [email protected] command to generate plain CodePushified React Native app. Please see description on top of create-app.js file content if needed(The more info the faster we will be able to address it!)
@vdlindenmark happens for me only when I run the release. I am on React Native 0.51 and it only happens in ios. I had it in my Podfile and package.json files. I confirmed it by removing all references to the Codepush libs and everything worked.
I was using 5.0+ but wll be testing on 4.0+
Success. I realized that I had upgraded my react-native to a new version since my last push of a release via CodePush (which was mandatory and possibly from a different version of react-native). This was causing the crash it seems.
It worked once I re-pushed the latest version of my code to CodePush servers (without the mandatory -m flag, and it worked. Makes sense kind of. I wish it would have simply failed more gracefully if possible. Double checking results now. Confirmed.
This perhaps explains why it was only happening on Release, rather than Debug. Pernicious bug that took me almost a week to find the culprit and now a few hours for the solution...Which had nothing to do with the actual code i wrote directly🤦♂️
Note: I found that it also helped that I removed index.ios.js and index.android.js entirely from my root folder. I also removed Codepush from my Podfile and relegated it to package.json only. Wishing anyon else ending up here look in closing the issue.
Hi guys, sorry for delay!
Could you please provide some additional info how do you use codepush:
@temitope wow thanks! same problem happened to us but we didn't realise that was the issue until we read your comment 🤦♂️ , thanks!!
any update ?