@react-native-firebase/messaging 23.7.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 -1181
  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,6 @@
1
+ export type { Messaging, RemoteMessage, MessagePriority, FcmOptions, NativeTokenOptions, GetTokenOptions, Notification, NotificationIOSCriticalSound, IOSPermissions, SendErrorEvent, FirebaseMessagingTypes, } from './types/messaging';
2
+ export { AuthorizationStatus, NotificationAndroidPriority, NotificationAndroidVisibility, } from './statics';
3
+ export * from './modular';
4
+ export * from './namespaced';
5
+ export { default } from './namespaced';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/index.ts"],"names":[],"mappings":"AAkBA,YAAY,EACV,SAAS,EACT,aAAa,EACb,eAAe,EACf,UAAU,EACV,kBAAkB,EAClB,eAAe,EACf,YAAY,EACZ,4BAA4B,EAC5B,cAAc,EACd,cAAc,EACd,sBAAsB,GACvB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,mBAAmB,EACnB,2BAA2B,EAC3B,6BAA6B,GAC9B,MAAM,WAAW,CAAC;AAGnB,cAAc,WAAW,CAAC;AAG1B,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,247 @@
1
+ import type { Messaging, RemoteMessage, NativeTokenOptions, GetTokenOptions, IOSPermissions, AuthorizationStatus, SendErrorEvent } from './types/messaging';
2
+ import type { ReactNativeFirebase } from '@react-native-firebase/app';
3
+ /**
4
+ * Returns a Messaging instance for the given app.
5
+ * @param app - FirebaseApp. Optional.
6
+ * @returns Messaging instance
7
+ */
8
+ export declare function getMessaging(app?: ReactNativeFirebase.FirebaseApp): Messaging;
9
+ /**
10
+ * Removes access to an FCM token previously authorized by its scope.
11
+ * Messages sent by the server to this token will fail.
12
+ * @param messaging - Messaging instance.
13
+ * @param tokenOptions - Options to override senderId (iOS) and projectId (Android).
14
+ * @returns Promise that resolves when the token is deleted.
15
+ */
16
+ export declare function deleteToken(messaging: Messaging, tokenOptions?: NativeTokenOptions): Promise<void>;
17
+ /**
18
+ * Returns an FCM token for this device. Optionally, you can specify custom options for your own use case.
19
+ * @param messaging - Messaging instance.
20
+ * @param options - Options to override senderId (iOS) and appName.
21
+ * @returns Promise that resolves with the FCM token.
22
+ */
23
+ export declare function getToken(messaging: Messaging, options?: GetTokenOptions & NativeTokenOptions): Promise<string>;
24
+ /**
25
+ * When any FCM payload is received, the listener callback is called with a `RemoteMessage`.
26
+ * > This subscriber method is only called when the app is active (in the foreground).
27
+ * @param messaging - Messaging instance.
28
+ * @param listener - Called with a `RemoteMessage` when a new FCM payload is received from the server.
29
+ * @returns Function to unsubscribe from the message listener.
30
+ */
31
+ export declare function onMessage(messaging: Messaging, listener: (message: RemoteMessage) => any): () => void;
32
+ /**
33
+ * When the user presses a notification displayed via FCM, this listener will be called if the app
34
+ * has opened from a background state.
35
+ * @param messaging - Messaging instance.
36
+ * @param listener - Called with a `RemoteMessage` when a notification press opens the application.
37
+ * @returns Function to unsubscribe from the notification opened listener.
38
+ */
39
+ export declare function onNotificationOpenedApp(messaging: Messaging, listener: (message: RemoteMessage) => any): () => void;
40
+ /**
41
+ * Called when a new registration token is generated for the device. For example, this event can happen when a
42
+ * token expires or when the server invalidates the token.
43
+ * > This subscriber method is only called when the app is active (in the foreground).
44
+ * @param messaging - Messaging instance.
45
+ * @param listener - Called with a FCM token when the token is refreshed.
46
+ * @returns Function to unsubscribe from the token refresh listener.
47
+ */
48
+ export declare function onTokenRefresh(messaging: Messaging, listener: (token: string) => any): () => void;
49
+ /**
50
+ * On iOS, messaging permission must be requested by the current application before messages can
51
+ * be received or sent.
52
+ * @param messaging - Messaging instance.
53
+ * @param iosPermissions - All the available permissions for iOS that can be requested.
54
+ * @returns Promise that resolves with the authorization status.
55
+ */
56
+ export declare function requestPermission(messaging: Messaging, iosPermissions?: IOSPermissions): Promise<AuthorizationStatus>;
57
+ /**
58
+ * Returns whether messaging auto initialization is enabled or disabled for the device.
59
+ * @param messaging - Messaging instance.
60
+ * @returns Boolean indicating whether auto initialization is enabled.
61
+ */
62
+ export declare function isAutoInitEnabled(messaging: Messaging): boolean;
63
+ /**
64
+ * Sets whether messaging auto initialization is enabled or disabled for the device.
65
+ * @param messaging - Messaging instance.
66
+ * @param enabled - A boolean value to enable or disable auto initialization.
67
+ * @returns Promise that resolves when the setting is updated.
68
+ */
69
+ export declare function setAutoInitEnabled(messaging: Messaging, enabled: boolean): Promise<void>;
70
+ /**
71
+ * When a notification from FCM has triggered the application to open from a quit state,
72
+ * this method will return a `RemoteMessage` containing the notification data, or `null` if
73
+ * the app was opened via another method.
74
+ * @param messaging - Messaging instance.
75
+ * @returns Promise that resolves with the initial notification or null.
76
+ */
77
+ export declare function getInitialNotification(messaging: Messaging): Promise<RemoteMessage | null>;
78
+ /**
79
+ * When the app is opened from iOS notifications settings from a quit state,
80
+ * this method will return `true` or `false` if the app was opened via another method.
81
+ * @param messaging - Messaging instance.
82
+ * @returns Promise that resolves with a boolean indicating if the app was opened from settings.
83
+ */
84
+ export declare function getDidOpenSettingsForNotification(messaging: Messaging): Promise<boolean>;
85
+ /**
86
+ * Returns whether the root view is headless or not
87
+ * i.e true if the app was launched in the background (for example, by data-only cloud message)
88
+ * @param messaging - Messaging instance.
89
+ * @returns Promise that resolves with a boolean indicating if the app is headless.
90
+ */
91
+ export declare function getIsHeadless(messaging: Messaging): Promise<boolean>;
92
+ /**
93
+ * On iOS, if your app wants to receive remote messages from FCM (via APNs), you must explicitly register
94
+ * with APNs if auto-registration has been disabled.
95
+ * @param messaging - Messaging instance.
96
+ * @returns Promise that resolves when the device is registered.
97
+ */
98
+ export declare function registerDeviceForRemoteMessages(messaging: Messaging): Promise<void>;
99
+ /**
100
+ * Returns a boolean value whether the user has registered for remote notifications via
101
+ * `registerDeviceForRemoteMessages()`. For iOS. Android always returns `true`.
102
+ * @param messaging - Messaging instance.
103
+ * @returns Boolean indicating if the device is registered for remote messages.
104
+ */
105
+ export declare function isDeviceRegisteredForRemoteMessages(messaging: Messaging): boolean;
106
+ /**
107
+ * Unregisters the app from receiving remote notifications.
108
+ * @param messaging - Messaging instance.
109
+ * @returns Promise that resolves when the device is unregistered.
110
+ */
111
+ export declare function unregisterDeviceForRemoteMessages(messaging: Messaging): Promise<void>;
112
+ /**
113
+ * On iOS, it is possible to get the users APNs token. This may be required if you want to send messages to your
114
+ * iOS devices without using the FCM service.
115
+ * @param messaging - Messaging instance.
116
+ * @returns Promise that resolves with the APNs token or null.
117
+ */
118
+ export declare function getAPNSToken(messaging: Messaging): Promise<string | null>;
119
+ /**
120
+ * On iOS, This method is used to set the APNs Token received by the application delegate.
121
+ * Note that the token is expected to be a hexadecimal string, as it is an NSData type in
122
+ * the underlying native firebase SDK, and raw data may only be passed as a string if it is
123
+ * hex encoded. Calling code is responsible for correct encoding, you should verify by comparing
124
+ * the results of `getAPNSToken()` with your token parameter to make sure they are equivalent.
125
+ *
126
+ * Messaging uses method swizzling to ensure that the APNs token is set automatically.
127
+ * However, if you have disabled swizzling by setting FirebaseAppDelegateProxyEnabled to NO
128
+ * in your app's Info.plist, you should manually set the APNs token in your application
129
+ * delegate's application(_:didRegisterForRemoteNotificationsWithDeviceToken:) method.
130
+ *
131
+ * If you would like to set the type of the APNs token, rather than relying on automatic
132
+ * detection, provide a type of either 'prod', 'sandbox'. Omitting the type parameter
133
+ * or specifying 'unknown' will rely on automatic type detection based on provisioning profile.
134
+ *
135
+ * At a native level you may also call objective-c `[FIRMessaging setAPNSToken];` as needed.
136
+ *
137
+ * @param messaging - Messaging instance.
138
+ * @param token - A hexadecimal string representing your APNs token.
139
+ * @param type - Optional. A string specifying 'prod', 'sandbox' or 'unknown' token type.
140
+ * @returns Promise that resolves when the APNs token is set.
141
+ */
142
+ export declare function setAPNSToken(messaging: Messaging, token: string, type?: string): Promise<void>;
143
+ /**
144
+ * Returns a `AuthorizationStatus` as to whether the user has messaging permission for this app.
145
+ * @param messaging - Messaging instance.
146
+ * @returns Promise that resolves with the authorization status.
147
+ */
148
+ export declare function hasPermission(messaging: Messaging): Promise<AuthorizationStatus>;
149
+ /**
150
+ * Called when the FCM server deletes pending messages.
151
+ * @param messaging - Messaging instance.
152
+ * @param listener - Called when the FCM deletes pending messages.
153
+ * @returns Function to unsubscribe from the deleted messages listener.
154
+ */
155
+ export declare function onDeletedMessages(messaging: Messaging, listener: () => void): () => void;
156
+ /**
157
+ * When sending a `RemoteMessage`, this listener is called when the message has been sent to FCM.
158
+ * @param messaging - Messaging instance.
159
+ * @param listener - Called when the FCM sends the remote message to FCM.
160
+ * @returns Function to unsubscribe from the message sent listener.
161
+ */
162
+ export declare function onMessageSent(messaging: Messaging, listener: (messageId: string) => any): () => void;
163
+ /**
164
+ * When sending a `RemoteMessage`, this listener is called when an error is thrown and the
165
+ * message could not be sent.
166
+ * @param messaging - Messaging instance.
167
+ * @param listener - Called when the FCM sends the remote message to FCM.
168
+ * @returns Function to unsubscribe from the send error listener.
169
+ */
170
+ export declare function onSendError(messaging: Messaging, listener: (evt: SendErrorEvent) => any): () => void;
171
+ /**
172
+ * Set a message handler function which is called when the app is in the background
173
+ * or terminated. In Android, a headless task is created, allowing you to access the React Native environment
174
+ * to perform tasks such as updating local storage, or sending a network request.
175
+ * @param messaging - Messaging instance.
176
+ * @param handler - Called when a message is sent and the application is in a background or terminated state.
177
+ * @returns void
178
+ */
179
+ export declare function setBackgroundMessageHandler(messaging: Messaging, handler: (message: RemoteMessage) => Promise<any>): void;
180
+ /**
181
+ * Set a handler function which is called when the `${App Name} notifications settings`
182
+ * link in iOS settings is clicked.
183
+ * @param messaging - Messaging instance.
184
+ * @param handler - Called when link in iOS settings is clicked.
185
+ * @returns void
186
+ */
187
+ export declare function setOpenSettingsForNotificationsHandler(messaging: Messaging, handler: (message: RemoteMessage) => any): void;
188
+ /**
189
+ * Send a new `RemoteMessage` to the FCM server.
190
+ * @param messaging - Messaging instance.
191
+ * @param message - A `RemoteMessage` interface.
192
+ * @returns Promise that resolves when the message is sent.
193
+ */
194
+ export declare function sendMessage(messaging: Messaging, message: RemoteMessage): Promise<void>;
195
+ /**
196
+ * Apps can subscribe to a topic, which allows the FCM server to send targeted messages to only those
197
+ * devices subscribed to that topic.
198
+ * @param messaging - Messaging instance.
199
+ * @param topic - The topic name.
200
+ * @returns Promise that resolves when the subscription is complete.
201
+ */
202
+ export declare function subscribeToTopic(messaging: Messaging, topic: string): Promise<void>;
203
+ /**
204
+ * Unsubscribe the device from a topic.
205
+ * @param messaging - Messaging instance.
206
+ * @param topic - The topic name.
207
+ * @returns Promise that resolves when the unsubscription is complete.
208
+ */
209
+ export declare function unsubscribeFromTopic(messaging: Messaging, topic: string): Promise<void>;
210
+ /**
211
+ * Returns a boolean whether message delivery metrics are exported to BigQuery.
212
+ * @param messaging - Messaging instance.
213
+ * @returns Boolean indicating if message delivery metrics are exported to BigQuery.
214
+ */
215
+ export declare function isDeliveryMetricsExportToBigQueryEnabled(messaging: Messaging): boolean;
216
+ /**
217
+ * Returns a boolean whether message delegation is enabled. Android only,
218
+ * always returns false on iOS
219
+ * @param messaging - Messaging instance.
220
+ * @returns Boolean indicating if notification delegation is enabled.
221
+ */
222
+ export declare function isNotificationDelegationEnabled(messaging: Messaging): boolean;
223
+ /**
224
+ * Sets whether message notification delegation is enabled or disabled.
225
+ * The value is false by default. Set this to true to allow delegation of notification to Google Play Services.
226
+ * Note if true message handlers will not function on Android, and it has no effect on iOS
227
+ * @param messaging - Messaging instance.
228
+ * @param enabled - A boolean value to enable or disable delegation of messages to Google Play Services.
229
+ * @returns Promise that resolves when the setting is updated.
230
+ */
231
+ export declare function setNotificationDelegationEnabled(messaging: Messaging, enabled: boolean): Promise<void>;
232
+ /**
233
+ * Checks if all required APIs exist in the browser.
234
+ * @param messaging - Messaging instance.
235
+ * @returns Promise that resolves with a boolean indicating if the APIs are supported.
236
+ */
237
+ export declare function isSupported(messaging: Messaging): Promise<boolean>;
238
+ /**
239
+ * Sets whether message delivery metrics are exported to BigQuery is enabled or disabled.
240
+ * The value is false by default. Set this to true to allow exporting of message delivery metrics to BigQuery.
241
+ * @param messaging - Messaging instance.
242
+ * @param enabled - A boolean value to enable or disable exporting of message delivery metrics to BigQuery.
243
+ * @returns Promise that resolves when the setting is updated.
244
+ */
245
+ export declare function experimentalSetDeliveryMetricsExportedToBigQueryEnabled(messaging: Messaging, enabled: boolean): Promise<void>;
246
+ export { AuthorizationStatus, NotificationAndroidPriority, NotificationAndroidVisibility, } from './statics';
247
+ //# sourceMappingURL=modular.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modular.d.ts","sourceRoot":"","sources":["../../../../lib/modular.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EACV,SAAS,EACT,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,cAAc,EACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEtE;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,GAAG,CAAC,EAAE,mBAAmB,CAAC,WAAW,GAAG,SAAS,CAM7E;AAED;;;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from '@react-native-firebase/app';
3
+ export declare const SDK_VERSION = "23.8.0";
4
+ type MessagingNamespace = ReactNativeFirebase.FirebaseModuleWithStaticsAndApp<Messaging, Statics> & {
5
+ messaging: ReactNativeFirebase.FirebaseModuleWithStaticsAndApp<Messaging, Statics>;
6
+ firebase: ReactNativeFirebase.Module;
7
+ app(name?: string): ReactNativeFirebase.FirebaseApp;
8
+ };
9
+ declare const _default: MessagingNamespace;
10
+ export default _default;
11
+ export declare const firebase: ReactNativeFirebase.FirebaseNamespacedExport<"messaging", Messaging, Statics, false>;
12
+ //# sourceMappingURL=namespaced.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"namespaced.d.ts","sourceRoot":"","sources":["../../../../lib/namespaced.ts"],"names":[],"mappings":"AAwCA,OAAO,KAAK,EACV,SAAS,EACT,OAAO,EAIR,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AA0etE,eAAO,MAAM,WAAW,WAAU,CAAC;AAyBnC,KAAK,kBAAkB,GAAG,mBAAmB,CAAC,+BAA+B,CAC3E,SAAS,EACT,OAAO,CACR,GAAG;IACF,SAAS,EAAE,mBAAmB,CAAC,+BAA+B,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IACnF,QAAQ,EAAE,mBAAmB,CAAC,MAAM,CAAC;IACrC,GAAG,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,mBAAmB,CAAC,WAAW,CAAC;CACrD,CAAC;wBAE8C,kBAAkB;AAAlE,wBAAmE;AAKnE,eAAO,MAAM,QAAQ,EACa,mBAAmB,CAAC,wBAAwB,CAC1E,WAAW,EACX,SAAS,EACT,OAAO,EACP,KAAK,CACN,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { RemoteMessage } from './types/messaging';
2
+ interface RemoteMessageOptions {
3
+ to: string;
4
+ messageId: string;
5
+ ttl: number;
6
+ data: {
7
+ [key: string]: string;
8
+ };
9
+ collapseKey?: string;
10
+ messageType?: string;
11
+ }
12
+ export default function remoteMessageOptions(messagingSenderId: string, remoteMessage: RemoteMessage): RemoteMessageOptions;
13
+ export {};
14
+ //# sourceMappingURL=remoteMessageOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remoteMessageOptions.d.ts","sourceRoot":"","sources":["../../../../lib/remoteMessageOptions.ts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,UAAU,oBAAoB;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAC1C,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,aAAa,GAC3B,oBAAoB,CAqEtB"}
@@ -0,0 +1,20 @@
1
+ export declare const AuthorizationStatus: {
2
+ readonly NOT_DETERMINED: -1;
3
+ readonly DENIED: 0;
4
+ readonly AUTHORIZED: 1;
5
+ readonly PROVISIONAL: 2;
6
+ readonly EPHEMERAL: 3;
7
+ };
8
+ export declare const NotificationAndroidPriority: {
9
+ readonly PRIORITY_MIN: -2;
10
+ readonly PRIORITY_LOW: -1;
11
+ readonly PRIORITY_DEFAULT: 0;
12
+ readonly PRIORITY_HIGH: 1;
13
+ readonly PRIORITY_MAX: 2;
14
+ };
15
+ export declare const NotificationAndroidVisibility: {
16
+ readonly VISIBILITY_SECRET: -1;
17
+ readonly VISIBILITY_PRIVATE: 0;
18
+ readonly VISIBILITY_PUBLIC: 1;
19
+ };
20
+ //# sourceMappingURL=statics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"statics.d.ts","sourceRoot":"","sources":["../../../../lib/statics.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB;;;;;;CAMtB,CAAC;AAEX,eAAO,MAAM,2BAA2B;;;;;;CAM9B,CAAC;AAEX,eAAO,MAAM,6BAA6B;;;;CAIhC,CAAC"}