在即席分发推送通知问题 [英] Push Notification Issue in Adhoc Distribution

查看:193
本文介绍了在即席分发推送通知问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我是新来的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:


  1. 如果应用程序(即与发展提供的资料汇编)安装比这样的设备具有发展令牌你应该使用开发证书发送推到这样的设备。

  1. If app (that was compiled with development provision profile) is installed than such device has development token and you should sent pushes to such device using development 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. 下载您特设提供的个人资料

  2. 从1.打开准备配置文件与文本编辑器。

  3. 搜索线
    &LT;密钥GT; APS-环境&LT; /键&GT;
        &LT;串GT;生产&LT; /串&GT;

  4. 检查键 APS-环境的价值。它是等于生产的?

  5. 如果是,那么你应该发送到特设的应用与推生产许可证的通知

  1. Download your Ad-hoc provision profile.
  2. Open provision profile from 1. with text editor.
  3. Search for lines <key>aps-environment</key> <string>production</string>
  4. Check the value of the key aps-environment. Is it equal to production?
  5. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆