Package io.outbound.sdk
Class OutboundMessagingService
- java.lang.Object
-
- FirebaseMessagingService
-
- io.outbound.sdk.OutboundMessagingService
-
public class OutboundMessagingService extends FirebaseMessagingService
OutboundMessagingService handles incoming push notifications from Firebase.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
TAG
-
Constructor Summary
Constructors Constructor and Description OutboundMessagingService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Notification
buildNotification(PushNotification notification)
Called to create aNotification
from aPushNotification
.void
onMessageReceived(RemoteMessage message)
void
onNotificationDisplayed(PushNotification notification)
Called after an Outbound notification is displayed.void
onNotificationReceived(PushNotification notification)
Called after an Outbound notification is received.void
onReceivedMessage(RemoteMessage message)
Called when an unhandled non-Outbound notification is received.
-
-
-
Method Detail
-
onMessageReceived
public void onMessageReceived(RemoteMessage message)
-
onReceivedMessage
public void onReceivedMessage(RemoteMessage message)
Called when an unhandled non-Outbound notification is received. This method is recommended for custom handling of your own notifications.- Parameters:
message
-
-
onNotificationReceived
public void onNotificationReceived(PushNotification notification)
Called after an Outbound notification is received. Called for ALL notifications whether they display or not. This method is recommended for handling any custom payload properties sent in the notification.- Parameters:
notification
-
-
onNotificationDisplayed
public void onNotificationDisplayed(PushNotification notification)
Called after an Outbound notification is displayed. IS NOT called for silent notifications since they do not "display."- Parameters:
notification
-
-
buildNotification
public Notification buildNotification(PushNotification notification)
Called to create aNotification
from aPushNotification
. This can be overridden to allow custom styling not provided by default through the SDK.- Parameters:
notification
-
-
-