This app demonstrates some of the basic methods provided through the Live Update API to allow developers the ability to create custom live update methods with their Appflow apps.
This repo is a companion piece to Live Update API tutorial. The tutorial walks through the entire creation process of this app. The master branch contains the completed app, but other branches are provided to highlight different stages in the development of this app for your reference.
To use this app, it is assumed that you have:
- An Appflow account with the ability to run native builds
- The ionic cli installed
These steps will need to be followed to prepare the app such that it will be configured to listen for live updates on a channel associated with your Appflow account.
- Fork the repo
- Clone the forked repo locally
- Open a terminal in the project directory and run
npm i
to get the latest compatible @capacitor/android and cordova-plugin-ionic plugins in thepackage-lock.json
file. - Create a new app in the Appflow dashboard and assign the forked repo to this Appflow app.
- Find the app id for the Appflow app and add it as an
id
key in the project'sionic.config.json
file. - Run
ionic deploy configure
and select the app id, live update channel, andnone
for the live update method - Run
npx cap sync android
to ensure the project's android directory is updated - Commit and push changes to the forked repo
- Run a new android debug build on this commit to obtain the android build artifacts
With the android build artifacts created, the app can be launched from an emulator or test device.