本文介绍了如何找到已交给用户或不是从我们的服务器苹果推送通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是新的iPhone应用程序,苹果推送通知服务。我已经学会了这些教程和苹果的文件,


  • www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12

  • www.raywenderlich.com/3525/apple-push-notification-services-tutorial-part-2

我们是从我们的服务器(PHP)到苹果推送通知服务器推通知,APNS将通知推送到设备。的在这种情况下,我们怎么才能知道该通知已经从我们的服务器成功或者未送达用户?如果我们通知发送到所有订阅用户(100以上的用户),我们可以对那些100个用户发送报告?


解决方案

APNS不告诉你,如果邮件被成功传递。你可以得到最接近的是拉其Feedback服务,查看您的应用程序从设备卸载。看看这个SO张贴一个想法如何:PHP技术查询的APN反馈服务器

你可以做的是有你的iOS应用程序记录的东西,只要一个推送通知与到达应用:didReceiveRemoteNotification 但是,只有当您的应用程序在前台运行工作

Am new to Apple Push Notification services in iPhone app. I have learned these tutorials and apple document,

  • www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12
  • www.raywenderlich.com/3525/apple-push-notification-services-tutorial-part-2

We are pushing a notification from our server (PHP) to Apple Push Notification Server and APNS will push the notification to devices. In this case how we can know the notification has delivered the user successfully or not from our server? If we send notification to all subscribed users (above 100 users) can we have a delivery report for those 100 users?

解决方案

APNS does not tell you if a message is successfully delivered. The closest you can get is pull its Feedback Service to see if your app is uninstalled from a device. Check out this SO post for an idea how: PHP technique to query the APNs Feedback Server

What you can do is have your iOS app record something whenever a push notification arrives with application:didReceiveRemoteNotification but that only works if your app is running in the foreground.

这篇关于如何找到已交给用户或不是从我们的服务器苹果推送通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-23 08:01