apns是否需要为每个应用程序开发提供证书? [英] Does apns needs certificates for each app development?
问题描述
我已经创建了配置文件,应用ID和证书&为我的一个应用程序启用推送通知的所有过程,如果我想为我的第二个应用程序启用apns服务,则我应使用相同的证书,还是应创建其他供应配置文件和appid&证书.我使用的证书相同,但是出现以下错误.
I have created provisioning profile and app id and certificates & all of the process to enable push notification for one of my app, if I want to enable apns service for my second app shall I use same certificate or shall I create other provisioning profile and appid & certificates. I am using same certificates but I am getting following error.
无法获取令牌,错误:错误域= NSCocoaErrorDomain代码= 3000找不到适用于应用程序的有效'aps-环境'权利字符串" UserInfo = 0x1cd26cb0 {NSLocalizedDescription =找不到适用于应用程序的有效'aps-环境'权利字符串}
Failed to get token, error: Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application" UserInfo=0x1cd26cb0 {NSLocalizedDescription=no valid 'aps-environment' entitlement string found for application}
即使我正在创建新证书,我也遇到同样的错误.我哪里出错了?几天来我一直在努力帮助我
Even I am creating new certificate I am getting same error.where iam going wrong?i was struggling from few days help me
推荐答案
Siva,建立Apple Push Notification Service重要的是:
Siva, what matters for establishing an Apple Push Notification Service is:
- 应用ID
- 该应用的捆绑ID,每个应用唯一.
- 配置文件[开发/发布]取决于您的环境.
-
然后是SSL证书.
- App Id
- Bundle Id of the app which is unique to each app.
- Provisioning profile [development/distribution] depends on your enviornment.
Then the SSL certificates.
因此,对于第一个问题-您不能对具有不同捆绑ID的两个应用程序使用相同的证书.因为正在为特定的捆绑包ID创建SSL证书.您可以从钥匙串中看到它.
So for your first question- you cannot use same certificates for two apps,which are having different bundle Id's. Because an SSL certificate is creating for a particular bundle Id. You can see that from your key chain.
对于新的应用程序,我建议您创建新的ID,新的捆绑包ID,新的供应配置文件和离线新证书.因此,没有任何混乱的理由.
For the new app I would suggest you to create new Id, new bundle Id, new provisioning profile and offcourse new certificates. So there is no reason for any sought of confusions.
如果上述错误仍然普遍存在,您可以参考这些链接-这些确实值得回答. 如何解决无效"找到应用程序"aps-environment"的权利字符串在Xcode 4.3中?
If the above mentioned error still prevails, you can refer these links- these are really worthy answers. How to fix "no valid 'aps-environment' entitlement string found for application" in Xcode 4.3?
找不到以下内容的有效"aps-environment"权利字符串应用程序
这篇关于apns是否需要为每个应用程序开发提供证书?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!