This project contains an example of integrating an Ionic Micro Web App (MWA) into an Android application.
- In the root folder, run
npm install @capacitor-community/sqliteto install the plugin. - In the app/build.gradle file, replace the placeholder in def ionicToken = "" with your actual token.
The build.gradle (app module) is configured with custom Gradle tasks to automatically download and unzip the MWA build from Appflow into the assets directory.
- Registering the
PortalManager - Creating a
Portalwith aninitialContext - Enabling Live Updates (fetching updated MWA bundles without releasing a new app version)
- Adding a
PortalViewto the layout to display the Ionic screen
The project demonstrates how to:
- Subscribe to events sent from the web app (e.g.,
dismiss)
This project demonstrates the full integration cycle of MWA:
preloading the bundle → rendering it on screen → handling event communication between Android and Ionic.