没有得到推送通知了生产许可证 [英] Not Getting Push Notification for Production Certificate

查看:235
本文介绍了没有得到推送通知了生产许可证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已阅读关于这一主题的许多答案,但发行不按建议的解决方案解决。我的问题是,我没有收到推送通知的生产许可证。同样的推送通知已成功获得在开发证书。我特地想说的是,我的设备令牌生产和开发环境完全不同。因此对于相同的设备令牌的问题。此外,我使用两种不同的配置文件。意思是说,有没有对应用程序级别的配置问题。

I have read many answers on this topic but issue not resolved by suggested solutions. My issue is that I am not getting Push Notifications for Production Certificate. Same Push Notifications are successfully getting in Development certificate. I specially want to say that my device tokens for production and development environment is entirely different. So there is no issue for same device token. Also, i am using different profiles for both. Means to say, there is not configuration issue on app level.

我们正在使用PHP作为发送推送通知的服务器。

We are using PHP as a server that is sending push notifications.

下面是我的两个问题:


  1. 有什么东西在服务器端的缺失?对于PHP服务器发送推送通知成功地开发环境和生产环境,它的生成问题?

  2. 我失去了什么东西在app?

我会很感激大家。我被困在这个问题上。提前非常感谢

I will be very thankful to all of you. I am stuck on this issue. Many Thanks in advance

推荐答案

我面临同样的问题。如果您的.pem文件是正确的,然后使用以下设置你会得到推送通知。 (检查终端命令进行。 PEM

I faced this same problem. If your .pem file is correct then using following setting you will get push notification. (check terminal commands to make .pem)

//for development profile
$apns_url = 'gateway.sandbox.push.apple.com';

//for production you should use this
$apns_url = 'gateway.push.apple.com';s. 

有关更详细的检查这<一个href=\"https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ProvisioningDevelopment.html\"相对=nofollow> LINK1 >> 链接2 >>

for more detail check this link1 >> link2 >>

这篇关于没有得到推送通知了生产许可证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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