Package com.zendesk.connect
Class ConnectMessagingService
- java.lang.Object
-
- FirebaseMessagingService
-
- com.zendesk.connect.ConnectMessagingService
-
public class ConnectMessagingService extends FirebaseMessagingServiceService class to receive push notifications from Firebase. Connect will attempt to handle the push payload and invoke:MessageReceiverto control non-Connect messages, and pass along other Firebase eventsNotificationEventListenerto react to notification eventsNotificationFactoryto create custom display notifications.
-
-
Constructor Summary
Constructors Constructor and Description ConnectMessagingService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidonDeletedMessages()voidonMessageReceived(RemoteMessage message)voidonMessageSent(java.lang.String s)voidonNewToken(java.lang.String s)voidonSendError(java.lang.String s, java.lang.Exception e)static voidsetMessageReceiver(MessageReceiver messageReceiver)Sets an implementation ofMessageReceiverto be invoked when a non-ConnectRemoteMessageis received.static voidsetNotificationEventListener(NotificationEventListener notificationEventListener)Sets an implementation ofNotificationEventListenerto be invoked when notification events occurstatic voidsetNotificationFactory(NotificationFactory notificationFactory)Sets an implementation ofNotificationFactoryto be invoked when a display notification is being created.
-
-
-
Method Detail
-
onMessageReceived
public final void onMessageReceived(RemoteMessage message)
-
onDeletedMessages
public final void onDeletedMessages()
-
onMessageSent
public final void onMessageSent(java.lang.String s)
-
onSendError
public final void onSendError(java.lang.String s, java.lang.Exception e)
-
onNewToken
public final void onNewToken(java.lang.String s)
-
setMessageReceiver
public static void setMessageReceiver(MessageReceiver messageReceiver)
Sets an implementation ofMessageReceiverto be invoked when a non-ConnectRemoteMessageis received.- Parameters:
messageReceiver- an implementation ofMessageReceiver
-
setNotificationEventListener
public static void setNotificationEventListener(NotificationEventListener notificationEventListener)
Sets an implementation ofNotificationEventListenerto be invoked when notification events occur- Parameters:
notificationEventListener- an implementation ofNotificationEventListener
-
setNotificationFactory
public static void setNotificationFactory(NotificationFactory notificationFactory)
Sets an implementation ofNotificationFactoryto be invoked when a display notification is being created.- Parameters:
notificationFactory- an implementation ofNotificationFactory
-
-