From 3d46715b9c2427b7b5277bd13c780cb1f87df727 Mon Sep 17 00:00:00 2001 From: Akshay Dwivedi Date: Tue, 5 May 2020 17:01:26 +0800 Subject: [PATCH] feat(firebase-x): add getId (#3388) * feat(firebase-x): add getId add getId to get app instance id. fixes #3378 * Update index.ts --- src/@ionic-native/plugins/firebase-x/index.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/@ionic-native/plugins/firebase-x/index.ts b/src/@ionic-native/plugins/firebase-x/index.ts index 6ae7c89f..85d30d19 100644 --- a/src/@ionic-native/plugins/firebase-x/index.ts +++ b/src/@ionic-native/plugins/firebase-x/index.ts @@ -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} Note that ID will be null if it has not been established yet + */ + @Cordova() + getId(): Promise { + return; + } + /** * Get notified when a token is refreshed. * @return {Observable}