MCPcopy Index your code
hub / github.com/NativeScript/firebase / Messaging

Class Messaging

packages/firebase-messaging/index.d.ts:86–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86export declare class Messaging implements IMessaging {
87 getToken(): Promise<string>;
88
89 getAPNSToken(): string | null;
90
91 hasPermission(): Promise<AuthorizationStatus>;
92
93 onMessage(listener: (message: RemoteMessage) => any);
94
95 onNotificationTap(listener: (message: RemoteMessage) => any);
96
97 onToken(listener: (token: string) => any);
98
99 registerDeviceForRemoteMessages(): Promise<void>;
100
101 requestPermission(permissions?: Permissions): Promise<AuthorizationStatus>;
102
103 subscribeToTopic(topic: string): Promise<void>;
104
105 unregisterDeviceForRemoteMessages(): Promise<void>;
106
107 unsubscribeFromTopic(topic: string): Promise<void>;
108
109 deleteToken(): Promise<void>;
110
111 isAutoInitEnabled: boolean;
112 showNotificationsWhenInForeground: boolean;
113
114 readonly isDeviceRegisteredForRemoteMessages: boolean;
115
116 readonly app: FirebaseApp;
117
118 readonly native;
119 readonly ios;
120 readonly android;
121}
122
123declare module '@nativescript/firebase-core' {
124 export interface Firebase extends FirebaseMessaging {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…