I see a very strange behavior from Apple Notification Servers when the recipient's iPhone is disconnected. Here is my scenario:
-Send A push notification to Apple. Within a few seconds, a push notification pop-up will appear as expected on the iPhone.
-Send an empty Apple notification to cancel the previous one (the previous notification is meaningless after about 10 seconds, so I want to get rid of it). Nothing is displayed on the iPhone.
-Turn on the iPhone completely (do not sleep, it is off).
-Send push notification B to Apple. Wait 10 seconds.
Send an empty Apple notification to cancel the previous one. Wait 10 seconds.
-Send C push notification to Apple. Wait 10 seconds.
Send an empty Apple notification to cancel the previous one. Wait 30 seconds.
-Turn on your iPhone.
- After about 60 seconds, notification B pops up on notification iPhone with notification.
-Notification C never comes.
It is very strange! From reading Apple documents, I expected only the last push notification to be sent. I was hoping that my empty notification would be sent, of course I did not expect to send the oldest unsent push notification!
Apple docs say:
Apple Push (QoS) , store-and-forward. APNS , , QoS . : , . , QoS . QoS .
- ? - ? ?
:
- 5-15 , - push-, . , , , , - , Apple , "" (.. ).
- , APNsLogging.mobileconfig iPhone, , .
- Wi-Fi .
- Apple .