3 ms·
Apple allows updates to Javascript outside of the review process as long as it subscribes to certain guidelines (1), including but not limited to: not changing
by victoriasun 8y ago
Apple allows updates to Javascript outside of the review process as long as it subscribes to certain guidelines (1), including but not limited to: not changing core feature functionality, being limited to bug fixes, and also that the app doesn't provide unlimited access to native SDK or system functions. React Native provides a limited API to js code so it's fine.
As far as your second question, we simply deploy store logic that loads a Modal telling our users that they must relaunch the app.
[1] https://microsoft.github.io/code-push/faq/index.html#1-does-the-apple-app-store-allow-developers-to-perform-these-types-of-updates https://microsoft.github.io/code-push/faq/index.html#1-does-...
- saagarjha 8y agoHow do you convey "relaunch the app" to your users? I'm sure many of them think that pressing the home button is the same as killing your app.
- victoriasun 8y agoSince OTA updates can only impact JS, we can offer a button that essentially calls something like `window.refresh` and it reloads the JS bundle within the container. We actually recently leveraged ErrorBoundaries in React 16 to do something similar in our app as well.