CurrentDevice [class]

Deprecated

Access: protected

Members

Instance members

Name Return type Description
disableNotifications() Object Disables push notifications for the current device. This method invalidates any push tokens that were obtained for the device from the current application.
disableNotifications([success], [error]) Disables push notifications for the current device. This method invalidates any push tokens that were obtained for the device from the current application.
enableNotifications(pushSettings) Object 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.
enableNotifications(pushSettings, [success], [error]) 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.
getRegistration() Object Returns the push registration for the current device.
getRegistration(success, error) Returns the push registration for the current device.
register(customParameters) Object Registers the current device for push notifications in Telerik Backend Services. This method can be called only after enableNotifications() has completed successfully.
register(customParameters, [success], [error]) Registers the current device for push notifications in Telerik Backend Services. This method can be called only after enableNotifications() has completed successfully.
unregister() Object Unregisters the current device from push notifications in Telerik Backend Services. After this call completes successfully, Backend Services will no longer send notifications to this device. Note that this does not prevent the device from receiving notifications and does not invalidate push tokens.
unregister([success], [error]) Unregisters the current device from push notifications in Telerik Backend Services. After this call completes successfully, Backend Services will no longer send notifications to this device. Note that this does not prevent the device from receiving notifications and does not invalidate push tokens.
updateRegistration(customParameters) Object Updates the registration of the current device.
updateRegistration(customParameters, [success], [error]) Updates the registration for the current device.
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.