add Hot Code Push section to Cordova documentation

This commit is contained in:
Nacho Codoñer
2025-08-28 16:10:56 +02:00
parent e803775755
commit f0f3a91524

View File

@@ -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