parse-community / parse-server-push-adapter

A push notification adapter for Parse Server
https://parseplatform.org
MIT License
88 stars 100 forks source link

cannot handle "unregistered" status #106

Open charlyBerthet opened 6 years ago

charlyBerthet commented 6 years ago

Hello,

For some of my installations I receive this error :

parse-server-push-adapter APNS APNS error transmitting to device XXXXXX with status 410 and reason Unregistered

I would like to subscribe to push adapter events in order to handle unregistered devices. How can I catch this error ?

My final goal is to remove unregistered installations in order to have a clean schema of Installations.

Thanks

funkenstrahlen commented 6 years ago

Please checkout this thread: https://github.com/parse-community/parse-server-push-adapter/issues/87

There is already some work on cleaning up bad devices tokens. It is not finished though.