What happens to push notifications after losing internet access?

后端 未结 2 860
情深已故
情深已故 2021-01-06 14:28

What happens if an application is waiting for a push notification and the internet connection is unavailable?

For example, I tell my server to do task \"A\", and not

2条回答
  •  说谎
    说谎 (楼主)
    2021-01-06 14:47

    Be careful when sending PUSHes with own server API, and also take into account apns-expiration field in APNs Provider API payload.

    This header identifies the date when the notification is no longer valid and can be discarded...

    ...if the value is 0, APNs treats the notification as if it expires immediately and does not store the notification or attempt to redeliver it...

    By Apple.

    It can be the reason, that the push notification does not come after network connection was restored.

提交回复
热议问题