Skip to content

Commit

Permalink
feat(firebase-x): add getId (#3388)
Browse files Browse the repository at this point in the history
* feat(firebase-x): add getId

add getId to get app instance id. fixes #3378

* Update index.ts
  • Loading branch information
akshaydwivedi29 authored May 5, 2020
1 parent e09592d commit 3d46715
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/@ionic-native/plugins/firebase-x/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,15 @@ export class FirebaseX extends IonicNativePlugin {
return;
}

/**
* Get the app instance ID (an constant ID which persists as long as the app is not uninstalled/reinstalled)
* @return {Promise<null | string>} Note that ID will be null if it has not been established yet
*/
@Cordova()
getId(): Promise<null | string> {
return;
}

/**
* Get notified when a token is refreshed.
* @return {Observable<any>}
Expand Down

0 comments on commit 3d46715

Please sign in to comment.