在iOS上推送通知渐进式Web应用程序

问题描述:

我需要开发一个集成了推送通知的渐进式Web应用程序.在网络上搜索时,我发现了关于该主题的不同观点.如果我正确理解,就目前而言,我们无法在野生动物园的移动版中收到推送通知(仅对于台式机).是吗?

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?

您对获得相同的结果有什么建议(我不是iOS专家)?我想知道也许开发一个仅用于推送通知目的的本机应用程序是一个不错的选择,直到推送通知也可以用于safari mobile为止.

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.我正在使用Angular 2开发PWA.

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

感谢您的支持.

不幸的是,基于这篇文章以及此最新的iOS版本(13.3)仍不支持渐进式Web应用程序的某些功能:

Unfortunately, based this post and also this the latest iOS version(13.3) still doesn't support some features of progressive web app:

  • 网络推送通知
  • 背景同步
  • 页面生命周期
  • WebViews上的服务人员
  • 通用链接/链接捕获

直到现在,还没有消息说将在下一个版本14上实现.正如我在旧帖子中所说,我认为iOS不想在PWA中支持这些功能,因为这些功能有更大的机会被不必要地利用.(垃圾邮件等).而且,也许他们想强迫开发人员创建本机应用程序,而不是渐进式Web应用程序.

Until now, no news that says will be implemented on the next version 14. As I said in the old post, 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.