退出 iPhone 应用程序后推送通知

发布于 2024-12-01 21:43:18 字数 434 浏览 1 评论 0原文

我想知道如何使用命令行正确地退出应用程序(带有推送通知)。

以下是一些背景信息:

  • 我的原始应用程序与推送通知配合得很好。
  • 如果我通过“组织者 -> 档案 -> 分享”退出申请 使用任何开发人员证书,推送通知仍然有效
  • 如果我通过命令行退出应用程序 codesign -f -s "iPhone Distribution: *****" -vv path/to/app,应用程序仍然有效效果很好。但是,推送通知停止使用消息 No valid 'aps-environment' entitlement string found for application 'MyPushTest': (null)。通知将不会被发送。

有谁知道如何使用命令行进行正确的退出,之后推送通知将正常工作吗?

谢谢。

I am wondering to know how to use command line to resign an application (with push notification) correctly.

Here are some background:

  • My original application works well with Push Notification.
  • If I resign the application via "Organizer -> Archives -> Share"
    with any developer cert, Push notification still works
  • If I resign the application via command line codesign -f -s "iPhone Distribution: *****" -vv path/to/app, the app still works well. However, push notification stop working with message No valid 'aps-environment' entitlement string found for application 'MyPushTest': (null). Notifications will not be delivered.

Is there anybody know how to use command line do a correct resign, after which push notification will work as normal?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

逆光飞翔i 2024-12-08 21:43:18

如果您的移动配置文件允许推送通知 - 一切都应该顺利进行。请注意 - 通配符移动配置配置文件不支持推送通知。

要检查 mobileprovisioning 是否与推送通知兼容 - 检查配置文件中是否存在“aps-environment”字符串。对于沙盒,应将其设置为“开发”,对于生产网关,应将其设置为“生产”。

您可能需要检查 www.aironapp.com。它会为您重新设计。您需要在设置中配置 Apple Dev 帐户。

If your mobileprovisioning profile will allow push notifications - everything should run smoothly. Please note - wildcard mobileprovisioning profiles does not support push notifications.

To check if mobileprovisioning is compatible with push notifications - check "aps-environment" string presence in the profile. It should be set to "development" for Sandbox and "production" for Production gateway.

You might want to check www.aironapp.com. It does the recodesigning for you. You will need to configure Apple Dev Account in the settings.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文