1.0.0 • Published 9 years ago

com.nrswolf.cordova.push-notifications-status v1.0.0

Weekly downloads
2
License
Apache 2.0
Repository
github
Last release
9 years ago

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);
});