在即席分发推送通知问题 [英] Push Notification Issue in Adhoc Distribution
问题描述
您好,我是新来的IPhone。
Hello I am new to IPhone.
我的工作接收与发展环境中成功推送通知的iPhone应用程序,但在即席分布没有收到通知。
I am working on Iphone app which receives push notifications successfully with development environment,but didn't receive notifications in adhoc distribution.
我有两个证书即开发和放大器;生产。
I have both certificates i.e development & production.
谁能告诉我我缺少什么?
Can anyone tell me what am I missing?
推荐答案
的正如我昨天张贴的回答同样的问题:(<一href=\"http://stackoverflow.com/questions/7737343/push-notification-issue-in-adhoc-distribution/7737640#comment9416006_7737640\">$p$pv.回答)的
我有类似的问题。做一些测试后,我得出了以下结论:
I've similar problems. After making some test I reached the following conclusions:
-
如果应用程序(即与
发展提供的资料汇编
)安装比这样的设备具有发展令牌
你应该使用开发证书
发送推到这样的设备。
If app (that was compiled with
development provision profile
) is installed than such device hasdevelopment token
and you should sent pushes to such device usingdevelopment certificate
.
如果应用程序(即与分布提供的资料汇编
)安装比这样的设备具有生产标记
你应该用发送推到这样的设备生产许可证
。
If app (that was compiled with distribution provision profile
) is installed than such device has production token
and you should sent pushes to such device using production certificate
.
和,如果您的应用尚未公布,我认为 APNS
将不接受生产许可证
,所以可能是你将无法发送推送您特设的应用。
And, If your app is not yet published, I think that APNS
will not accept production certificate
, so probably you won't be able to send push to your ad-hoc apps.
你能做什么?例如,应用程序发送到您的测试人员与开发证书
编译。
What you can do? For example, sent app to your testers that compiled with development certificate
.
更新:
我学会了这个问题,一个更多的时间,发现了一些有趣的信息:
UPDATED: I've learned this question one more time and found some interesting information:
- 下载您
特设提供的个人资料
。 - 从1.打开准备配置文件与文本编辑器。
- 搜索线
&LT;密钥GT; APS-环境&LT; /键&GT;
&LT;串GT;生产&LT; /串&GT; - 检查键
APS-环境
的价值。它是等于生产的?
-
如果是,那么你应该发送到特设的应用与推
生产许可证的通知
。
- Download your
Ad-hoc provision profile
. - Open provision profile from 1. with text editor.
- Search for lines
<key>aps-environment</key> <string>production</string>
- Check the value of the key
aps-environment
. Is it equal toproduction?
If yes then you should send to your ad-hoc apps push notification with
production certificate
.
如果该值为发展
,那么你应该发送到您的即席应用程序推送通知与开发证书
。
If the value is development
then you should send to your ad-hoc apps push notification with development certificate
.
如果没有帮助,那么你尝试更新您的临时配置文件。
If this didn't help you then try to update your ad-hoc provisioning profile.
这篇关于在即席分发推送通知问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!