6 ms·
I'm happily using Phoenix+LiveView for a website that works as a PWA. This also includes offline mode with sync-when-internet-is-available functionality (thanks
by tie_ 5y ago
I'm happily using Phoenix+LiveView for a website that works as a PWA. This also includes offline mode with sync-when-internet-is-available functionality (thanks PouchDB!). This covers online/offline/mobile usecases, with no explicit RPC, and no requirements for the end device that the app would run on, other than a _capable_ browser.
(Admittedly, browsers on iOS are gimped, but that's part of the Apple tax).
- jjtheblunt 5y agowhat is gimped about iOS browsers?
- tie_ 5y agoWebPush is the feature that I'm missing. See https://developer.apple.com/forums/thread/114503 https://developer.apple.com/forums/thread/114503
- ngrilly 5y agoI don’t understand. How is the app working in offline mode when the Phoenix server is not reachable, since the interactions are managed server-side with LiveView?
- tie_ 5y agoSorry, my statement indeed got confusing. I'm using LiveView for online interactions. I'm using PouchDB + JS for data synchronization and enabling offline work. You are right that LiveView itself does need to be online, since it's whole point is to move (back) the UI logic to the server side.
- ngrilly 5y agoThanks for clarifying!