Skip to content

Commit

Permalink
feat(localNotifications): added register and has permission functions (
Browse files Browse the repository at this point in the history
  • Loading branch information
hotforfeature authored and ihadeed committed Sep 13, 2016
1 parent 23fc908 commit c83b043
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/plugins/localnotifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,20 @@ export class LocalNotifications {
@Cordova()
static getAllTriggered(): Promise<Array<Notification>> { return; }

/**
* Register permission to show notifications if not already granted.
* @returns {Promise} Returns a promise
*/
@Cordova()
static registerPermission(): Promise<boolean> { return; }

/**
* Informs if the app has the permission to show notifications.
* @returns {Promise} Returns a promise
*/
@Cordova()
static hasPermission(): Promise<boolean> { return; }


/**
* Sets a callback for a specific event
Expand Down

0 comments on commit c83b043

Please sign in to comment.