feat(firebase): add unregister method (#1823)

This commit is contained in:
Hayato OKUMOTO 2017-07-19 14:12:59 +09:00 committed by Ibby Hadeed
parent 47fa44c932
commit 6230958585

View File

@ -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}