Skip to content

Commit

Permalink
fix(): add clearAllNotifications()
Browse files Browse the repository at this point in the history
  • Loading branch information
guillenotfound authored and ihadeed committed Jan 22, 2017
1 parent cb29363 commit 8c021bc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/plugins/push.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ export interface PushNotification {
unregister(successHandler: () => any, errorHandler?: () => any): void;

/**
* iOS & android only
*
* Set the badge count visible when the app is not running
*
* The count is an integer indicating what number should show up in the badge.
Expand All @@ -121,6 +123,8 @@ export interface PushNotification {
*/
setApplicationIconBadgeNumber(successHandler: () => any, errorHandler: () => any, count?: number): void;
/**
* iOS only
*
* Get the current badge count visible when the app is not running
* successHandler gets called with an integer which is the current badge count
* @param successHandler
Expand All @@ -130,13 +134,24 @@ export interface PushNotification {

/**
* iOS only
*
* Tells the OS that you are done processing a background push notification.
* successHandler gets called when background push processing is successfully completed.
* @param successHandler
* @param errorHandler
* @param id
*/
finish(successHandler: () => any, errorHandler: () => any, id?: string): void;

/**
* iOS & android only
*
* Tells the OS to clear all notifications from the Notification Center.
* successHandler gets called when the api successfully clears the notifications
* @param successHandler
* @param errorHandler
*/
clearAllNotifications(successHandler: () => any, errorHandler: () => any): void;
}

export interface IOSPushOptions {
Expand Down

0 comments on commit 8c021bc

Please sign in to comment.