1

I am writing an app that receives Push notifications via the Apple Push Notification Service.

Is there a way to know whether a push notification sent via APNS has successfully arrived to the device?

tshepang
  • 12,111
  • 21
  • 91
  • 136
Adam Matan
  • 128,757
  • 147
  • 397
  • 562
  • Can you explain in brief ? – Kumar KL Apr 28 '14 at 09:55
  • Could you please elaborate on what information is missing? I have sent a push notification, and I want to know whether it has arrived. – Adam Matan Apr 28 '14 at 10:01
  • I don't think so. Then it would mean to find out if the receiver device is turned on or off. – Desdenova Apr 28 '14 at 10:01
  • So you'r asking in the app level or device level ? – Kumar KL Apr 28 '14 at 10:17
  • as @arslanasim answered, Apple will not tell you if the push notification was delivered successfully or not but if you still want to track it nonetheless, you could play dirty and capsule a self generated token in the push notification payload. When the push notification is opened, respond with the token (_optionally, buffer it and wait for internet connection incase no network connectivity at the time of opening the push notification_). For this, you'll need to maintain a database of generated tokens sent and received. **But... I am not sure if Apple would be fine with this** – staticVoidMan Apr 28 '14 at 10:49
  • This question is a copy of http://stackoverflow.com/questions/10493145/how-to-find-the-apple-push-notification-delivered-to-user-or-not-from-our-server – Eva Madrazo Apr 28 '14 at 11:59
  • @EvaMadrazo Thanks, don't know how I missed it. Will vote to close the question. – Adam Matan Apr 28 '14 at 12:28
  • 1
    @staticVoidMan Thanks - It's a nice hack but I don't want to cross any lines with Apple here. – Adam Matan Apr 28 '14 at 12:28
  • @AdamMatan : +1 on that :P – staticVoidMan Apr 28 '14 at 12:32

1 Answers1

0

this is not possible to find whether it received by device or not,as php code will only connect to APNS server of apple. after that it is responsibility of apple server to send that message/notification to device.

Arslan Asim
  • 1,232
  • 1
  • 11
  • 29