Progressive Web App
At some point I saw the 'Install' toast message to install the web app to my phone. I no longer see it. How can I enable or trigger it so it shows?
3 Replies
Hi @Juan. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
I can see you're asking about Progressive Web App (PWA) functionality in Wasp, specifically about the install prompt.
Based on the knowledge sources, Wasp does not currently have built-in support for PWAs. There is an open GitHub issue discussing adding PWA support to Wasp, which indicates this feature is not yet implemented.
The issue mentions that to make a Wasp app work as a PWA, you would need:
- A
manifest.json file
- Service workers
The knowledge sources suggest that implementing PWA support might involve using a Vite plugin (since Wasp's frontend uses React + Vite), but this functionality hasn't been added to Wasp yet.
The install toast message you saw was likely not from Wasp itself, but rather from your browser or another source. To enable PWA functionality in your Wasp app, you would currently need to manually configure it, which is not officially supported or documented in Wasp at this time.
If PWA support is important for your project, you might want to follow or contribute to the GitHub issue about PWA support to track progress on this feature.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @Juan, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist:
Perhaps try again in 15mins?@kapa.ai Gotcha, must've been my phone's browser then that prompted me to install it as an app.
Let me check the knowledge base for you again. One moment! :books:
----------------------
Yes, that's correct! Modern mobile browsers (like Chrome on Android and Safari on iOS) can automatically prompt users to install web apps to their home screen, even if the app isn't specifically configured as a PWA. This is a browser feature that works with regular web apps based on certain criteria the browser uses to determine if a site is "app-like."
Since Wasp doesn't currently have built-in PWA support, the install prompt you saw was indeed generated by your phone's browser rather than being a feature of your Wasp app itself.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @Juan, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist:
Perhaps try again in 15mins?