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
toeknee
toeknee7mo ago
Hello, no it is not. You can have PWA feel approach, called SPA Mode.
NeerGreeN
NeerGreeN7mo ago
Hello Toeknee, can you tell me more about SPA mode?
toeknee
toeknee7mo ago
Laravel
Navigate | Laravel
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.
NeerGreeN
NeerGreeN7mo ago
Hmm... okay, if I publish the base blade files of the panel, can I use silviolleite/laravel-pwa or shailesh-ladumor/laravel-pwa?
toeknee
toeknee7mo ago
Not as far as I am aware. Livewire calls the server with every request.
NeerGreeN
NeerGreeN7mo ago
Ok. Is there a way to prompt the user to download an icon for easy access to the site?
NeerGreeN
NeerGreeN7mo ago
Thank you very much Toeknee, I'll try this solution.
Trey
Trey3mo ago
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...
toeknee
toeknee2mo ago
Any examples?
Trey
Trey2mo ago
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
Want results from more Discord servers?
Add your server