首页 > 解决方案 > 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

但显然,推送通知的权利已设置(并且一直如此)。

你们有任何想法要检查什么吗?我现在有点不知所措。

最好的!

标签: iosreact-nativeapple-push-notificationspushkitreact-native-notifications

解决方案


只是一个快速的提示。问题是,我的产品名称(目标 -> 您的应用程序 -> 构建设置 -> 包装 -> 产品名称)有德语特殊字符。

另请参阅:https ://developer.apple.com/forums/thread/660648


推荐阅读