Package com.zendesk.connect
Interface MessageReceiver
-
public interface MessageReceiver
Receiver that acts as a pass-through for non-ConnectRemoteMessage
s, allowing an integrator to handle their own push payloads.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description void
onDeletedMessages(Service service)
Called when the FCM server deletes pending messages.void
onMessageReceived(RemoteMessage remoteMessage, Service service)
Invoked when aRemoteMessage
is received that does not belong to a Connect push.void
onMessageSent(java.lang.String messageId, Service service)
Called when an upstream message has been successfully sent.void
onNewToken(java.lang.String token, Service service)
Called when a new token for the default Firebase project is generated.void
onSendError(java.lang.String messageId, java.lang.Exception exception, Service service)
Called when there was an error sending an upstream message.
-
-
-
Method Detail
-
onMessageReceived
void onMessageReceived(RemoteMessage remoteMessage, Service service)
Invoked when aRemoteMessage
is received that does not belong to a Connect push.- Parameters:
remoteMessage
- theRemoteMessage
received in the push payloadservice
- theService
context from which the message was received
-
onDeletedMessages
void onDeletedMessages(Service service)
Called when the FCM server deletes pending messages.- Parameters:
service
- theService
context from which this call was made
-
onMessageSent
void onMessageSent(java.lang.String messageId, Service service)
Called when an upstream message has been successfully sent.- Parameters:
messageId
- the id of the message sent upstreamservice
- theService
context from which this call was made
-
onSendError
void onSendError(java.lang.String messageId, java.lang.Exception exception, Service service)
Called when there was an error sending an upstream message.- Parameters:
messageId
- the id of the message being sent upstreamexception
- the exception that occurredservice
- theService
context from which this call was made
-
onNewToken
void onNewToken(java.lang.String token, Service service)
Called when a new token for the default Firebase project is generated.- Parameters:
token
- the new device tokenservice
- theService
context from which this call was made
-
-