iOS 12 Web推送通知
问题描述:
新的iOS 12野生动物园是否支持Service Worker的Web推送通知? 在iOS的最新版本中,有服务人员,但没有pushManager对象.
Does the new iOS 12 safari support web push notification with service worker? In the last version of iOS there was service worker but there wasn't the pushManager object.
答
iOS 12和13仍不支持以下功能:
iOS 12 and 13 still doesn't support these features:
- 网络推送通知
- 背景同步
- 页面生命周期
- WebViews上的服务人员
- 通用链接/链接捕获
我认为iOS不想在PWA中支持这些功能,因为这些功能有很大的机会被不必要地利用(垃圾邮件等).而且,也许他们想强迫开发人员创建本机应用程序,而不是渐进式Web应用程序.
I think iOS doesn't want to support these in PWA because these features have a bigger chance to be unnecessary exploited(spam, etc). And also maybe they want to force developers to create the native application rather than the progressive web application.