Pushwoosh / pushwoosh-phonegap-plugin

Pushwoosh PhoneGap Build Plugin
Other
110 stars 139 forks source link

Check to see if Notifications are enabled/disabled #194

Closed dagmawim closed 8 years ago

dagmawim commented 8 years ago

Is there a way to do a device check to see if notifications are enabled/diabled for a Javascript Phonegap application? I was hoping there might be a method in this SDK but I wasn't able to find one.

I also tried using this plugin with phonegap-plugin-push (https://github.com/phonegap/phonegap-plugin-push) to use its 'hasPermissions' method, but it had some very weird effects like the GCM (on Android) was only sending the notification to be handled by the phonegap-push-plugin.

I was hoping to know if there was a way to check the device for enabled/disabled notifications or a way to integrate the above two plugins without it having any unexpected effects on the application?

DimanAM commented 8 years ago

For iOS you can use getRemoteNotificationStatus. On Android this will be added soon.

If you want to use Pushwoosh plugin along with phonegap-plugin-push you will need to remove com.adobe.phonegap.push.* services from AndroidManifest.xml.

DimanAM commented 8 years ago

Implemented in 6.0.0