Push notifications progressive web app on iOS

流过昼夜 提交于 2019-12-06 19:08:11

问题


I need to develop a progressive web app with push notifications integrated. Searching on the web I have found diverse opinions about this subject. If I have understood correctly, for now, we cannot have push notifications in safari for mobile (but only for Desktop). Is it right?

Do you have any suggestions to obtain the same result (I am not an iOS expert)? I was wondering that maybe developing a native app only for push notifications purposes could be a good choice until push notification will be ready also for safari mobile.

P.S. I am developing the PWA using Angular 2.

Thank you for the support.


回答1:


Yes. iOS don't support the W3C Spec web push notifications. But there is a Safari way of doing it. Refer to this answer on multiple options you have.

https://stackoverflow.com/a/49803408/1057093

I wouldn't recommend having a separate native app just for notifications as that wont be a great user experience to install multiple things.



来源:https://stackoverflow.com/questions/50347859/push-notifications-progressive-web-app-on-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!