Reputation: 4367
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
Upvotes: 6
Views: 2510
Reputation: 4367
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.
Upvotes: 3