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

How can i make a dialog #149

Open
yoshiryo413 opened this issue Jul 9, 2024 · 3 comments
Open

How can i make a dialog #149

yoshiryo413 opened this issue Jul 9, 2024 · 3 comments

Comments

@yoshiryo413
Copy link

I would like to ask you how How can i make a dialog for pwa.

I have implemented the installation of PWA from the button next to the URL in the package.

Next, I want to allow the user to decide whether to install the PWA from the dialog display. How should I proceed if I want to use the package you created to do the above?

@userquin
Copy link
Member

userquin commented Jul 9, 2024

Check the examples folder in this repo. You cannot install the pwa from js, you can only intercept browser event (when supported) to replace default behavior (right now mobile only) and fire deferred prompt to install the pwa.

@userquin
Copy link
Member

userquin commented Jul 9, 2024

@ro-yoshida
Copy link

Thank you

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

3 participants