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

Not showing the UI prompt if the user has installed the web app #72

Closed
gedw99 opened this issue Dec 14, 2024 · 5 comments
Closed

Not showing the UI prompt if the user has installed the web app #72

gedw99 opened this issue Dec 14, 2024 · 5 comments

Comments

@gedw99
Copy link

gedw99 commented Dec 14, 2024

I tested his on iOS using the test link.

if I do the install and then reopen the link it will proof me again.

is this by design ? Is there a way we can check if it’s already installed ?

If not, maybe we can add a Boolean into the session storage that is set to true when they do the install ? Just brainstorming this . Tough problem

@gedw99
Copy link
Author

gedw99 commented Dec 14, 2024

The way to do this maybe to use a url scheme ?

@philfung
Copy link
Owner

is this by design ? Is there a way we can check if it’s already installed ?

hi @gedw99 thanks for posing this question.
If you open the bookmarked page, it will check it is installed and not show the dialog.
However, if you open the non-bookmarked page, it cannot check because the bookmarked and non-bookmarked pages use completely different caches. I believe this is the case you've encountered.
i've never found a way to check if its already installed in the non-bookmarked site, but if you have any ideas let me know!

@philfung
Copy link
Owner

as a heuristic, you can set maxModalDisplayCount = N so that the modal goes away after being shown N times

@gedw99
Copy link
Author

gedw99 commented Dec 14, 2024

You got it exactly , bummer there is no common .

https://ntfy.sh/ has the same problem I noticed .

https://ntfy.sh/app Is where you can try it . It shows it’s state , about installed, in the top left of the menu .

crazy idea . Fingerprint the user and store the needed state on server . It’s aweful I know but best I can think of ..

@philfung
Copy link
Owner

philfung commented Jan 3, 2025

Sorry couldn't find a better client side solution. Thanks for helping to discuss!

@philfung philfung closed this as not planned Won't fix, can't repro, duplicate, stale Jan 3, 2025
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

2 participants