currentDevice.enableNotifications

This method offers alternative signatures:

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.
Start a free trial Request a demo
Contact us: +1-888-365-2779
sales@telerik.com
Copyright © 2016-2017, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.