-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullPointerException when using cloud messaging #1081
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
We have also started receiving a new error in the same method:
|
The error was caused by: I would fix it by- 2)Adding a try-catch block to handle execution errors. 3)Testing by downgrading Firebase Admin SDK to 9.3.0, confirming that the issue was introduced in 9.4.3. Steps before fixing: |
When we are sending messages in bulk to devices using device specific tokens, we randomly get the error below:
We are using the method sendEachAsync:
BatchResponse firebaseResponse = FirebaseMessaging.getInstance(firebaseApp).sendEachAsync(firebaseMessages, pushDryRun).get();
Besides the error showing up randomly when we are sending the messages, it seems that in older version of the library (<= 9.3.0), that the error is:
The problem for us is that it seems that this error started showing up randomly last month.
At least some messages seem to be sent, because we have info that users are seeing and clicking on the notifications.
So, it seems that we are correctly calling the procedure.
Any help would be welcomed.
The text was updated successfully, but these errors were encountered: