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

Method appInstanceId

packages/firebase-analytics/index.android.ts:114–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112 }
113
114 get appInstanceId(): Promise<string> {
115 return new Promise((resolve, reject) => {
116 (<any>org).nativescript.firebase.analytics.FirebaseAnalytics.getAppInstanceId(
117 this._native,
118 new (<any>org).nativescript.firebase.analytics.FirebaseAnalytics.Callback({
119 onSuccess(success) {
120 resolve(success);
121 },
122 onError(error) {
123 reject(FirebaseError.fromNative(error));
124 },
125 })
126 );
127 });
128 }
129
130 setSessionTimeoutInterval(sessionTimeoutInterval: number): void {
131 this._native.setSessionTimeoutDuration(sessionTimeoutInterval);

Callers

nothing calls this directly

Calls 1

getAppInstanceIdMethod · 0.80

Tested by

no test coverage detected