苹果推送通知与特设工作建设 [英] Apple Push Notification not working with ad-hoc build

查看:132
本文介绍了苹果推送通知与特设工作建设的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在开发模式下,我可以发送推送通知的设备,而不是我不能在生产中,我的设置是:

In development mode I can send push notification to devices, instead I can't in production, my setup is:


  • .pem文件即是aps_production.cer配置门户网站和我的特设证书的私钥的组合

  • 苹果服务器APN:gateway.push.apple.com与2196端口

  • 我有一个从设备,可以节省令牌的导轨服务器,然后发送通知苹果与这些设备令牌和previous .file打开连接

  • 即席构建应用程序有(它的rubymotion):
    权利['APS-环境'] ='生产'
    权利['获得任务,让'] = FALSE

  • 在启动时应用程序,正确地发送令牌到我的应用服务器

  • 我只是检查令牌是从开发模式
  • 不同

问题是,我的Rails应用程序发送通知并没有收到任何错误,但没有到达的设备。

The problem is that my rails application sends notifications and didn't receive any errors, but nothing arrived on devices.

我使用testflight用于分发我的应用程序的临时版本,但使用testlight和APNS我没有任何已知的问题。

I'm using testflight for distribute ad-hoc version of my application, but I don't known any problem using testlight and APNS.

什么可以?

修改我解决:港口是错误的,2195不是2196 ...

EDIT I resolved: the port was wrong, 2195 instead of 2196...

推荐答案

的APN对生产和开发一个单独的SSL证书。

APNs have a separate SSL certificate for production and for development.

您可能正在使用的生产版本开发的证书。

You are probably using your development certificate with the production build.

这篇关于苹果推送通知与特设工作建设的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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