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

Method constructor

packages/firebase-messaging/index.android.ts:31–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29 showNotificationsWhenInForeground: boolean;
30 _instance: MessagingCore;
31 constructor() {
32 if (defaultMessaging) {
33 return defaultMessaging;
34 }
35 defaultMessaging = this;
36 this._instance = MessagingCore.getInstance();
37 }
38
39 getToken(): Promise<string> {
40 return new Promise((resolve, reject) => {

Callers

nothing calls this directly

Calls 1

getInstanceMethod · 0.45

Tested by

no test coverage detected