简体   繁体   English

在iOS中发送和接收推送通知?

[英]Push Notification send and receive in iOS?

I want to develop an app regarding push notification. 我想开发一个关于推送通知的应用程序。

I want to send a push notification to 5 persons who has installed my app and are stored in my directory. 我想向安装了我的应用并存储在目录中的5个人发送推送通知。

  1. Can I send Push Notification to 5 people using their UDID which I received from each and every person who has installed App. 我可以使用从每个安装App的每个人收到的UDID向5个人发送推送通知。 (As UDID is banned) (因为UDID被禁止)

  2. I want to send them continuously to 5 persons till one does not press OK button on Alert? 我想连续将它们发送给5个人,直到一个人没有按Alert上的OK按钮?

  3. Which service should I use for Push Notification? 我应该使用哪种服务进行推送通知?

  4. Is push notification receives on time or it delays? 推送通知是按时收到还是延迟?

You cant send the push notification using UDID, you can use the Apple service for sending the push notifications via device-token and pem file which is explained in below link. 您不能使用UDID发送推送通知,您可以使用Apple服务通过设备令牌和pem文件发送推送通知,这在下面的链接中进行了说明。

http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1 http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1

Any push notification that isn't delivered immediately was queued for future redelivery because your device was not connected to the service. 由于您的设备未连接到服务,因此未立即发送的所有推送通知都已排队等待将来重新发送。 "Immediately" of course needs to take latency for your connection into account. 当然,“立即”需要考虑您的连接延迟。 Outlying cases would be beyond 60 seconds as APNs will time out at that point. 由于APNs届时将超时,因此外围案件将超过60秒。

Still you have any query then you can refer the below link http://developer.apple.com/library/ios/#technotes/tn2265/_index.html 仍然有任何疑问,您可以参考以下链接http://developer.apple.com/library/ios/#technotes/tn2265/_index.html

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

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