4 ms·
Honest question: is there a way to receive the equivalent of app notifications on a mobile app from a website? It would need to be more than just a text messag
by DougN7 2y ago
Honest question: is there a way to receive the equivalent of app notifications on a mobile app from a website? It would need to be more than just a text message such that clicking the message opens the “app” to a specific place regarding the alert (and automatically handling login).
- jauntywundrkind 2y agoYes. https://web.dev/articles/push-notifications-notification-behaviour https://web.dev/articles/push-notifications-notification-beh...
- DougN7 2y agoThis doesn’t seem like it would work if the mobile browser was closed, phone was locked, etc. Am I wrong? I’d like to get away from apps but this doesn’t seem like a complete solution.
- jauntywundrkind 2y agoNope it works fine on mobile! Android can spin up apps if notifications come in & will spin up Chrome which will spin up your service-worker! I have my qualms with Android but this seems well designed! https://web.dev/articles/push-notifications-faq#why_doesnt_push_work_when_the_browser_is_closed https://web.dev/articles/push-notifications-faq#why_doesnt_p... Desktop OSes don't have anything parallel, so yeah, you need the browser running. But nothing has to be on screen.
- DougN7 2y agoDo you know if iOS has similar support?
- jauntywundrkind 2y agoYes, push notifications don't require Safari to be open already on iOS.