Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Recall a previous sent push-notification on iOS

For a notification-app I need to recall messages previously sent via APNS in case those messages are outdated or read on another device - even if the app is not running.

As there is no "remove"-call via APN and also apps are not launched on remote notifications, I assume that the only possible way is to use PushKit and Voice over IP background mode. Since we don't use VOIP, the app might be rejected.

Another app telegram is capable of removing messages read on another device - even this app does not have VOIP support. So am I missing out somewhat or does telegram simply violates apple's guidelines?

regards

coyer

like image 468
coyer Avatar asked Nov 01 '16 11:11

coyer


1 Answers

I end up using VOIP-pushnotifications and create my own local notifications with UNNotificationRequest. I then have the opportunity to remove my outdated notifications at any time.

Apple indeed asks why I am using VOIP-push but accepted the app after I states that there is no other way removing outdated notifications.

like image 71
coyer Avatar answered Nov 05 '22 18:11

coyer