gpt4 book ai didi

具有通配符和推送通知标识符的 iOS 配置文件

转载 作者:可可西里 更新时间:2023-11-01 05:41:22 25 4
gpt4 key购买 nike

当我尝试为推送通知注册配置文件时,苹果不允许指定通配符标识符的选项。我是否必须始终在我的开发者帐户中创建两个配置文件?一个用于推送和一个普通标识符,还是有更好的方法?

最佳答案

那是因为 Apple 必须为这个特定的应用程序提供一个唯一的标识符。如果您尝试创建一个包含应用内购买的应用,同样的规则也适用。在这两种情况下,都不允许使用通配符。

您别无选择,只能创建一个明确的 ABCDEFGHIJ.com.myCompanyName.myAppNameHere 类型标识符,并将其用作您的开发/分发配置文件的供应配置文件的 App ID。

此处的文档:https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/AddingCapabilities/AddingCapabilities.html

Apple Push Notification service (APNs) allows an app that isn't running in the foreground to notify the user that it has information for the user. Unlike other capabilities, you don't configure push notifications in your Xcode project. To enable push notifications, you create an explicit App ID that enables push notifications and a corresponding client SSL certificate.

You can create only one explicit App ID that matches your bundle ID. Therefore, if Xcode created an explicit App ID for you—for example, when you added another capability that requires an explicit App ID—you should use it; otherwise, you create an explicit App ID that matches your bundle ID. You then generate and download a corresponding client SSL certificate—this step fully enables push notifications—and refresh provisioning profiles in Xcode. Later, you install the client SSL certificate and key on your server.

关于具有通配符和推送通知标识符的 iOS 配置文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19188470/

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