gpt4 book ai didi

ios - 您的应用程序似乎包含用于注册 Apple 推送通知服务的 API,但应用程序签名的权利不包括

转载 作者:行者123 更新时间:2023-11-29 12:20:34 24 4
gpt4 key购买 nike

我正在开发一个不使用推送通知的 cordova 应用程序。我将该应用上传到应用商店并收到以下信息:

Missing Push Notification Entitlement - Your app appears to include API used to register with the Apple Push Notification service, but the app signature's entitlements do not include the "aps-environment" entitlement.

现在,我想禁用推送通知服务 API,但我该怎么做呢?

我发现 I could add the DISABLE_PUSH_NOTIFICATIONS compiler flag我的编译器标志,但我没有找到关于如何/在何处更改它们的工作手册。也许有人知道更改它的简单方法?

否则,我确实找到了一个script for a hook ,但是在我将该脚本添加到 before_prepare Hook 之后,出现错误 env: node\r: no such file or directory。我在该钩子(Hook)脚本中将所有 EOL 更改为 UNIX 样式,但错误仍然存​​在。

最佳答案

确保您的应用代码不包含任何与推送通知相关的代码。像下面这样:

[[UIApplication sharedApplication] registerForRemoteNotificationTypes:
(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)];

编辑:根据this ,你必须编辑你的 Objective-C 代码。这是 Cordova 的问题。

关于ios - 您的应用程序似乎包含用于注册 Apple 推送通知服务的 API,但应用程序签名的权利不包括,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30775029/

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