Skip to content

ionic-team/Demo-Appflow-Live-Update-API

Repository files navigation

Demo App: Live Update API

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.

Prerequisites

To use this app, it is assumed that you have:

  1. An Appflow account with the ability to run native builds
  2. The ionic cli installed

Preparing the App

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.

  1. Fork the repo
  2. Clone the forked repo locally
  3. Open a terminal in the project directory and run npm i to get the latest compatible @capacitor/android and cordova-plugin-ionic plugins in the package-lock.json file.
  4. Create a new app in the Appflow dashboard and assign the forked repo to this Appflow app.
  5. Find the app id for the Appflow app and add it as an id key in the project's ionic.config.json file.
  6. Run ionic deploy configure and select the app id, live update channel, and none for the live update method
  7. Run npx cap sync android to ensure the project's android directory is updated
  8. Commit and push changes to the forked repo
  9. 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.

About

No description, website, or topics provided.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published