gpt4 book ai didi

reactjs - iOS/Safari 上的 Web API 推送 - React 应用程序。 2021年真的没有服务吗?

转载 作者:行者123 更新时间:2023-12-04 14:09:06 25 4
gpt4 key购买 nike

简而言之:这个难题与 Web 应用程序 (React PWA) 中 iOS 上的原生推送通知有关。还是被苹果彻底关闭了?仍然没有第 3 方服务可以规避这个吗?真的难以想象,无法告诉您任何提示/建议的值(value)。

背景信息:真正调查了一切 - 包括 Pusher Beams、OneSignal 等服务。

您对这个问题有何看法?如何在 2021 年处理这个问题?

干杯

最佳答案

不,目前不支持,WebKit Feature Status上好像没有路线图。

目前支持此功能的最佳方法是检测 Web Push API 是否可用,如果不可用,则要求用户注册电子邮件通知。

if ('PushManager' in window) {
// Show UI to request user subscribe to push notifications
} else {
// Push isn't supported on this browser, show UI to request user
// subscribe to email notifications.
}

关于reactjs - iOS/Safari 上的 Web API 推送 - React 应用程序。 2021年真的没有服务吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65971515/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com