CodePush Server source
CodePush Server is a CodePush progam server! We can use this to build our's. We can use cloud storage to store the files, because it's simple and quick! Or you can use [local/s3/oss] storage, just modify config.js file, it's simple configure.
- Apple App allows hot updatesApple's developer agreement, In order not to affect the user experience, it is stipulated that silent updates must be used. Google Play can't use silent updates, and you must have a box to tell users that the app has an update. China's android market must use silent update (if the box prompts, the app will be rejected by "please upload the latest version of the binary application package").
- react-native has different bundle for different platforms. When using code-push-server, each platform must have distinguish application(eg. CodePushDemo-ios and CodePushDemo-android)
- react-native-code-push only update the resource files, not Java and Objective C,so when you update the core system and need to change the version(ios modify the CFBundleShortVersionString in Info.plist, android modify versionName in build.gradle), the recompile the app to the app store.
- It is recommended to use code-push release-react to publish the application(eg. code-push release-react CodePushDemo-ios ios -d Production)
- Each time you submit a new version to App Store,you should also publish an initial version to code-push-server based on the submitted version. (Because each time you release a version to code-push-server,code-puse-server will be compared with the initial version to generate a patch version)
$ code-push login http://localhost:3000
access:http://localhost:3000
- docker (recommend)
- manual operation
code-push-server normal problem
MIT License read