Thanks so much for filing an issue or feature request! Please fill out the following (wherever relevant):
What you expected to happen?
I'd expect for the iOS app to load the downloaded and installed codepush update instead of the old one.
(The more info the faster we will be able to address it!)
We have almost the same issue on both platforms. Trying to get updates with codepush.sync() method.
What we did
codepush.sync() a few components deeper from our app root. useEffect where we check for available updates. codePush.checkForUpdate() method returns a previous update object again (instead of null) with failedInstall: true.Closed it cause I found that, in our case, the codepush library wasn't correctly setup on iOS. Thanks!
@smaradona could you please share what was a mistake about with some short example? It can help probably
Hey @dmydry! Not too sure if it will help you, but the issue for us was that we updated our RN version to 0.59.9 and during that migration we didn't update AppDelegate.m accordingly, so the code there was following the setup steps for React Native 0.58 and below instead of following the steps described for React Native 0.59 - 0.59.10 in the docs for iOS setup. Hope you find a solution to your problem!
We have almost the same issue on both platforms. Trying to get updates with
codepush.sync()method.What we did
- Call the
codepush.sync()a few components deeper from our app root.- It is a simple FC with a
useEffectwhere we check for available updates.- After the app is just started it behave as expected - a new update is installed successfully. Changes made in this update were all there.
- After the app restarts it suddenly launches with an initial js bundle.
codePush.checkForUpdate()method returns a previous update object again (instead of null) withfailedInstall: true.
@dmydry how you solve this issue? because i'm getting same issue in ios
app is updated in automatic mode. but in manually app update is not working
Most helpful comment
@dmydry how you solve this issue? because i'm getting same issue in ios
app is updated in automatic mode. but in manually app update is not working