public class FirebaseMessagingService extends EnhancedIntentService

Base class for receiving messages from Firebase Cloud Messaging.

Extending this class is required to be able to handle downstream messages. It also provides functionality to automatically display notifications, and has methods that are invoked to give the status of upstream messages.

Override base class methods to handle any events required by the application. Methods are invoked on a background thread.

Include the following in the manifest:

 <service android:name=".YourFirebaseMessagingService">
         <action android:name="" />

Inherited Constant Summary

Public Constructor Summary

Public Method Summary

Called when the FCM server deletes pending messages.
onMessageReceived(RemoteMessage message)
Called when a message is received.
onMessageSent(String msgId)
Called when an upstream message has been successfully sent to the GCM connection server.
onNewToken(String token)
Called when a new token for the default Firebase project is generated.
onSendError(String msgId, Exception exception)
Called when there was an error sending an upstream message.

Inherited Method Summary