We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01b5fd6 commit d07b069Copy full SHA for d07b069
src/test/java/com/google/firebase/snippets/FirebaseMessagingSnippets.java
@@ -245,7 +245,7 @@ public void sendEachForMulticastAndHandleErrors() throws FirebaseMessagingExcept
245
.putData("time", "2:45")
246
.addAllTokens(registrationTokens)
247
.build();
248
- BatchResponse response = FirebaseMessaging.getMessaging().sendEachForMulticast(message);
+ BatchResponse response = FirebaseMessaging.getInstance().sendEachForMulticast(message);
249
if (response.getFailureCount() > 0) {
250
List<SendResponse> responses = response.getResponses();
251
List<String> failedTokens = new ArrayList<>();
0 commit comments