Skip to content

Commit d41d2ab

Browse files
authored
Add documentation to onMessageReceived on the time to handle a message. (#5147)
1 parent 593f4cd commit d41d2ab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

firebase-messaging/src/main/java/com/google/firebase/messaging/FirebaseMessagingService.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ public class FirebaseMessagingService extends EnhancedIntentService {
8585
/**
8686
* Called when a message is received.
8787
*
88+
* <p>This should complete within 20 seconds. Taking longer may interfere with your ability to
89+
* complete your work and may affect pending messages.
90+
*
8891
* <p>This is also called when a notification message is received while the app is in the
8992
* foreground. The notification parameters can be retrieved with {@link
9093
* RemoteMessage#getNotification()}.
@@ -143,7 +146,6 @@ public void onSendError(@NonNull String msgId, @NonNull Exception exception) {}
143146
*/
144147
@WorkerThread
145148
public void onNewToken(@NonNull String token) {}
146-
;
147149

148150
/** @hide */
149151
@Override

0 commit comments

Comments
 (0)