Push notifications on iOS from a web app

I am developing a web application and I want to send push notifications to users on iPhone. Is there a way to do this from within the browser? Chrome or Safari doesn't matter.

+3


source to share


2 answers


As of today, the web app cannot receive push notifications on any iOS browser (Safari, Chrome for iOS, ...). The reason is that iOS does not yet include the implementation of Service Workers , which are required for push notifications to work. It is currently in development: https://webkit.org/status/#specification-service-workers

And he's already working on Safari for OS X: https://developer.apple.com/notifications/safari-push-notifications/

At the same time, you'll have to decide which version of the app to use the app for, at least on iOS. My recommendation would be to use what you've developed for the web and make it a mashup using Apache Cordova .



You can also check regularly to see if support is available here:

+6


source


You can send a push notification from a web app, the only condition is a mobile device that must register to receive app-specific push notifications. Registration for push notification is done through the native app and can only be done through the native app. Once the host app is registered for push notification, it can send an authorization token to the server, which can be used in conjunction with the certificate used to provide its own client to send push notifications to the mobile device.

Refer to Apple's guidelines on push notification for more details



https://developer.apple.com/notifications/

0


source







All Articles