You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since DexieCloud is now in production and running outstanding well the last missing piece for feature complete PWA apps will be support for WebPush. Given the fact that Safari for Mac and iOS does and will not support SW periodic and background sync, WebPush will be the only solution for a wide range of applications. One of the greatest benefits of using DexieCloud is getting rid of maintaining your own server, therefore an implementation of WebPush will be a natural fit.
A rough sketch could can be something like this.
On enable WebPush in configuration, creation of ->
Server only table for Vapid keys
Server only table for Subscriptions
Synced? table for notifications
on UserLogin and WebPush enabled, create Vapid Key pair if not exist and store on server only 'VapidTable'[User].
DexieCloud function to get public Vapid key (applicationServerKey) for current user
store subscription in 'SubscriptionTable'[User/Subscription], the may be multiple subscriptions for same user when PWA is running on multiple devices, not sure about this…
Send notification ->
store payload in 'NotificationTable'[User] with some options: immediate, scheduled
Cloud server will push notification according to options to all subscriptions
Since DexieCloud is now in production and running outstanding well the last missing piece for feature complete PWA apps will be support for WebPush. Given the fact that Safari for Mac and iOS does and will not support SW periodic and background sync, WebPush will be the only solution for a wide range of applications. One of the greatest benefits of using DexieCloud is getting rid of maintaining your own server, therefore an implementation of WebPush will be a natural fit.
A rough sketch could can be something like this.
The text was updated successfully, but these errors were encountered: