MCPcopy Create free account
hub / github.com/NativeScript/firebase / getId

Method getId

packages/firebase-installations/index.android.ts:48–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46 });
47 }
48 getId(): Promise<string> {
49 return new Promise((resolve, reject) => {
50 org.nativescript.firebase.installations.FirebaseInstallations.id(
51 this.native,
52 new org.nativescript.firebase.installations.FirebaseInstallations.Callback<string>({
53 onSuccess(param0) {
54 resolve(param0);
55 },
56 onError(error) {
57 reject(FirebaseError.fromNative(error));
58 },
59 })
60 );
61 });
62 }
63 getToken(forceRefresh = false): Promise<string> {
64 return new Promise((resolve, reject) => {
65 org.nativescript.firebase.installations.FirebaseInstallations.getToken(

Callers

nothing calls this directly

Calls 1

idMethod · 0.45

Tested by

no test coverage detected