I just built my first React Native app and am very excited about the ability to send OTA updates via codepush. However, what does the release process look like when I have made changes. Imagine the following happens:
v1 -> released to playstore
v2 -> bugfix: released via codepush
v3 -> native changes: released to playstore
A user that downloads v3 from google playstore, upon app open, will he get v2 from codepush ? I can't push v3 to codepush because it has native changes that might break.
Weird that none of the codepush articles / documentation covers this potential race condition ?
You can see the below text from the codepush documentation here
Assuming you have a new release which would be sent to users via play store, it is inferred that the version code and build number would be updated and the earlier code-push release will no longer point to this build.
So to answer your questions.
A user that downloads v3 from google playstore, upon app open, will he get v2 from codepush ?
No they wouldn't get it as the code push release would be mapped to earlier binary version
I can't push v3 to codepush because it has native changes that might break.
You can with changes made over v3 which is already there in market