push.areNotificationsEnabled

push.areNotificationsEnabled

This method offers alternative signatures:

push.areNotificationsEnabled(options, [onSuccess], [onError])

Signature

push.areNotificationsEnabled(options, [onSuccess], [onError])

Description

iOS: Checks if the Notifications are enabled for this Application in the Device's Notification Center. Windows Phone: Checks if the Application has an active opened Channel for communication with the Notification Service. Not relying on the device notification settings. Android: Checks if the Application has established connection with the Notification Service. Not relying on the device notification settings.

Parameters

Parameter Name Type Description
options Object an object passed to the Push Notification plugin's areNotificationsEnabled method.
[onSuccess] function Callback to invoke on successful check. Passes a single boolean value: true or false.
[onError] function Callback to invoke when an error in the push plugin has occurred.


push.areNotificationsEnabled(options)

Signature

push.areNotificationsEnabled(options)

Description

This method provides a different operation on each supported platform:

  • On iOS: Checks if Notifications is enabled for this application in the device's Notification Center.
  • On Windows Phone: Checks if the application has an active open channel for communication with the Microsoft Push Notification Service. The outcome does not depend on the device's notification settings.
  • On Android: Checks if the application has established a connection with Google Cloud Messaging. The outcome does not depend on the device's notification settings.

Return Type

Promise - The promise for the request.

Parameters

Parameter Name Type Description
options Object An object passed to the Push Notification plugin's areNotificationsEnabled method


push.areNotificationsEnabled

This method offers alternative signatures:

push.areNotificationsEnabled(options, [onSuccess], [onError])

Signature

push.areNotificationsEnabled(options, [onSuccess], [onError])

Description

iOS: Checks if the Notifications are enabled for this Application in the Device's Notification Center. Windows Phone: Checks if the Application has an active opened Channel for communication with the Notification Service. Not relying on the device notification settings. Android: Checks if the Application has established connection with the Notification Service. Not relying on the device notification settings.

Parameters

Parameter Name Type Description
options Object an object passed to the Push Notification plugin's areNotificationsEnabled method.
[onSuccess] function Callback to invoke on successful check. Passes a single boolean value: true or false.
[onError] function Callback to invoke when an error in the push plugin has occurred.


push.areNotificationsEnabled(options)

Signature

push.areNotificationsEnabled(options)

Description

This method provides a different operation on each supported platform:

  • On iOS: Checks if Notifications is enabled for this application in the device's Notification Center.
  • On Windows Phone: Checks if the application has an active open channel for communication with the Microsoft Push Notification Service. The outcome does not depend on the device's notification settings.
  • On Android: Checks if the application has established a connection with Google Cloud Messaging. The outcome does not depend on the device's notification settings.

Return Type

Promise - The promise for the request.

Parameters

Parameter Name Type Description
options Object An object passed to the Push Notification plugin's areNotificationsEnabled method


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.