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

Method constructor

packages/firebase-messaging/index.ios.ts:33–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31 _onNotificationTap?: (message: RemoteMessage) => void;
32 _instance: MessagingCore;
33 constructor() {
34 if (defaultMessaging) {
35 return defaultMessaging;
36 }
37 defaultMessaging = this;
38 this._instance = MessagingCore.getInstance();
39 }
40
41 get showNotificationsWhenInForeground(): boolean {
42 return NSCFirebaseMessagingCore.showNotificationsWhenInForeground;

Callers

nothing calls this directly

Calls 1

getInstanceMethod · 0.45

Tested by

no test coverage detected