Bulk sending to APNS, what happens if some of them fail?

Suppose I have 3 notifications for sending - a , b and c - but there is a problem with notification b . Suppose this is an invalid token. If I do the following:

  1. Create buffer
  2. Add a, b and c to the buffer
  3. Send buffer to APNS server

Will message c be sent?

Apple documentation states:

If you send a notification and the APN detects that the notification is garbled or otherwise unclear, it will return a packet with an error message before disconnecting.

Does this mean that I will get an error about b and the connection will be disconnected and therefore c will never be sent?

+6
source share
1 answer

Message c will never be sent. If you manage to get an error response for message b , you will have to resend all messages sent after sending b and before receiving a response.

You can read a good article about it here: Problem with APNS

+4
source

Source: https://habr.com/ru/post/917172/


All Articles