问题
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