0.1.0 • Published 8 years ago
cordova-plugin-push-notifications-status v0.1.0
cordova-plugin-push-notifications-status
Check whether or not push notifications are enabled.
Methods
getStatus
Returns a String describing the current push notifications status.
Return values:
authorized: Enabled (explicitly).denied: Disabled (explicitly).undetermined: Disabled (you probably didn't ask).unknown
Example:
const {PushNotificationsStatus} = window.cordova.plugins;
PushNotificationsStatus.getStatus(function (status) {
if (status === 'authorized') {
console.log('Push notifications are enabled');
}
});0.1.0
8 years ago