Skip to main content

Install the Live Update SDK

In order to take advantage of deploying live updates to your app and bypassing the app stores, you'll need to install the Live Update SDK. The Live Update SDK comes with Appflow's Live Update feature for detecting and syncing your app with updates that you've pushed to channels.

To install the Live Update SDK plugin from the Dashboard, follow the instructions provided by clicking "Install Instructions" on the Destinations list in the Appflow Dashboard.

Install Instructions

Installing the Live Update SDK Manually

To install the plugin manually, run the following command in the root directory of your Ionic app, making sure to substitute the correct values for your app:

ionic deploy add  \
--app-id="YOUR_APP_ID" \
--channel-name="YOUR_CHANNEL_NAME" \
--update-method="background|auto|none" \

You can also run ionic deploy add and the CLI will prompt you for the neccessary values.

note

The plugin delays the Cordova deviceready event until it finishes checking for updates and sets the AutoHideSplashScreen Cordova preference to false in the config.xml, which means the Splash Screen will not go away automatically. All Ionic templates run this.splashScreen.hide(); on the Cordova deviceready event by default, but if it was removed it should be added back.

Alternatively, the app can set the AutoHideSplashScreen Cordova preference to true in you config.xml to override the value added by the plugin, but that can lead to the Splash Screen going away before the download is complete.

Plugin Variables

  • --app-id is the ID of the app in Ionic Appflow.
  • --channel-name is the name of the Channel you'd like the app to listen to for updates.
  • Make sure to use the exact name of your Channel, including the exact casing!
  • --update-method is one of background | auto | none. This determines how your application responds when a new live update is available for download.

You can read more about the available plugin variables in our API documentation.

Commit your changes

After you've installed the plugin, be sure to commit the changes made to your config.xml and package.json files.

git add . # stage any changes
git commit -m "added live update sdk" # commit staged changes