Skip to content

ctlabvn/code-push-server

Repository files navigation

CodePush Server source

NPM

NPM Version Node.js Version Linux Status Windows Status Coverage Status Dependency Status Known Vulnerabilities Licenses

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.

Correct use of code-push hot update

  • 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)

shell login

$ code-push login http://localhost:3000

access:http://localhost:3000

client eg.

ReactNative CodePushDemo

Cordova CodePushDemo

HOW TO INSTALL code-push-server

HOW TO USE

ISSUES

code-push-server normal problem

License

MIT License read

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages