Skip to content

PushNotificationRegister

Register a device with SAP Mobile Services to allow push notifications to be sent to the device.

The properties defined in Action are also applicable to this action.

PushNotificationRegister Properties

Property Type Required
_Type const Required

_Type

  • type: const

The value of this property must be equal to:

"Action.Type.PushNotificationRegister"

Action Result

Refer to the MDK Guide to understand what an action result is.

The success ActionResult of this action is null for demo mode or a push registration token for production mode. The failure ActionResult is an error message.


Examples

{
    "_Type": "Action.Type.PushNotificationRegister",
    "OnSuccess": "/MDKApp/Actions/PushNotification/PushNotificationRegisterSuccessMessage.action",
    "OnFailure": "/MDKApp/Actions/PushNotification/PushNotificationRegisterFailureMessage.action"
}