Note that there are some explanatory texts on larger screens.

plurals
  1. POWeird Apple Push Notification behaviour when the receiving iPhone is turned off
    primarykey
    data
    text
    <p>I'm seeing some very strange behaviour from the Apple Push Notification Servers when the recipient iPhone is off. Here is my scenario:</p> <blockquote> <p>-Send push notification A to Apple. Within a few seconds a push notification popup gets displayed as expected on the iPhone.<br> -Send blank notification to Apple to cancel previous one (the previous notification is pointless after about 10 seconds, that's why I want to get rid of it). Nothing displayed on the iPhone.<br> -Turn OFF iPhone completely (not asleep, it is powered down).<br> -Send push notification B to Apple. Wait 10 seconds.<br> -Send blank notification to Apple to cancel previous one. Wait 10 seconds.<br> -Send push notification C to Apple. Wait 10 seconds.<br> -Send blank notification to Apple to cancel previous one. Wait 30 seconds.<br> -Turn ON iPhone.<br> -After about 60 seconds a push notification popup is displayed for notification B on the iPhone.<br> -Notification C never seems to arrive.</p> </blockquote> <p>This is very strange! From reading the Apple docs I was expecting only the latest push notification to be sent. I was hoping my blank notification would be sent, I certainly wasn't expecting the oldest unsent push notification to be sent!</p> <p>The Apple docs say:</p> <blockquote> <p>Apple Push Notification Service includes a default Quality of Service (QoS) component that performs a store-and-forward function. If APNS attempts to deliver a notification but the device is offline, the QoS stores the notification. It retains only one notification per application on a device: the last notification received from a provider for that application. When the offline device later reconnects, the QoS forwards the stored notification to the device. The QoS retains a notification for a limited period before deleting it.</p> </blockquote> <p>Has anybody seen this behaviour? Am I just hitting some sort of timing window bug? What should happen?</p> <p><strong>Updates</strong>:<br> -If I turn the phone off and wait 5 to 15 minutes before sending any push notifications then this problem doesn't occur. In this case when I turn the phone on I don't see any notification popup, although I'm not sure if this is a result of Apple dropping the notification, or their 'queue' working correctly (i.e. holding the newest blank notification instead of the first one with the popup).<br> -I will investigate further by putting an APNsLogging.mobileconfig onto the iPhone to see what notifications it got.<br> -Turning wifi off doesn't seem to change the results.<br> -I have raised a bug report with Apple for this scenario. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload