Package io.outbound.sdk
Class OutboundMessagingService
- java.lang.Object
-
- FirebaseMessagingService
-
- io.outbound.sdk.OutboundMessagingService
-
public class OutboundMessagingService extends FirebaseMessagingServiceOutboundMessagingService handles incoming push notifications from Firebase.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringTAG
-
Constructor Summary
Constructors Constructor and Description OutboundMessagingService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description NotificationbuildNotification(PushNotification notification)Called to create aNotificationfrom aPushNotification.voidonMessageReceived(RemoteMessage message)voidonNotificationDisplayed(PushNotification notification)Called after an Outbound notification is displayed.voidonNotificationReceived(PushNotification notification)Called after an Outbound notification is received.voidonReceivedMessage(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 aNotificationfrom aPushNotification. This can be overridden to allow custom styling not provided by default through the SDK.- Parameters:
notification-
-
-