public interface FcmServiceClient
| Modifier and Type | Field and Description |
|---|---|
static NamedServiceClientFactory<FcmServiceClient> |
factory |
| Modifier and Type | Method and Description |
|---|---|
FcmSendMessageResult |
sendMessageTo(String to,
FcmSendMessageRequest request)
Sends an FCM message to the given target with the given request payload.
|
FcmSendMessageResult |
sendMessageToRegistrationTokens(Collection<String> registrationTokens,
FcmSendMessageRequest request)
Sends an FCM message to the given set of registration tokens with the given request payload.
|
FcmSendMessageResult |
sendMessageToUsers(Collection<String> userIds,
FcmSendMessageRequest request)
Sends an FCM message to the given set of Stitch users with the given request payload.
|
static final NamedServiceClientFactory<FcmServiceClient> factory
FcmSendMessageResult sendMessageTo(String to, FcmSendMessageRequest request)
to - the target to send a message to.request - the details of the message.FcmSendMessageResult sendMessageToUsers(Collection<String> userIds, FcmSendMessageRequest request)
userIds - the Stitch users to send a message to.request - the details of the message.FcmSendMessageResult sendMessageToRegistrationTokens(Collection<String> registrationTokens, FcmSendMessageRequest request)
registrationTokens - the devices to send a message to.request - the details of the message.