Skip to content

Commit

Permalink
feat(firebase): add unregister method (#1823)
Browse files Browse the repository at this point in the history
  • Loading branch information
falcon8823 authored and ihadeed committed Jul 19, 2017
1 parent 47fa44c commit 6230958
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/@ionic-native/plugins/firebase/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,13 @@ export class Firebase extends IonicNativePlugin {
@Cordova()
unsubscribe(topic: string): Promise<any> { return; }

/**
* Unregister from firebase, used to stop receiving push notifications.
* Call this when you logout user from your app.
*/
@Cordova()
unregister(): Promise<any> { return; }

/**
* Log an event using Analytics
* @param type {string}
Expand Down

0 comments on commit 6230958

Please sign in to comment.