Being notified when a push token is rejected
In the FAQ I read the following :
The system removes the devices after sending push notifications message as soon as Push Notifications Provider rejects the push notification token.
So Pushwoosh servers are notified when we want to send a push notification to a device registered with an invalid push token.
Do you provide (or planned to provide) a functionnality to be notified when a push notification token is rejected by a Push Notification provider ?
For example we could enter an HTTP URL like 'http://myserver.com/pushwoosh/rejected-token-enpoint' in the Pushwoosh administration GUI.
Then each time the Pushwoosh server encounter a rejected token it would send us a JSON payload with all the informations associated to the removed device / push token.
This would allow us to clean our devices database.
I'm not really sure but it seems that for the moment we have only 2 solutions to deal with invalid tokens, is this right ?
- Keep invalid tokens / devices in our database indefinitely, its not perfect because we store data which will never be used again, also what is the behavior if we use the Pushwoosh /createMessage Web Service with invalid / rejected device identifiers ?
- Track the tokens / devices using a CRON job and deletes the devices which are very old in our database. Not perfect because we can have users which do not use our app during a long time.
Please sign in to leave a comment.