Skip to main content

Push Notification

Use the Push Notification app to send push-notification messages through Apple Push Notification Services, Firebase Cloud Messaging, Google Cloud Messages, or Windows Push Notification Services.

Before you begin​

Have the credentials and device information required by the service you plan to configure. Keep credentials, certificate files, API keys, and device tokens private.

Functions​

iOS Push​

Use iOS Push to send notifications with Apple Push Notification Services.

Parameters​

ParameterUsageRequired
App Passphrase (iOS)Passphrase used to access the Apple private certificate, when the certificate requires one.No
Apple Certificate Authority File (iOS)Certificate authority file used to establish trust with Apple Push Notification Services.No
Apple Private Certificate File (iOS)Private certificate file used to authenticate the app with Apple Push Notification Services.No
Device Token (iOS)Token that identifies the destination app installation on an iOS device.No
ServerApple Push Notification Services environment to use, such as development or production.Yes
Application nameIdentifier of the iOS application that will receive the notification.No
Custom propertyAdditional application-specific data to include with the notification.No
SoundSound the device should play when it receives the notification.No
BadgeValue to display on the app icon badge.No
Time to liveLength of time the notification remains eligible for delivery.No

Response parameters​

ParameterUsage
logIndicates whether the notification was sent successfully.
messageThe output message.
errorError message if the notification failed.

Android Firebase Cloud Messaging​

Use Android Firebase Cloud Messaging to send notifications through Firebase Cloud Messaging.

Parameters​

ParameterUsageRequired
FCM Server API KeyAuthenticates requests sent to Firebase Cloud Messaging.Yes
ToIdentifies a single recipient, notification topic, or device group.No
Registration idsIdentifies multiple destination devices in one request.No
ConditionDefines a logical expression for targeting devices subscribed to specific topics.No
Collapse keyGroups replaceable messages so only the most recent pending message is delivered.No
PriorityControls the delivery priority of the message.No
Content availableIndicates that the notification can trigger a background update.No
Mutable ContentAllows a notification service extension to modify the notification before it is displayed.No
Time to liveDefines how long an undelivered message remains eligible for delivery.No
Restricted package nameLimits delivery to an app whose package name matches the specified value.No
Dry runValidates the request without delivering the notification.No
Data Key1Defines the key for the first custom data entry.No
Data Value 1Defines the value associated with Data Key1.No
Data Key 2Defines the key for the second custom data entry.No
Data Value 2Defines the value associated with Data Key 2.No
Data Key 3Defines the key for the third custom data entry.No
Data Value 3Defines the value associated with Data Key 3.No
TitleSets the notification title shown to the recipient.Yes
BodySets the main notification message shown to the recipient.Yes
SoundSpecifies the sound to play when the notification arrives.No
TagAssigns an identifier that can be used to replace an existing notification.No
ColorSets the notification icon color on supported devices.No
Click ActionSpecifies the action to perform when the recipient opens the notification.No
Body loc keyIdentifies the localized string resource used for the notification body.No
Title loc keyIdentifies the localized string resource used for the notification title.No

Response parameters​

ParameterUsage
multicast_idIdentifies the multicast message returned by Firebase Cloud Messaging.
successReports the number of messages that Firebase Cloud Messaging processed successfully.
failureReports the number of messages that Firebase Cloud Messaging could not process.
canonical_idsReports how many recipients have a canonical registration token that should replace the submitted token.
resultsContains the collection of results returned for the notification recipients.
results.0Contains the first recipient result in the results collection.
results.0.message_idIdentifies the successfully processed message for the first recipient.
results.0.errorContains the delivery error returned for the first recipient, when applicable.

Android Push​

Use Android Push to send notifications through Google Cloud Messages.

Parameters​

ParameterUsageRequired
Ticker TextSets the brief text displayed in the device status bar when the notification arrives.Yes
TitleSets the notification title shown to the recipient.Yes
MessageSets the main notification message shown to the recipient.Yes
GCM Server API Key (Android)Authenticates requests sent to Google Cloud Messages.Yes
Device Token (Android)Identifies the destination app installation on an Android device.Yes

Response parameters​

ParameterUsage
multicast_idIdentifies the multicast message returned by the push-notification service.
successReports the number of messages processed successfully.
failureReports the number of messages that could not be processed.
canonical_idsReports how many recipients have a canonical registration token that should replace the submitted token.
resultsContains the collection of results returned for the notification recipients.
results.registration_idContains the replacement registration token for a recipient, when one is returned.
results.message_idIdentifies a successfully processed message.
logContains log information produced while processing the request.
messageContains a response or status message from the function.
errorContains error information when the function cannot complete successfully.

Windows Push​

Use Windows Push to send notifications through Windows Push Notification Services.

Parameters​

ParameterUsageRequired
Device Token (Windows)Identifies the destination app installation or notification channel on a Windows device.Yes
TitleSets the notification title shown to the recipient.Yes
MessageSets the main notification message shown to the recipient.Yes

Response parameters​

ParameterUsage
X-SubscriptionStatusReports the status of the destination notification subscription.
X-NotificationStatusReports how Windows Push Notification Services handled the notification.
X-DeviceConnectionStatusReports the connection status of the destination device.
logContains log information produced while processing the request.
messageContains a response or status message from the function.
errorContains error information when the function cannot complete.

Was this article helpful?