GithubHelp home page GithubHelp logo

TWA doesn't hide url bar about svgomg-twa HOT 3 CLOSED

suaper avatar suaper commented on August 16, 2024
TWA doesn't hide url bar

from svgomg-twa.

Comments (3)

andreban avatar andreban commented on August 16, 2024

On your assetlinks.json file, it is pointing to a package name called com.placeholder. Assuming the fingerprints are correct, the file should look like the following:

[{
  "relation": ["delegate_permission/common.handle_all_urls"],
  "target" : { "namespace": "android_app", "package_name": "tumototaxi.twa.pwa",
               "sha256_cert_fingerprints": ["16:3D:43:AB:AC:7A:02:59:8E:76:D5:9B:9C:B5:89:5B:F7:9E:75:2A:13:22:13:8D:D7:CD:4F:31:EC:F4:A6:0A","D9:0C:32:90:74:2D:F6:E8:5C:88:A4:59:4D:5F:AC:C6:F7:14:6D:04:B8:D7:DD:25:DC:34:20:E0:3A:BF:36:D1"] }
}]

Would you post this question on StackOverflow? That's the ideal place to ask it and we have a specific tag for Trusted Web Activity: https://stackoverflow.com/questions/tagged/trusted-web-activity

from svgomg-twa.

sgruetter avatar sgruetter commented on August 16, 2024

As this SO answer suggests, the fingerprint might be wrong. With Peter's Asset Link Tool you can extract the correct one.

As the author of the app writes:

Remember, you're likely to have different signatures on the default builds and the Play Store builds of your app.

So you need to take the signature from the Play Store's build.

Google's TWA article could probably be clarified a bit if several users have the same problem.

from svgomg-twa.

sahilrajput03 avatar sahilrajput03 commented on August 16, 2024

FYI: I was facing this problem from a few hours and I figured this problem and the problem was I was using different package names when I generated assetlinks.json file from the actual packagename which I used while generating the android-project via bubblewrap init command.

Happy to see that url bar is now hidden and its amazing!

from svgomg-twa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.