6

I came across code push framework which allows developers to push OTA updates of mobile application which is built in cordova and react-native without rolling updates on play/apple store for minor fixes.

I believe code push have their SDK for the cordova and react-native and in their SDK they are trying to pull code from repository then do something to make changes in the build without compilation or so. How does it possible to fetch latest changes and reflect them in app without compiling and bulid app again.

Does apple allow this to fetch silently OTA updates of app ?

4

1 回答 1

3

In short: using React Native with CodePush is ok.

Apple allows update javascript code that executed inside system WebView or JavascriptCore if app doesn't provide unlimited access to native SDK or system functions to this code. React Native uses JavascriptCore and provide limited API to js code so it's ok.

But of course you should avoid change app purpose with OTA.

For more info you can read this and this discussions.

于 2017-05-14T01:04:41.040 回答