1.0.0 • Published 9 years ago
com.nrswolf.cordova.push-notifications-status v1.0.0
Push Notifications Status
A small Cordova plugin that allows you to check whether the user has allowed notifications for a Cordova application via a device's iOS settings. Calls the currentUserNotificationSettings
Objective-C method and checks if the response includes the UIUserNotificationTypeAlert
flag.
Built with open source time @philosophie
Installation
$ cordova plugin add com.nrswolf.cordova.push-notifications-status
Usage
PushNotificationsStatus.isPushNotificationsEnabled(function(response) {
console.log('Success: ' + response); // response will be either 'true' or 'false'
}, function(error) {
console.log('Error: ' + error);
});
1.0.0
9 years ago