FR: Divide "messaging/registration-token-not-registered" error into more specific parts. #533
Open
Description
opened on May 17, 2019
I'm not sure if this is the correct repo for this pr, but it is the codebase I'm working in.
I'm currently running into the error messaging/registration-token-not-registered
, and found the documentation on it:
The provided registration token is not registered. A previously valid registration token can be unregistered for a variety of reasons, including:
- The client app unregistered itself from FCM.
- The client app was automatically unregistered. This can happen if the user uninstalls the application or, on iOS, if the APNS Feedback Service reported the APNS token as invalid.
- The registration token expired. For example, Google might decide to refresh registration tokens or the APNS token may have expired for iOS devices.
- The client app was updated, but the new version is not configured to receive messages.
For all these cases, remove this registration token and stop using it to send messages.
Given the documentation above, it would seem this error is quite broad, requiring an in-depth understanding of "app registration to FCM," "APNS tokens," "Expiration," and mis-configured apps. I'm pretty uncertain where to start in terms of approaching it.
As a Feature Request, I think it would be really, really helpful if this one mega error was instead a few small ones, for instance:
messaging/registration-token-not-registered/apns-invalid
messaging/registration-token-not-registered/app-not-configured
messaging/registration-token-not-registered/expired
messaging/registration-token-not-registered/app-unregistered
Activity