This method offers alternative signatures:
- currentDevice.enableNotifications(pushSettings, success, error)
- currentDevice.enableNotifications(pushSettings)
currentDevice.enableNotifications(pushSettings, [success], [error])
Signature
currentDevice.enableNotifications(pushSettings, [success], [error])
Description
Initializes the current device for push notifications. This method requests a push token from the device vendor and enables the push notification functionality on the device. Once this is done, you can register the device in Telerik Backend Services using the register() method.
Parameters
Parameter Name | Type | Description |
---|---|---|
pushSettings |
PushSettings | An object specifying various settings for the initialization. |
[success] |
function | Callback to invoke on success. |
[error] |
function | Callback to invoke on error. |
currentDevice.enableNotifications(pushSettings)
Signature
currentDevice.enableNotifications(pushSettings)
Description
Initializes the current device for push notifications. This method requests a push token from the device vendor and enables the push notification functionality on the device. Once this is done, you can register the device in Telerik Backend Services using the register() method.
Return Type
Object - The promise for the request.
Parameters
Parameter Name | Type | Description |
---|---|---|
pushSettings |
PushSettings | An object specifying various settings for the initialization. |