Detect whether the user has disable push notification permission from APN

I understand we can add code on iOS client side to detect whether the user has disabled push notification permission, my question it, is it possible to do it in only using APN?


I try the "Feedback Service" first, from Apple Programming Guide:

The Apple Push Notification service includes a feedback service to give you information about failed remote notifications. When a remote notification cannot be delivered because the intended app does not exist on the device, the feedback service adds that device’s token to its list. Remote notifications that expire before being delivered are not considered a failed delivery and don’t impact the feedback service. By using this information to stop sending remote notifications that will fail to be delivered, you reduce unnecessary message overhead and improve overall system performance.


So "Feedback Service" essentially give us a token list for failed push notifications. I tried to disable push notification permission or uninstalled app, however my device token does not appear in this list.


Apple's document also mentions we will get immediate response from APN once we send the push notification:


If you send a notification that is accepted by APNs, nothing is returned.

If you send a notification that is malformed or otherwise unintelligible, APNs returns an error-response packet and closes the connection. Any notifications that you sent after the malformed notification using the same connection are discarded, and must be resent. Figure A-2 shows the format of the error-response packet.


However, it seems like the returned status stay the same no matter what I do: enable/disable push notification permission or even uninstall the app...


I am wondering if there is a way to do it with APN? Thank you


Reference: https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/BinaryProviderAPI.html#//apple_ref/doc/uid/TP40008194-CH13-SW1

No, there isn't a way to detect via APN that a user has push notifications disabled.


APN feedback only lists devices with uninstalled apps and it can take a while for the device to appear on the list.


This is a privacy issue, Apple doesn't want apps harassing users to enable push notifications.

Detect whether the user has disable push notification permission from APN
 
 
Q