@react-native-firebase/messaging 23.6.0 → 23.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/dist/commonjs/index.js +61 -0
  2. package/dist/commonjs/index.js.map +1 -0
  3. package/dist/commonjs/modular.js +439 -0
  4. package/dist/commonjs/modular.js.map +1 -0
  5. package/dist/commonjs/namespaced.js +407 -0
  6. package/dist/commonjs/namespaced.js.map +1 -0
  7. package/dist/commonjs/package.json +1 -0
  8. package/dist/commonjs/remoteMessageOptions.js +87 -0
  9. package/dist/commonjs/remoteMessageOptions.js.map +1 -0
  10. package/dist/commonjs/statics.js +29 -0
  11. package/dist/commonjs/statics.js.map +1 -0
  12. package/dist/commonjs/types/messaging.js +105 -0
  13. package/dist/commonjs/types/messaging.js.map +1 -0
  14. package/dist/commonjs/version.js +9 -0
  15. package/dist/commonjs/version.js.map +1 -0
  16. package/{ios/RNFBMessaging/RNFBMessaging+FIRMessagingDelegate.h → dist/module/index.js} +11 -12
  17. package/dist/module/index.js.map +1 -0
  18. package/{lib/modular/index.js → dist/module/modular.js} +135 -119
  19. package/dist/module/modular.js.map +1 -0
  20. package/{lib/index.js → dist/module/namespaced.js} +70 -193
  21. package/dist/module/namespaced.js.map +1 -0
  22. package/dist/module/package.json +1 -0
  23. package/{lib → dist/module}/remoteMessageOptions.js +10 -27
  24. package/dist/module/remoteMessageOptions.js.map +1 -0
  25. package/dist/module/statics.js +25 -0
  26. package/dist/module/statics.js.map +1 -0
  27. package/dist/module/types/messaging.js +124 -0
  28. package/dist/module/types/messaging.js.map +1 -0
  29. package/dist/module/version.js +5 -0
  30. package/dist/module/version.js.map +1 -0
  31. package/dist/typescript/commonjs/lib/index.d.ts +6 -0
  32. package/dist/typescript/commonjs/lib/index.d.ts.map +1 -0
  33. package/{lib/modular/index.d.ts → dist/typescript/commonjs/lib/modular.d.ts} +86 -164
  34. package/dist/typescript/commonjs/lib/modular.d.ts.map +1 -0
  35. package/dist/typescript/commonjs/lib/namespaced.d.ts +12 -0
  36. package/dist/typescript/commonjs/lib/namespaced.d.ts.map +1 -0
  37. package/dist/typescript/commonjs/lib/remoteMessageOptions.d.ts +14 -0
  38. package/dist/typescript/commonjs/lib/remoteMessageOptions.d.ts.map +1 -0
  39. package/dist/typescript/commonjs/lib/statics.d.ts +20 -0
  40. package/dist/typescript/commonjs/lib/statics.d.ts.map +1 -0
  41. package/dist/typescript/commonjs/lib/types/messaging.d.ts +673 -0
  42. package/dist/typescript/commonjs/lib/types/messaging.d.ts.map +1 -0
  43. package/dist/typescript/commonjs/lib/version.d.ts +2 -0
  44. package/dist/typescript/commonjs/lib/version.d.ts.map +1 -0
  45. package/dist/typescript/commonjs/package.json +1 -0
  46. package/dist/typescript/module/lib/index.d.ts +6 -0
  47. package/dist/typescript/module/lib/index.d.ts.map +1 -0
  48. package/dist/typescript/module/lib/modular.d.ts +247 -0
  49. package/dist/typescript/module/lib/modular.d.ts.map +1 -0
  50. package/dist/typescript/module/lib/namespaced.d.ts +12 -0
  51. package/dist/typescript/module/lib/namespaced.d.ts.map +1 -0
  52. package/dist/typescript/module/lib/remoteMessageOptions.d.ts +14 -0
  53. package/dist/typescript/module/lib/remoteMessageOptions.d.ts.map +1 -0
  54. package/dist/typescript/module/lib/statics.d.ts +20 -0
  55. package/dist/typescript/module/lib/statics.d.ts.map +1 -0
  56. package/dist/typescript/module/lib/types/messaging.d.ts +673 -0
  57. package/dist/typescript/module/lib/types/messaging.d.ts.map +1 -0
  58. package/dist/typescript/module/lib/version.d.ts +2 -0
  59. package/dist/typescript/module/lib/version.d.ts.map +1 -0
  60. package/dist/typescript/module/package.json +1 -0
  61. package/{ios/RNFBMessaging/RNFBMessaging+UNUserNotificationCenter.h → lib/index.ts} +28 -21
  62. package/lib/modular.ts +447 -0
  63. package/lib/namespaced.ts +583 -0
  64. package/lib/remoteMessageOptions.ts +110 -0
  65. package/lib/{statics.js → statics.ts} +6 -3
  66. package/lib/types/messaging.ts +815 -0
  67. package/lib/version.ts +2 -0
  68. package/package.json +64 -8
  69. package/tsconfig.json +21 -0
  70. package/CHANGELOG.md +0 -1177
  71. package/RNFBMessaging.podspec +0 -50
  72. package/android/.editorconfig +0 -10
  73. package/android/build.gradle +0 -149
  74. package/android/lint.xml +0 -5
  75. package/android/settings.gradle +0 -1
  76. package/android/src/main/AndroidManifest.xml +0 -43
  77. package/android/src/main/java/io/invertase/firebase/messaging/JsonConvert.java +0 -127
  78. package/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingHeadlessService.java +0 -30
  79. package/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingModule.java +0 -332
  80. package/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingPackage.java +0 -41
  81. package/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingReceiver.java +0 -66
  82. package/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingSerializer.java +0 -225
  83. package/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingService.java +0 -37
  84. package/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingStore.java +0 -15
  85. package/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingStoreHelper.java +0 -23
  86. package/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingStoreImpl.java +0 -97
  87. package/android/src/main/res/values/colors.xml +0 -143
  88. package/app.plugin.js +0 -1
  89. package/ios/RNFBMessaging/RNFBMessaging+AppDelegate.h +0 -54
  90. package/ios/RNFBMessaging/RNFBMessaging+AppDelegate.m +0 -251
  91. package/ios/RNFBMessaging/RNFBMessaging+FIRMessagingDelegate.m +0 -70
  92. package/ios/RNFBMessaging/RNFBMessaging+NSNotificationCenter.h +0 -29
  93. package/ios/RNFBMessaging/RNFBMessaging+NSNotificationCenter.m +0 -173
  94. package/ios/RNFBMessaging/RNFBMessaging+UNUserNotificationCenter.m +0 -185
  95. package/ios/RNFBMessaging/RNFBMessagingModule.h +0 -26
  96. package/ios/RNFBMessaging/RNFBMessagingModule.m +0 -431
  97. package/ios/RNFBMessaging/RNFBMessagingSerializer.h +0 -32
  98. package/ios/RNFBMessaging/RNFBMessagingSerializer.m +0 -235
  99. package/ios/RNFBMessaging.xcodeproj/project.pbxproj +0 -384
  100. package/ios/RNFBMessaging.xcodeproj/xcshareddata/IDETemplateMacros.plist +0 -24
  101. package/lib/index.d.ts +0 -1233
  102. package/lib/version.js +0 -2
  103. package/plugin/build/android/index.d.ts +0 -2
  104. package/plugin/build/android/index.js +0 -5
  105. package/plugin/build/android/setupFirebaseNotifationIcon.d.ts +0 -8
  106. package/plugin/build/android/setupFirebaseNotifationIcon.js +0 -62
  107. package/plugin/build/index.d.ts +0 -3
  108. package/plugin/build/index.js +0 -16
  109. package/plugin/tsconfig.tsbuildinfo +0 -1
@@ -0,0 +1,673 @@
1
+ import type { ReactNativeFirebase } from '@react-native-firebase/app';
2
+ import { AuthorizationStatus as AuthorizationStatusConst, NotificationAndroidPriority as NotificationAndroidPriorityConst, NotificationAndroidVisibility as NotificationAndroidVisibilityConst } from '../statics';
3
+ /**
4
+ * The `RemoteMessage` interface describes an outgoing & incoming message from the remote FCM server.
5
+ */
6
+ export interface RemoteMessage {
7
+ /**
8
+ * The collapse key a message was sent with. Used to override existing messages with the same
9
+ * key.
10
+ */
11
+ collapseKey?: string;
12
+ /**
13
+ * A unique ID assigned to every message.
14
+ *
15
+ * If not provided, a random unique ID is generated.
16
+ */
17
+ messageId?: string;
18
+ /**
19
+ * The message type of the message.
20
+ */
21
+ messageType?: string;
22
+ /**
23
+ * The topic name or message identifier.
24
+ */
25
+ from?: string;
26
+ /**
27
+ * The address for the message.
28
+ */
29
+ to?: string;
30
+ /**
31
+ * The time to live for the message in seconds.
32
+ *
33
+ * Defaults to 3600.
34
+ */
35
+ ttl?: number;
36
+ /**
37
+ * The time the message was sent, in milliseconds since the start of unix epoch
38
+ */
39
+ sentTime?: number;
40
+ /**
41
+ * Any additional data sent with the message.
42
+ */
43
+ data?: {
44
+ [key: string]: string | object;
45
+ };
46
+ /**
47
+ * Additional NotificationPayload data sent with the message
48
+ */
49
+ notification?: NotificationPayload;
50
+ /**
51
+ * Whether the iOS APNs message was configured as a background update notification.
52
+ *
53
+ * @platform ios iOS
54
+ */
55
+ contentAvailable?: boolean;
56
+ /**
57
+ * Whether the iOS APNs `mutable-content` property on the message was set
58
+ * allowing the app to modify the notification via app extensions.
59
+ *
60
+ * @platform ios iOS
61
+ */
62
+ mutableContent?: boolean;
63
+ /**
64
+ * The iOS category this notification is assigned to.
65
+ *
66
+ * @platform ios iOS
67
+ */
68
+ category?: string;
69
+ /**
70
+ * An iOS app specific identifier used for notification grouping.
71
+ */
72
+ threadId?: string;
73
+ /**
74
+ * Options for features provided by the FCM SDK for Web.
75
+ */
76
+ fcmOptions: FcmOptions;
77
+ /**
78
+ * Priority - android-specific, undefined on non-android platforms, default PRIORITY_UNKNOWN
79
+ */
80
+ priority?: MessagePriority;
81
+ /**
82
+ * Original priority - android-specific, undefined on non-android platforms, default PRIORITY_UNKNOWN
83
+ */
84
+ originalPriority?: MessagePriority;
85
+ }
86
+ /**
87
+ * Represents the priority of a RemoteMessage
88
+ *
89
+ * Note: this is an android-specific property of RemoteMessages
90
+ */
91
+ export declare enum MessagePriority {
92
+ /**
93
+ * Unknown priority, this will be returned as the default on non-android platforms
94
+ */
95
+ PRIORITY_UNKNOWN = 0,
96
+ /**
97
+ * High priority - Activities may start foreground services if they receive high priority messages
98
+ */
99
+ PRIORITY_HIGH = 1,
100
+ /**
101
+ * Normal priority - Activities have restrictions and may only perform unobtrusive actions on receipt
102
+ */
103
+ PRIORITY_NORMAL = 2
104
+ }
105
+ /**
106
+ * Options for features provided by the FCM SDK for Web.
107
+ */
108
+ export interface FcmOptions {
109
+ /**
110
+ * The link to open when the user clicks on the notification.
111
+ */
112
+ link?: string;
113
+ /**
114
+ * The label associated with the message's analytics data.
115
+ */
116
+ analyticsLabel?: string;
117
+ }
118
+ /**
119
+ * Options for `getToken()` and `deleteToken()`
120
+ */
121
+ export interface NativeTokenOptions {
122
+ /**
123
+ * The app name of the FirebaseApp instance.
124
+ *
125
+ * @platform android Android
126
+ */
127
+ appName?: string;
128
+ /**
129
+ * The senderID for a particular Firebase project.
130
+ *
131
+ * @platform ios iOS
132
+ */
133
+ senderId?: string;
134
+ }
135
+ /**
136
+ * Options for `getToken()`
137
+ */
138
+ export interface GetTokenOptions {
139
+ /**
140
+ * The VAPID key used to authenticate the push subscribers
141
+ * to receive push messages only from sending servers
142
+ * that hold the corresponding private key.
143
+ *
144
+ * @platform web
145
+ */
146
+ vapidKey?: string;
147
+ /**
148
+ * The service worker registration for receiving push messaging.
149
+ * If the registration is not provided explicitly, you need to
150
+ * have a firebase-messaging-sw.js at your root location.
151
+ *
152
+ * @platform web
153
+ */
154
+ serviceWorkerRegistration?: any;
155
+ }
156
+ /**
157
+ * NotificationPayload is an alias for Notification. This is to keep it the same as
158
+ * Firebase Web JS SDK v9 and to make it backwards compatible.
159
+ */
160
+ type NotificationPayload = Notification;
161
+ export interface Notification {
162
+ /**
163
+ * The native localization key for the notification title.
164
+ */
165
+ titleLocKey?: string;
166
+ /**
167
+ * Any arguments that should be formatted into the resource specified by titleLocKey.
168
+ */
169
+ titleLocArgs?: string[];
170
+ /**
171
+ * The notification body content.
172
+ */
173
+ body?: string;
174
+ /**
175
+ * Web only. The URL to use for the notification's icon. If you don't send this key in the request,
176
+ * FCM displays the launcher icon specified in your app manifest.
177
+ */
178
+ icon?: string;
179
+ /**
180
+ * Web only. The URL of an image that is downloaded on the device and displayed in the notification.
181
+ */
182
+ image?: string;
183
+ /**
184
+ * Web only. The notification's title.
185
+ */
186
+ title?: string;
187
+ /**
188
+ * The native localization key for the notification body content.
189
+ */
190
+ bodyLocKey?: string;
191
+ /**
192
+ * Any arguments that should be formatted into the resource specified by bodyLocKey.
193
+ */
194
+ bodyLocArgs?: string[];
195
+ ios?: {
196
+ /**
197
+ * The notification's subtitle.
198
+ */
199
+ subtitle?: string;
200
+ /**
201
+ * The native localization key for the notification's subtitle.
202
+ */
203
+ subtitleLocKey?: string;
204
+ /**
205
+ * Any arguments that should be formatted into the resource specified by subtitleLocKey.
206
+ */
207
+ subtitleLocArgs?: string[];
208
+ /**
209
+ * The value of the badge on the home screen app icon.
210
+ * If not specified, the badge is not changed.
211
+ * If set to 0, the badge has been removed.
212
+ */
213
+ badge?: string;
214
+ /**
215
+ * The sound played when the notification was delivered on the device (if permissions permit).
216
+ */
217
+ sound?: string | NotificationIOSCriticalSound;
218
+ };
219
+ /**
220
+ * Additional Android specific properties set on the notification.
221
+ */
222
+ android?: {
223
+ /**
224
+ * The sound played when the notification was delivered on the device (channel settings permitted).
225
+ *
226
+ * Set as "default" if the default device notification sound was used.
227
+ */
228
+ sound?: string;
229
+ /**
230
+ * The channel ID set on the notification. If not set, the notification uses the default
231
+ * "Miscellaneous" channel set by FCM.
232
+ */
233
+ channelId?: string;
234
+ /**
235
+ * The custom color used to tint the notification content.
236
+ */
237
+ color?: string;
238
+ /**
239
+ * The custom small icon used to display on the notification. If not set, uses the default
240
+ * application icon defined in the AndroidManifest file.
241
+ */
242
+ smallIcon?: string;
243
+ /**
244
+ * The custom image was provided and displayed in the notification body.
245
+ */
246
+ imageUrl?: string;
247
+ /**
248
+ * Deep link URL provided to the notification.
249
+ */
250
+ link?: string;
251
+ /**
252
+ * The current unread notification count for this application, managed by the device.
253
+ */
254
+ count?: number;
255
+ /**
256
+ * Name of the click action set on the notification.
257
+ */
258
+ clickAction?: string;
259
+ /**
260
+ * The notification priority.
261
+ *
262
+ * Note; on devices which have channel support (Android 8.0 (API level 26) +),
263
+ * this value will be ignored. Instead, the channel "importance" level is used.
264
+ */
265
+ priority?: NotificationAndroidPriority;
266
+ /**
267
+ * Ticker text set on the notification.
268
+ *
269
+ * Ticker text is used for devices with accessibility enabled (e.g. to read out the message).
270
+ */
271
+ ticker?: string;
272
+ /**
273
+ * The visibility of a notification. This value determines how the notification is shown on the users
274
+ * devices (e.g. on the lock-screen).
275
+ */
276
+ visibility?: NotificationAndroidVisibility;
277
+ };
278
+ }
279
+ /**
280
+ * Represents a critical sound configuration that can be included in the
281
+ * `aps` dictionary of an APNs payload.
282
+ */
283
+ export interface NotificationIOSCriticalSound {
284
+ /**
285
+ * The critical alert flag. Set to `true` to enable the critical alert.
286
+ */
287
+ critical?: boolean;
288
+ /**
289
+ * The name of a sound file in the app's main bundle or in the `Library/Sounds`
290
+ * folder of the app's container directory. Specify the string "default" to play
291
+ * the system sound.
292
+ */
293
+ name: string;
294
+ /**
295
+ * The volume for the critical alert's sound. Must be a value between 0.0
296
+ * (silent) and 1.0 (full volume).
297
+ */
298
+ volume?: number;
299
+ }
300
+ /**
301
+ * The type representing a notification priority.
302
+ *
303
+ * Note; on devices which have channel support (Android 8.0 (API level 26) +),
304
+ * this value will be ignored. Instead, the channel "importance" level is used.
305
+ */
306
+ export type NotificationAndroidPriority = -2 | -1 | 0 | 1 | 2;
307
+ /**
308
+ * The type representing the visibility of a notification.
309
+ */
310
+ export type NotificationAndroidVisibility = -1 | 0 | 1;
311
+ /**
312
+ * An interface representing all the available permissions that can be requested by your app via
313
+ * the `requestPermission` API.
314
+ */
315
+ export interface IOSPermissions {
316
+ /**
317
+ * Request permission to display alerts.
318
+ *
319
+ * Defaults to true.
320
+ */
321
+ alert?: boolean;
322
+ /**
323
+ * Request permission for Siri to automatically read out notification messages over AirPods.
324
+ *
325
+ * Defaults to false.
326
+ *
327
+ * @platform ios iOS >= 13
328
+ */
329
+ announcement?: boolean;
330
+ /**
331
+ * Request permission to update the application badge.
332
+ *
333
+ * Defaults to true.
334
+ */
335
+ badge?: boolean;
336
+ /**
337
+ * Request permission for critical alerts.
338
+ *
339
+ * Defaults to false.
340
+ */
341
+ criticalAlert?: boolean;
342
+ /**
343
+ * Request permission to display notifications in a CarPlay environment.
344
+ *
345
+ * Defaults to true.
346
+ */
347
+ carPlay?: boolean;
348
+ /**
349
+ * Request permission to provisionally create non-interrupting notifications.
350
+ *
351
+ * Defaults to false.
352
+ *
353
+ * @platform ios iOS >= 12
354
+ */
355
+ provisional?: boolean;
356
+ /**
357
+ * Request permission to play sounds.
358
+ *
359
+ * Defaults to true.
360
+ */
361
+ sound?: boolean;
362
+ /**
363
+ * Request permission to display a button for in-app notification settings.
364
+ *
365
+ * Default to false
366
+ *
367
+ * @platform ios iOS >= 12
368
+ */
369
+ providesAppNotificationSettings?: boolean;
370
+ }
371
+ /**
372
+ * A type representing the notification authorization status for this app on the device.
373
+ *
374
+ * Value is truthy if authorized, compare against an exact status (e.g. iOS PROVISIONAL) for a more
375
+ * granular status.
376
+ */
377
+ export type AuthorizationStatus = -1 | 0 | 1 | 2 | 3;
378
+ /**
379
+ * An event that is received when a message fails to send.
380
+ */
381
+ export interface SendErrorEvent {
382
+ /**
383
+ * The id of the message that failed to send
384
+ */
385
+ messageId: string;
386
+ /**
387
+ * A native firebase error that indicates the failure reason.
388
+ */
389
+ error: ReactNativeFirebase.NativeFirebaseError;
390
+ }
391
+ /**
392
+ * The Firebase Messaging service interface.
393
+ *
394
+ * > This module is available for the default app only.
395
+ */
396
+ export interface Messaging extends ReactNativeFirebase.FirebaseModule {
397
+ /** The FirebaseApp this module is associated with */
398
+ app: ReactNativeFirebase.FirebaseApp;
399
+ /**
400
+ * Returns whether messaging auto initialization is enabled or disabled for the device.
401
+ */
402
+ isAutoInitEnabled: boolean;
403
+ /**
404
+ * Sets whether auto initialization for messaging is enabled or disabled.
405
+ *
406
+ * @param enabled A boolean value to enable or disable auto initialization.
407
+ */
408
+ setAutoInitEnabled(enabled: boolean): Promise<void>;
409
+ /**
410
+ * When a notification from FCM has triggered the application to open from a quit state,
411
+ * this method will return a `RemoteMessage` containing the notification data, or `null` if
412
+ * the app was opened via another method.
413
+ */
414
+ getInitialNotification(): Promise<RemoteMessage | null>;
415
+ /**
416
+ * When the app is opened from iOS notifications settings from a quit state,
417
+ * this method will return `true` or `false` if the app was opened via another method.
418
+ *
419
+ * @ios iOS >= 12
420
+ */
421
+ getDidOpenSettingsForNotification(): Promise<boolean>;
422
+ /**
423
+ * Returns whether the root view is headless or not
424
+ * i.e true if the app was launched in the background (for example, by data-only cloud message)
425
+ *
426
+ * @platform ios iOS
427
+ */
428
+ getIsHeadless(): Promise<boolean>;
429
+ /**
430
+ * Returns an FCM token for this device. Optionally you can specify a custom options to your own use-case.
431
+ *
432
+ * @param options Options composite type with all members of `GetTokenOptions` and `NativeTokenOptions`
433
+ */
434
+ getToken(options?: GetTokenOptions & NativeTokenOptions): Promise<string>;
435
+ /**
436
+ * Removes access to an FCM token previously authorized by it's scope. Messages sent by the server
437
+ * to this token will fail.
438
+ *
439
+ * @param options Options to override senderId (iOS) and appName (android)
440
+ */
441
+ deleteToken(options?: NativeTokenOptions): Promise<void>;
442
+ /**
443
+ * When any FCM payload is received, the listener callback is called with a `RemoteMessage`.
444
+ *
445
+ * Returns an unsubscribe function to stop listening for new messages.
446
+ *
447
+ * > This subscriber method is only called when the app is active (in the foreground).
448
+ *
449
+ * @param listener Called with a `RemoteMessage` when a new FCM payload is received from the server.
450
+ */
451
+ onMessage(listener: (message: RemoteMessage) => any): () => void;
452
+ /**
453
+ * When the user presses a notification displayed via FCM, this listener will be called if the app
454
+ * has opened from a background state.
455
+ *
456
+ * @param listener Called with a `RemoteMessage` when a notification press opens the application.
457
+ */
458
+ onNotificationOpenedApp(listener: (message: RemoteMessage) => any): () => void;
459
+ /**
460
+ * Called when a new registration token is generated for the device. For example, this event can happen when a
461
+ * token expires or when the server invalidates the token.
462
+ *
463
+ * Returns an unsubscribe function to stop listening for token refresh events.
464
+ *
465
+ * > This subscriber method is only called when the app is active (in the foreground).
466
+ *
467
+ * @param listener Called with a FCM token when the token is refreshed.
468
+ */
469
+ onTokenRefresh(listener: (token: string) => any): () => void;
470
+ /**
471
+ * On iOS, messaging permission must be requested by the current application before messages can
472
+ * be received or sent.
473
+ *
474
+ * > You can safely call this method on Android without platform checks. It's a no-op on Android and will promise resolve `AuthorizationStatus.AUTHORIZED`.
475
+ *
476
+ * @ios
477
+ */
478
+ requestPermission(permissions?: IOSPermissions): Promise<AuthorizationStatus>;
479
+ /**
480
+ * On iOS, if your app wants to receive remote messages from FCM (via APNs), you must explicitly register
481
+ * with APNs if auto-registration has been disabled.
482
+ *
483
+ * > You can safely call this method on Android without platform checks. It's a no-op on Android and will promise resolve `void`.
484
+ */
485
+ registerDeviceForRemoteMessages(): Promise<void>;
486
+ /**
487
+ * Returns a boolean value whether the user has registered for remote notifications via
488
+ * `registerDeviceForRemoteMessages()`.
489
+ *
490
+ * > You can safely access this property on Android without platform checks. Android returns `true` only.
491
+ *
492
+ * @platform ios
493
+ */
494
+ isDeviceRegisteredForRemoteMessages: boolean;
495
+ /**
496
+ * Returns whether remote notification delegation to Google Play Services is enabled or disabled.
497
+ *
498
+ * > You can safely access this property on iOS without platform checks. iOS returns `false` only.
499
+ */
500
+ isNotificationDelegationEnabled: boolean;
501
+ /**
502
+ * Returns whether message delivery metrics are exported to BigQuery.
503
+ */
504
+ isDeliveryMetricsExportToBigQueryEnabled: boolean;
505
+ /**
506
+ * Unregisters the app from receiving remote notifications.
507
+ *
508
+ * > You can safely call this method on Android without platform checks. It's a no-op on Android and will promise resolve `void`.
509
+ *
510
+ * @platform ios
511
+ */
512
+ unregisterDeviceForRemoteMessages(): Promise<void>;
513
+ /**
514
+ * On iOS, it is possible to get the users APNs token. This may be required if you want to send messages to your
515
+ * iOS devices without using the FCM service.
516
+ *
517
+ * > You can safely call this method on Android without platform checks. It's a no-op on Android and will promise resolve `null`.
518
+ *
519
+ * @platform ios
520
+ */
521
+ getAPNSToken(): Promise<string | null>;
522
+ /**
523
+ * On iOS, This method is used to set the APNs Token received by the application delegate.
524
+ *
525
+ * > You can safely call this method on Android without platform checks. It's a no-op on Android and will promise resolve `null`.
526
+ *
527
+ * @param token a hexadecimal string representing your APNS token
528
+ * @param type optional string specifying 'prod', 'sandbox' or 'unknown' token type
529
+ * @platform ios
530
+ */
531
+ setAPNSToken(token: string, type?: string): Promise<void>;
532
+ /**
533
+ * Returns a `AuthorizationStatus` as to whether the user has messaging permission for this app.
534
+ */
535
+ hasPermission(): Promise<AuthorizationStatus>;
536
+ /**
537
+ * Called when the FCM server deletes pending messages.
538
+ *
539
+ * Returns an unsubscribe function to stop listening for deleted messages.
540
+ *
541
+ * NOTE: Android only
542
+ *
543
+ * @param listener Called when the FCM deletes pending messages.
544
+ */
545
+ onDeletedMessages(listener: () => void): () => void;
546
+ /**
547
+ * When sending a `RemoteMessage`, this listener is called when the message has been sent to FCM.
548
+ *
549
+ * Returns an unsubscribe function to stop listening for sent messages.
550
+ *
551
+ * NOTE: Android only
552
+ *
553
+ * @param listener Called when the FCM sends the remote message to FCM.
554
+ */
555
+ onMessageSent(listener: (messageId: string) => any): () => void;
556
+ /**
557
+ * When sending a `RemoteMessage`, this listener is called when an error is thrown and the
558
+ * message could not be sent.
559
+ *
560
+ * Returns an unsubscribe function to stop listening for sent errors.
561
+ *
562
+ * NOTE: Android only
563
+ *
564
+ * @param listener
565
+ */
566
+ onSendError(listener: (evt: SendErrorEvent) => any): () => void;
567
+ /**
568
+ * Set a message handler function which is called when the app is in the background
569
+ * or terminated.
570
+ *
571
+ * @param handler called with an argument of type messaging.RemoteMessage that must be async and return a Promise
572
+ */
573
+ setBackgroundMessageHandler(handler: (message: RemoteMessage) => Promise<any>): void;
574
+ /**
575
+ * Set a handler function which is called when the `${App Name} notifications settings`
576
+ * link in iOS settings is clicked.
577
+ *
578
+ * @ios iOS >= 12
579
+ */
580
+ setOpenSettingsForNotificationsHandler(handler: (message: RemoteMessage) => any): void;
581
+ /**
582
+ * Send a new `RemoteMessage` to the FCM server.
583
+ *
584
+ * NOTE: Android only
585
+ *
586
+ * @param message A `RemoteMessage` interface.
587
+ */
588
+ sendMessage(message: RemoteMessage): Promise<void>;
589
+ /**
590
+ * Apps can subscribe to a topic, which allows the FCM server to send targeted messages to only those
591
+ * devices subscribed to that topic.
592
+ *
593
+ * @param topic The topic name.
594
+ */
595
+ subscribeToTopic(topic: string): Promise<void>;
596
+ /**
597
+ * Unsubscribe the device from a topic.
598
+ *
599
+ * @param topic The topic name.
600
+ */
601
+ unsubscribeFromTopic(topic: string): Promise<void>;
602
+ /**
603
+ * Sets whether message delivery metrics are exported to BigQuery is enabled or disabled.
604
+ *
605
+ * @param enabled A boolean value to enable or disable exporting of message delivery metrics to BigQuery.
606
+ */
607
+ setDeliveryMetricsExportToBigQuery(enabled: boolean): Promise<void>;
608
+ /**
609
+ * Sets whether remote notification delegation to Google Play Services is enabled or disabled.
610
+ *
611
+ * @param enabled A boolean value to enable or disable remote notification delegation to Google Play Services.
612
+ */
613
+ setNotificationDelegationEnabled(enabled: boolean): Promise<void>;
614
+ /**
615
+ * Checks if all required APIs exist in the browser.
616
+ *
617
+ * @web
618
+ */
619
+ isSupported(): Promise<boolean>;
620
+ }
621
+ /**
622
+ * Static properties available on firebase.messaging
623
+ */
624
+ export interface Statics {
625
+ SDK_VERSION: string;
626
+ AuthorizationStatus: typeof AuthorizationStatusConst;
627
+ NotificationAndroidPriority: typeof NotificationAndroidPriorityConst;
628
+ NotificationAndroidVisibility: typeof NotificationAndroidVisibilityConst;
629
+ }
630
+ declare module '@react-native-firebase/app' {
631
+ namespace ReactNativeFirebase {
632
+ interface Module {
633
+ messaging: FirebaseModuleWithStaticsAndApp<Messaging, Statics>;
634
+ }
635
+ interface FirebaseApp {
636
+ messaging(): Messaging;
637
+ }
638
+ }
639
+ }
640
+ type _Messaging = Messaging;
641
+ type _MessagingStatics = Statics;
642
+ type _RemoteMessage = RemoteMessage;
643
+ type _MessagePriority = MessagePriority;
644
+ type _FcmOptions = FcmOptions;
645
+ type _NativeTokenOptions = NativeTokenOptions;
646
+ type _GetTokenOptions = GetTokenOptions;
647
+ type _Notification = Notification;
648
+ type _NotificationPayload = NotificationPayload;
649
+ type _NotificationIOSCriticalSound = NotificationIOSCriticalSound;
650
+ type _NotificationAndroidPriority = NotificationAndroidPriority;
651
+ type _NotificationAndroidVisibility = NotificationAndroidVisibility;
652
+ type _IOSPermissions = IOSPermissions;
653
+ type _AuthorizationStatus = AuthorizationStatus;
654
+ type _SendErrorEvent = SendErrorEvent;
655
+ export declare namespace FirebaseMessagingTypes {
656
+ type Module = _Messaging;
657
+ type Statics = _MessagingStatics;
658
+ type RemoteMessage = _RemoteMessage;
659
+ type MessagePriority = _MessagePriority;
660
+ type FcmOptions = _FcmOptions;
661
+ type NativeTokenOptions = _NativeTokenOptions;
662
+ type GetTokenOptions = _GetTokenOptions;
663
+ type Notification = _Notification;
664
+ type NotificationPayload = _NotificationPayload;
665
+ type NotificationIOSCriticalSound = _NotificationIOSCriticalSound;
666
+ type NotificationAndroidPriority = _NotificationAndroidPriority;
667
+ type NotificationAndroidVisibility = _NotificationAndroidVisibility;
668
+ type IOSPermissions = _IOSPermissions;
669
+ type AuthorizationStatus = _AuthorizationStatus;
670
+ type SendErrorEvent = _SendErrorEvent;
671
+ }
672
+ export {};
673
+ //# sourceMappingURL=messaging.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messaging.d.ts","sourceRoot":"","sources":["../../../../../lib/types/messaging.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EACL,mBAAmB,IAAI,wBAAwB,EAC/C,2BAA2B,IAAI,gCAAgC,EAC/D,6BAA6B,IAAI,kCAAkC,EACpE,MAAM,YAAY,CAAC;AAIpB;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,E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AAe,GAAG,cAAc,CAAC;AAEtC,yBAAiB,sBAAsB,CAAC;IACtC,KAAY,MAAM,GAAG,UAAU,CAAC;IAChC,KAAY,OAAO,GAAG,iBAAiB,CAAC;IACxC,KAAY,aAAa,GAAG,cAAc,CAAC;IAC3C,KAAY,eAAe,GAAG,gBAAgB,CAAC;IAC/C,KAAY,UAAU,GAAG,WAAW,CAAC;IACrC,KAAY,kBAAkB,GAAG,mBAAmB,CAAC;IACrD,KAAY,eAAe,GAAG,gBAAgB,CAAC;IAC/C,KAAY,YAAY,GAAG,aAAa,CAAC;IACzC,KAAY,mBAAmB,GAAG,oBAAoB,CAAC;IACvD,KAAY,4BAA4B,GAAG,6BAA6B,CAAC;IACzE,KAAY,2BAA2B,GAAG,4BAA4B,CAAC;IACvE,KAAY,6BAA6B,GAAG,8BAA8B,CAAC;IAC3E,KAAY,cAAc,GAAG,eAAe,CAAC;IAC7C,KAAY,mBAAmB,GAAG,oBAAoB,CAAC;IACvD,KAAY,cAAc,GAAG,eAAe,CAAC;CAC9C"}
@@ -0,0 +1,2 @@
1
+ export declare const version = "23.8.0";
2
+ //# sourceMappingURL=version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../../lib/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,WAAW,CAAC"}
@@ -0,0 +1 @@
1
+ {"type":"module"}