feat(firebase-x): add getId (#3388)

* feat(firebase-x): add getId

add getId to get app instance id. fixes #3378

* Update index.ts
This commit is contained in:
Akshay Dwivedi 2020-05-05 17:01:26 +08:00 committed by GitHub
parent e09592d2b9
commit 3d46715b9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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