filament PWA is possible?
Hello everyone! I wanted to know if it's possible to turn a filament project into a PWA. Thanks a lot to everyone.
11 Replies
Hello, no it is not. You can have PWA feel approach, called SPA Mode.
Hello Toeknee, can you tell me more about SPA mode?
Laravel
Navigate | Laravel
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.
Hmm... okay, if I publish the base blade files of the panel, can I use silviolleite/laravel-pwa or shailesh-ladumor/laravel-pwa?
Not as far as I am aware. Livewire calls the server with every request.
Ok. Is there a way to prompt the user to download an icon for easy access to the site?
You can use some JS for that.
https://medium.com/@sam20gh/how-to-add-add-to-home-screen-to-your-website-4b07aee02676
Thank you very much Toeknee, I'll try this solution.
I know this is a bit old, but if this helps you might want to look into service workers. There's no reason you can't turn a Filament / Livewire app into a PWA, it just requires a bit of extra work. https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API
MDN Web Docs
Service Worker API - Web APIs | MDN
Service workers essentially act as proxy servers that sit between web applications, the browser, and the network (when available). They are intended, among other things, to enable the creation of effective offline experiences, intercept network requests and take appropriate action based on whether the network is available, and update assets resi...
Any examples?
no currently but I'm working on that atm for this project right now ideally I have an idea for a plugin here, but haven't looked into it past that