| 84 | } |
| 85 | |
| 86 | export 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 | |
| 123 | declare module '@nativescript/firebase-core' { |
| 124 | export interface Firebase extends FirebaseMessaging {} |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…