简体   繁体   English

在iPhone(APNS)上测试推送通知

[英]Testing push notifications on iPhone (APNS)

I have uploaded my SSL certificates to my project, focusing on the aps_development.cer. 我已将SSL证书上传到我的项目中,重点是aps_development.cer。

When I launch my app, I get prompted asking if I want to allow notifications, so that is working properly. 当我启动我的应用程序时,系统提示我是否要允许通知,因此这正常工作。 It's that the actual notification is not passing through. 实际的通知没有通过。

My server appears that it is able to send a notification, and I am sending it to my device token. 我的服务器似乎可以发送通知,并且正在将其发送到设备令牌。

I'm assuming it might be something with my code signing in Xcode. 我以为我的代码在Xcode中签名可能是什么。 Is there something different I should be doing? 我应该做些不同的事情吗?

在此处输入图片说明

Preparing your app for push notifications is a long task. 为推送通知准备应用程序是一项艰巨的任务。 With the information your are giving it is not clear that what you are doing wrong. 根据您提供的信息,您不清楚自己在做什么错。

When I look at it at first I see that no provisioning profile selected. 起初看时,我发现没有选择配置文件。 You can't send push notifications without selecting appropriate provisioning profile. 您必须选择适当的配置文件才能发送推送通知。

Also what about your pem files and other stuff like gateway url etc? 另外,您的pem文件和网关url等其他内容又如何呢?

You can follow these instructions to make push notifications work. 您可以按照以下说明使推送通知起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM