Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find the Apple Push Notification Delivered to user or not from our server?

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?

like image 267
Gopinath Avatar asked May 08 '12 05:05

Gopinath


2 Answers

APNS does not tell you if a message is successfully delivered. The closest you can get is poll 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.

like image 64
Jason Avatar answered Oct 20 '22 06:10

Jason


The Local and push notification guide says :

The delivery of notifications is “best effort” and is not guaranteed.

However there exists a feedback service described in the doc as:

Apple Push Notification Service includes a feedback service that APNs continually updates with a per-application list of devices for which there were failed-delivery attempts

like image 23
Vin Avatar answered Oct 20 '22 06:10

Vin