Search code examples
javascripthtmlprogressive-web-appstrusted-web-activity

TWA shows address bar even if assetlink is correct


I'm using the PWABuilder to create the apk but whenever I build it, change the fingerprint and install the app, the address bar always shows up.

I used the "Asset links tool" to check if everything was correct and it seems to be so, assetlink fingerprint is the exact same. I've had this issue only after the latest update of PWABuilder, i'm not sure if it's related.

Website manifest and assetlink: https://github.com/Specy/specy.github.io/tree/master/skyMusic Website URL: https://specy.github.io/skyMusic/ Asset links: https://specy.github.io/skyMusic/.well-known/assetlinks.json APK: https://cdn.discordapp.com/attachments/771432833034092554/878028887584550952/Sky_Music_Nightly.apk

I tried on two different devices too.


Solution

  • I fixed the issue, the .well-known/assetlinks.json file needs to be placed in the root of the URL, not the root of the app, in this case my app was at /skyMusic/ so we I thought I had to place it there, while I had to place it in /