a. Prerequisite
- Install or update web-ext to version 4.1.0 or later.
- Install the Android Platform Tools (you can use Android studio's sdk manager or sdk manager command line tools to install android platform tools)
- Make sure you have adb installed and in your PATH.
b. Setup Android Device
- Install Firefox for Android Nightly on Android
- Enable Android USB debugging on the device.
- Attach your device to the development computer using a USB cable. When prompted, allow USB debugging for the connection.
- In the settings view for Firefox for Android Nightly, enable "Remote debugging via USB."
- Run
$ adb devices
in the command shell to get the device ID
c. Install and run extension
- Remove native messaging permission from extensions manifest (web-ext currently doesn't ignore unsupported permissions. temporarily we need to do this unless we find proper solution)
- Run extension's local development environment via
$ ALBY_API_URL="https://api.getalby.com" yarn run dev:firefox
- Go to extension's dist directory:
dist/development/firefox
- In the unzipped dist directory of the extension run
$ web-ext run -t firefox-android --adb-device <your_device_id> --firefox-apk org.mozilla.fenix