window.livesync object and its
sync() method, you can force LiveSync with the cloud from your code.
sync()- Forces LiveSync, even if the LiveSync three-finger refresh gesture is disabled programmatically.
For example, when LiveSync is disabled programmatically, you can execute
window.livesync.sync() from an Update button to let your testers get your latest code changes on demand.
IMPORTANT: Avoid executing
onDeviceReadyevent. This might cause your app to enter an endless loop of synchronizing changes and reloading.
- When you build for the developer app.
- When you build with the Debug build configuration.
- If you are using the extension for Visual Studio to develop your app and your project is not connected to a cloud app, you need to synchronize your changes with the cloud before you can receive them on device. To synchronize your changes with the cloud, from the main menu bar, select AppBuilder → Synchronize <app_name> with Cloud.
For more information about how to connect your project with the cloud, see Collaborate Across the Offline and Cloud Tools.
- If you are using the command-line interface to develop your app, you need to synchronize your changes with the cloud before you can receive them on device. To synchronize your changes with the cloud, run
appbuilder livesync cloud