未收到生产证书的推送通知 [英] Not Getting Push Notification for Production Certificate

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

问题描述

我已阅读有关此主题的许多答案,但建议的解决方案并未解决问题.我的问题是我没有收到生产证书的推送通知.相同的推送通知已成功获得开发证书.我特别想说的是,我的生产环境和开发环境的设备令牌完全不同.因此,相同的设备令牌没有问题.此外,我为两者使用不同的配置文件.也就是说,应用层面没有配置问题.

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. 我是否遗漏了应用中的任何内容?

我会非常感谢你们所有人.我被困在这个问题上.提前致谢

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. 

有关更多详细信息,请查看此link1 >> link2 >>

for more detail check this link1 >> link2 >>

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

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