https://github.com/scandipwa/scandipwa-android-app
https://github.com/scandipwa/scandipwa-android-app
android magento2 pwa-apps twa
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/scandipwa/scandipwa-android-app
- Owner: scandipwa
- License: osl-3.0
- Created: 2019-04-25T10:04:17.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-25T10:37:22.000Z (about 6 years ago)
- Last Synced: 2025-03-23T09:48:26.994Z (3 months ago)
- Topics: android, magento2, pwa-apps, twa
- Language: Java
- Size: 127 KB
- Stars: 14
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# scandipwa-android-app
## The logic
App contains of 2 activities. Firstly, splash screen activity shows up and then attempts to launch URL as Trusted Web Activity - Chrome Custom Tab.
Chrome checks for SHA-256 key in `https:///.well-known/assetlinks.json` and shows the content without toolbar if the key is valid.## Using "trusted" feature
To make this app trusted (remove toolbar) you must add
```json
[{
"relation": ["delegate_permission/common.handle_all_urls"],
"target" : { "namespace": "android_app", "package_name": "com.scandipwa",
"sha256_cert_fingerprints": ["CA:7A:FC:B9:57:43:33:CF:75:F3:78:DB:CD:FB:5A:60:B9:3A:37:84:C0:03:61:DB:3F:F8:66:0B:75:5B:BE:A9"] }
}]
```
using path `https:///.well-known/assetlinks.json`SHA-256 key is obtained from the `Google Play Console -> Release Management -> App Signing` and is checked in the location above every time user opens the app.
## Build process
To build the app go to `Android Studio -> Build -> Generate Signed Bundle / APK`Choose `APK`, select the key store file, enter passwords and click `Next`
Choose `release` build variant and check both `Signature versions`, then `Finish`
Your app is now ready to be published/updated to Play Store.