FirebaseMessagingService

public class FirebaseMessagingService extends Service

Base class for communicating with Firebase Messaging.

It also provides functionality such as automatically displaying notifications.

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">
     <intent-filter>
         <action android:name="com.google.firebase.MESSAGING_EVENT" />
     </intent-filter>
 </service>

Inherited Constant Summary

Public Constructor Summary

Public Method Summary

final IBinder
onBind(Intent intent)
void
onDeletedMessages()
Called when the FCM server deletes pending messages.
void
onMessageReceived(RemoteMessage message)
Called when a message is received.
void
onMessageSent(String msgId)
Called when an upstream message has been successfully sent to the GCM connection server.
void
onSendError(String msgId, Exception exception)
Called when there was an error sending an upstream message.
final int
onStartCommand(Intent originalIntent, int flags, int startId)

Inherited Method Summary