ios - iOS 推送通知停止工作(可能是由于权利错误)
问题描述
在过去的几天里,由于我们的推送通知功能不再工作,我们收到了一些错误报告。
我们使用带有 react-native-notifications 的 React Native(最新版本)。我们在应用商店中的构建是从 10 月初开始的,并且运行良好。
现在,当我按下链接到请求 PushToken 的按钮时,什么都没有发生——甚至没有触发失败回调。
当我打开设备控制台时,单击按钮时会出现以下两个错误:
error 14:11:19.891971+0100 SpringBoard Entitlment 'com.apple.private.usernotifications.bundle-identifiers' for online.*.* required to request user notifications
error 14:11:19.892050+0100 SpringBoard [online.*.*] Requesting authorization failed because of missing entitlement
但显然,推送通知的权利已设置(并且一直如此)。
你们有任何想法要检查什么吗?我现在有点不知所措。
最好的!
解决方案
只是一个快速的提示。问题是,我的产品名称(目标 -> 您的应用程序 -> 构建设置 -> 包装 -> 产品名称)有德语特殊字符。
推荐阅读
- audiokit - 发送带有程序号(补丁号)的程序更改
- wordpress - Woocommerce 购物车页面中的括号问题
- json - 通过 api 更改话语主题 slug
- javascript - 使用 UTC/GMT+0 作为纪元从特定日期获取当前时间戳,忽略本地时区纪元
- visual-studio-code - VScode 缓存问题?文件未显示最新更改
- asp.net - 无法访问二维码程序中要删除的文件
- infinispan - 如果在 *EMPTY* Infinispan 缓存上进行并行流(分布式)计算,可能出现错误?
- mysql - Lambda NodeJS MySQL 任务超时
- timestamp - Bigquery PARSE_TIMESTAMP 格式为 2018-10-03T23:00:42.690Z
- laravel - 使用自定义频道时未保存 Laravel 通知