firebase-admin-java
firebase-admin-java copied to clipboard
[FR] Open up FirebaseMessagingException
Is your feature request related to a problem? Please describe. FirebaseMessagingException is final and has package private/private constructors. This prevents using the exception in tests. The firebase recommendation to deal with invalid tokens is to react on error code UNREGISTERED and INVALID_ARGUMENT. In order to test my code that deals with this scenario I would need to create a FirebaseMessagingException with the specified error codes which I can't.
Describe the solution you'd like Open up FirebaseMessagingException to allow instantiation in tests.
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
Any progress here?
Same situation here. Please make it public. It blocks us now from upgrading to latest version of the library.
Can we suggest PR for this?