Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ask permissions on TWA App directly #174

Open
NicoHood opened this issue Sep 4, 2022 · 0 comments
Open

Ask permissions on TWA App directly #174

NicoHood opened this issue Sep 4, 2022 · 0 comments

Comments

@NicoHood
Copy link

NicoHood commented Sep 4, 2022

Hi!
You probably know PWA App, which are a mobile app format where you can install your App via Browser. There are also TWAs that (as far as I understand) are (at least on android) used to get a PWA into a native android app.

It turns out that this TWA android app automatically subscribes to notifications, one a request was offered to the user. However normally (on desktop) you do not want to bother users with this popup dialog, but in the App itself it is fine. So we need a way to detect, if the website was launches from a TWA.

I was told, that is should be implemented by passing a custom query parameter from the TWA. So in this case perfecty must just check for this query parameter and send out a notification request. If that is possible, that'd be super awesome, as it would enhance the user experience a lot!

More context:
GoogleChromeLabs/bubblewrap#660

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant