Skip to content

The notification do not expire even it has apns-expiration set to 0 in headers #954

Answered by jchambers
gedsakal asked this question in Q&A
Discussion options

You must be logged in to vote

The store-and-forward behavior (the part that decides what to do with the expiration time) is controlled by Apple's servers, and is outside of Pushy's control. That said, Apple's documentation does make it sound like this behavior is expected:

…If the [apns-expiraton] value is 0, APNs attempts to deliver the notification only once and doesn’t store it.

A single APNs attempt may involve retries over multiple network interfaces and connections of the destination device. Often these retries span over some time period, depending on the network characteristics. In addition, a push notification may take some time on the network after APNs sends it to the device. APNs uses best efforts to honor…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gedsakal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants