在iOS中为渐进式Web应用程序推送通知 [英] Push Notifications in iOS for Progressive Web Apps

查看:87
本文介绍了在iOS中为渐进式Web应用程序推送通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用Javascript开发了渐进式Web应用程序.我无法在iOS平台上为我的应用程序接收推送通知,但是与此同时,我在为Android和Web应用程序浏览器接收通知.我读到某处仍然不支持iOS通知.如果你们有任何信息可以实现这一目标,请帮助我.

I have developed a Progressive Web App by using Javascript. I am unable to receive Push Notifications in iOS platform for my app, but at the same time i am receiving Notifications for Android and Web apps browsers. I read somewhere still no support for iOS notifications. Please help me if you guys have any info to achieve this.

推荐答案

所有领先的浏览器,但iOS Web push API上的Safari除外.尽管Safari在Mac OS上确实支持推送通知,但iOS的推送通知没有绿色信号.请阅读全文

All the leading browsers with the exception of Safari on iOS web push API. While Safari does support push notifications on Mac OS, there is no green signal for push notification iOS.Read full article here.

Apple尚未添加对iOS Safari的推送通知支持.因此,您需要等待直到增加支持.或者您可以考虑使用其他替代方法,例如在iOS PWA中将通知显示为更改/弹出窗口/通知中心".

Push notification support for iOS Safari not added by Apple yet. So you need wait until support gets added. or you can think about alternatives like showing the notifications as alters/pop ups/notification center in iOS PWA.

这篇关于在iOS中为渐进式Web应用程序推送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆