how to remove top bar (Address bar / URL Bar) on TWA or PWA apk

Solve: Remove the URL bar Trusted Web Activities(SuperPWA APK) require an association between the Android application and the website to be established to remove the URL bar.

1. go to Google Digital Asset Link and then open Tool menu


2. input your PWA domain, package name of your APP, and App package fingerprint SHA256

  • enter only domain, not subfolder name
  • get package name from your aplication AndroidManifest.xml
  • get App package fingerprint from Google Console if you uploaded on Google Console if not uploaded run this script on your terminal
keytool -list -v -keystore [location to your keystore] -alias [alias your keystore] -storepass [store password] -keypass [key store password]


3. Then click generate statement, and then add directory .well-known and create file wit name assetlinks.json into directory, then add the generated script in file,  so it can be accessed like this

https://pendaftaran.onyip.my.id/.well-known/assetlinks.json


4. test your digital assets link with click Test Statement if you are success will appear like this alert



done, your TWA application should not show url again
 

Iklan ada di sini

Komentar