尝试发送推送通知到iOS设备 - 不接受他们 [英] Attempting to sent Push Notifications to iOS device - not receiving them

查看:195
本文介绍了尝试发送推送通知到iOS设备 - 不接受他们的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我到目前为止做了以下:
- 生成的证书和质子交换膜,也cat'd在一起私钥。已成功连接到gateway.sandbox.push.apple.com。
- 使用与推送通知的临时配置文件用于开发启用了,我有成功提示你要允许推送通知一个基本的应用程序,所以这是正常工作
- 获得该设备令牌
- 我已经尝试拉动了几个pre-制作文件SSLing到从互联网沙箱只是为了看看,如果我可以让他们运行之前,我开始发展。

I have so far done the following: - Generated certificate and private key as .pem, also cat'd them together. Successfully connected to gateway.sandbox.push.apple.com. - Using the provisional profile with push notifications is enabled for development, I have a basic app that successfully prompted "Do you want to allow push notifications", so this is working correctly - Obtained the device token - I have tried pulling a few pre-made files for SSLing into sandbox from the internet just to see if I can get them running before I start development.

该文件是在此发布的php文件:的http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12.其实,我得到了一个消息发送成功

The files are the php file posted here: http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12. I actually got a "Message successfully sent"

在这里发布的Python文件:<一href=\"http://stackoverflow.com/questions/1052645/apple-pns-push-notification-services-sample-$c$c\">Apple PNS(推送通知服务)样本code ;我不得不编辑Python 3的命令fromhash行STR(float.fromhash(...))

The python file posted here: Apple PNS (push notification services) sample code; I had to edit the Python 3 command "fromhash" line to str(float.fromhash(...))

我也使用PyAPNs API尝试。我仍然有use_sandbox设置为true。

I also tried using the PyAPNs API: https://github.com/simonwhitaker/PyAPNs. I still have use_sandbox set to true.

显然,我改变了设备令牌和公钥/证书我自己。可悲的是我还没有收到任何通知推着呢,我没有收到任何具体的错误,告诉我​​为什么。如果任何人都可以提供一些线索,这将是惊人的。

Obviously I changed the device tokens and public keys/certificates to my own. Sadly I have not received any pushed notifications yet, and I'm not receiving any concrete errors to tell me why. If anyone can shed some light, that would be amazing.

推荐答案

从我radesix的回答道歉评论,我可以不提供更多的细节,因为它已经过了一年,因为我已经感动了iOS开发。

From my comment in radesix's answer, and apologies that I can provide no more detail as it's been a year since I've touched iOS development.

问题是我的临时配置文件有APS-环境按键来开发,但由于某种原因X $ C $ç默认为调试。在编辑器中修改这个解决我的问题。

The problem was my provisional profile had the "aps-environment" key set to developer, but for some reason xcode defaulted to "debug". Changing this in the editor solved my problem.

这篇关于尝试发送推送通知到iOS设备 - 不接受他们的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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