I am using a simple TWA (a Website with PWA supported packaged into a native Android app) with bubblewrap. In order to get this TWA working properly it must have an assetlinks.json file including the sha256 fingerprint of the signing key uploaded to the webserver.
There seem to be two keys for signing: An app and an upload key.
- If I release the app via playstore, the TWA want to see the app key
- If I just install the local apk file it expects the upload key
Also different key tools will output different keys:
- Bubblewrap seems to use the App Key: bubblewrap/bubblewrap fingerprint generateAssetLinks
- Google Play seems to use the App Key as well.
- The
keytoolseems to use the upload key:keytool -printcert -jarfile app-release-signed.apk | grep SHA256
Now I am wondering if I missunderstand something. Why does the local apk file expects a different key than the playstore release? Is it safe to upload both shasums to the assetlinks.json file in order to allow playstore releases and local testing?