diff --git a/v3-docs/docs/about/cordova.md b/v3-docs/docs/about/cordova.md index db3c359044..c54846c784 100644 --- a/v3-docs/docs/about/cordova.md +++ b/v3-docs/docs/about/cordova.md @@ -202,6 +202,20 @@ meteor run ios-device You can manage connected devices in Android Studio and Xcode. +### Run HCP + +Hot Code Push (HCP) lets the client automatically get the latest version when code changes are detected. This improves development with live reloads and ensures production apps receive updates without republishing to the stores. + +For development, enable HCP by starting the application server with the --mobile-server option. + +- On an emulator, + - Run: `meteor run android --mobile-server 10.0.2.2:3000` + +- On a real device, both the device and server must be on the same network + - Run: `meteor run android --mobile-server XXX.XXX.XXX.XXX`, replacing the IP with your local development address (e.g. 192.168.1.4). + +For production, HCP is enabled automatically when you provide the `--server` option to the [`meteor build` command](../cli/index.md#meteor-build-meteorbuild). For more details on how HCP works with apps already published to production, see [Hot Code Push on mobile](https://guide.meteor.com/cordova.html#hot-code-push). + ### Open IDE Once you have set up your Meteor project with Cordova, you may want to run or debug your mobile app using **Android Studio** or **XCode** directly. This can be useful for advanced debugging, custom configurations, or accessing specific platform tools