0

When I send a web push notification with fcm google api and the user has uninstalled the application I receive a "NotRegistered" error message.

I want to know this information without send any push notification, is this possible? Create some php code to run every day and know how many user i'm losing per day.

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
Alexandra
  • 155
  • 2
  • 4
  • 15
  • Have you tried something? – Web Artisan Nov 26 '18 at 11:00
  • The answers [here](https://stackoverflow.com/questions/38442434/firebase-cloud-messaging-how-to-validate-tokens) say there is no way to validate tokens without sending a message, although one answer mentions the ability to perform a dry run. The answer [here](https://stackoverflow.com/questions/43889697/how-to-detect-if-token-is-expired-or-not-registred-firebase-fcm-notification-on) shows a separate REST endpoint that can check. As a final alternative, you can send a data message, which your app then ignores, to perform the test. – Frank van Puffelen Nov 26 '18 at 15:24

0 Answers0