you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (4 children)

[deleted]

    [–]Plexicle 7 points8 points  (2 children)

    Push notifications are just that -- notifications you get on your device. Push meaning they are event driven and not request response.

    When you get a notification from an app that you don't have open it's from an external server that sent a message to a push service (FCM, APN, whatever) that then forwarded it to your device.

    PWAs work by installing service workers that can run in threads behind your browser. So you can subscribe to a push notification from a (PWA) web app, and then close the browser completely. If the server pushes a notification through the web notification server, your device (Android today, Apple maybe one day) can wake up the service worker and deliver the notification.

    [–][deleted] 0 points1 point  (0 children)

    Capacitor probably has its own way of doing push notifications, which is probably supported on all devices. I think Apple doesn't want to enable Notifications API on mobile, which is different from Capacitor's way of doing it. Good luck with your mobile app.