PWABuilder - Android Store Package issue

1.1k Views Asked by At

This issue is not related to pwabuilder -> Building Android PWA APP but sort some issue after it is built.

OK here is the working fine example.

  1. I install app (Add to home screen) from chrome
  2. Share target works fine
  3. Also I can view app in Fullscreen

Now I go to PWA Builder for build my android app to publish on play store

  1. I build app for android
  2. I install app in my android device
  3. Share target not working!
  4. I can not view app in full screen (I want to get rid of Address bar)

Is there a way around to fix this behaviour?

NOTE From PWA Builder I build app for Microsoft Store and in my initial testing I found that it is working fine as I want it to be. (2 & 3 points above from Add to home screen working fine)

Any help for android issue will be much appreciated. thanks.

1

There are 1 best solutions below

6
On

Ok finally I got this today.

This post says how to overcome this.

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

Follow the below steps to remove bar:

  1. Go APK zip make sure there is assetlinks.json [If not available regenerate again]
  2. Add the asset link on /.well-known/assetlinks.json path and serve it from your domain.
  3. Check your https:// YOUR_HOST/.well-known/assetlinks.json is exited or not exited
  4. If not available above link, then create a .well-known folder in the root and upload assetlinks.json file from zip in a .well-known folder, Make sure this link properly renders the content
  5. Now you are ready, Clear your browser and app data from mobile

For more information or verify assetlinks.json (content below) values for this Click Here.

[{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
    "namespace": "android_app",
    "package_name": "android package id",
    "sha256_cert_fingerprints": ["Upload key certificate -> SHA-256 certificate fingerprint"]
}
}]

enter image description here

After all these steps my Android App is now not showing Top Address Bar.