How to get invalid device tokens in new apple push notifications api.
We use to get invalid device tokens from apple using following java jar (which uses old socket way using binary communication). Now we are trying to migrate to new apple api using HTTP/2 way, but I don't find any api to pull invalid device tokens.
gradle dependency:
// https://mvnrepository.com/artifact/com.notnoop.apns/apns
implementation 'com.notnoop.apns:apns:0.2.3'
Questions:
- Is there an API to get invalid tokens in new apple push notification api HTTP/2? or any other way?
- do we still need to get invalid tokens and clear from our local server cache and make sure not to send notifications to invalid tokens?
- If we keep pushing notifications to invalid device tokens using api, is there any impact? does apple take that in serious note and block any future requests?
Your help would be much appreciated !!!!