Hello everyone. I'm trying to add a lifetime for push notifications via apns-expiration for my application. With the Internet turned on, push notifications come, that's ok. With the Internet turned off, as I noticed, only the last push with the badge installation on the application icon comes. That is, the logic is that a text push with text is sent, then after N time the next push to the same device with the badge installation. I would like to receive a text push after turning on the Internet.
When the receiving device is offline, only the last notification sent to an app is stored - and then forwarded when the device comes online.
If there is already a stored notification, a newer notification sent to the same device/app will overwrite the currently stored one.
If you want the text notification instead of the badge, you can flip your logic, so the text notification is the one that is saved. Or you can also combine the text and badge information into a single notification without the need for a separate notification which overwrites the other.
Argun Tekant / DTS Engineer / Core Technologies