anilvardhan
anilvardhan

Reputation: 13

worklight android push notification device settings?

I am creating push notification for Android & IOS by using Worklight. If the user manually changes the push notification settings in mobile, how to get the action/value in worklight.

When the user switch-on/off the notification then how to handle the action in Worklight?

Any code help please share.

Upvotes: 0

Views: 71

Answers (1)

Idan Adar
Idan Adar

Reputation: 44516

You can get the state of these controls, at least in the case of iOS, by querying UIApplication > enabledRemoteNotificationTypes (you will likely need to create a Cordova plug-in to access this using Objective-C).

In Android I do not believe such granularity exists out of the box.

There is nothing to handle here, IMO. If a user chose to not receive notifications for the application or receive them as an alert instead of a notification or only as a sound - that is his or hers prerogative. You shouldn't do anything about it.

Upvotes: 1

Related Questions