@react-native-firebase/messaging 26.1.0 → 26.3.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.
- package/CHANGELOG.md +12 -0
- package/RNFBMessaging.podspec +1 -0
- package/android/src/main/java/io/invertase/firebase/messaging/generated/jni/CMakeLists.txt +1 -9
- package/android/src/main/java/io/invertase/firebase/messaging/generated/jni/react/renderer/components/RNFBMessagingTurboModules/RNFBMessagingTurboModulesJSI.h +170 -218
- package/dist/module/version.js +1 -1
- package/dist/typescript/lib/index.d.ts +1 -1
- package/dist/typescript/lib/version.d.ts +1 -1
- package/ios/generated/RNFBMessagingTurboModules/RNFBMessagingTurboModules.h +2 -2
- package/ios/generated/RNFBMessagingTurboModulesJSI.h +170 -218
- package/lib/version.ts +1 -1
- package/package.json +6 -6
- package/android/src/main/java/io/invertase/firebase/messaging/generated/jni/react/renderer/components/RNFBMessagingTurboModules/RNFBMessagingTurboModulesJSI-generated.cpp +0 -161
- package/ios/generated/RCTAppDependencyProvider.h +0 -25
- package/ios/generated/RCTAppDependencyProvider.mm +0 -55
- package/ios/generated/RCTModulesConformingToProtocolsProvider.h +0 -18
- package/ios/generated/RCTModulesConformingToProtocolsProvider.mm +0 -33
- package/ios/generated/RCTThirdPartyComponentsProvider.h +0 -16
- package/ios/generated/RCTThirdPartyComponentsProvider.mm +0 -23
- package/ios/generated/RNFBMessagingTurboModulesJSI-generated.cpp +0 -161
- package/ios/generated/ReactAppDependencyProvider.podspec +0 -34
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [26.3.0](https://github.com/invertase/react-native-firebase/compare/v26.2.0...v26.3.0) (2026-08-20)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **ios:** allow non-modular React includes in RNFB podspecs ([#9200](https://github.com/invertase/react-native-firebase/issues/9200)) ([dd453ff](https://github.com/invertase/react-native-firebase/commit/dd453ff17a8bd645b9d0eb56bef74df53f217f93))
|
|
11
|
+
|
|
12
|
+
## [26.2.0](https://github.com/invertase/react-native-firebase/compare/v26.1.0...v26.2.0) (2026-08-10)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
- codegen should be wipe-then-regen ([04bc4e4](https://github.com/invertase/react-native-firebase/commit/04bc4e4cdab9870cb366fd212b2ccb331b0289d6))
|
|
17
|
+
|
|
6
18
|
## [26.1.0](https://github.com/invertase/react-native-firebase/compare/v26.0.0...v26.1.0) (2026-08-03)
|
|
7
19
|
|
|
8
20
|
### Features
|
package/RNFBMessaging.podspec
CHANGED
|
@@ -41,6 +41,7 @@ Pod::Spec.new do |s|
|
|
|
41
41
|
|
|
42
42
|
s.pod_target_xcconfig = {
|
|
43
43
|
'HEADER_SEARCH_PATHS' => '"$(PODS_TARGET_SRCROOT)/ios/generated/RNFBMessagingTurboModules" "$(PODS_TARGET_SRCROOT)/ios/generated"',
|
|
44
|
+
"CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES" => "YES",
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
s.dependency 'RNFBApp'
|
|
@@ -25,12 +25,4 @@ target_link_libraries(
|
|
|
25
25
|
reactnative
|
|
26
26
|
)
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
react_codegen_RNFBMessagingTurboModules
|
|
30
|
-
PRIVATE
|
|
31
|
-
-DLOG_TAG=\"ReactNative\"
|
|
32
|
-
-fexceptions
|
|
33
|
-
-frtti
|
|
34
|
-
-std=c++20
|
|
35
|
-
-Wall
|
|
36
|
-
)
|
|
28
|
+
target_compile_reactnative_options(react_codegen_RNFBMessagingTurboModules PRIVATE)
|
|
@@ -15,18 +15,17 @@
|
|
|
15
15
|
namespace facebook::react {
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
|
|
19
18
|
#pragma mark - NativeRNFBTurboMessagingIOSPermissions
|
|
20
19
|
|
|
21
20
|
template <typename P0, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7>
|
|
22
21
|
struct NativeRNFBTurboMessagingIOSPermissions {
|
|
23
|
-
P0 alert;
|
|
24
|
-
P1 announcement;
|
|
25
|
-
P2 badge;
|
|
26
|
-
P3 carPlay;
|
|
27
|
-
P4 criticalAlert;
|
|
28
|
-
P5 provisional;
|
|
29
|
-
P6 sound;
|
|
22
|
+
P0 alert{};
|
|
23
|
+
P1 announcement{};
|
|
24
|
+
P2 badge{};
|
|
25
|
+
P3 carPlay{};
|
|
26
|
+
P4 criticalAlert{};
|
|
27
|
+
P5 provisional{};
|
|
28
|
+
P6 sound{};
|
|
30
29
|
P7 providesAppNotificationSettings;
|
|
31
30
|
bool operator==(const NativeRNFBTurboMessagingIOSPermissions &other) const {
|
|
32
31
|
return alert == other.alert && announcement == other.announcement && badge == other.badge && carPlay == other.carPlay && criticalAlert == other.criticalAlert && provisional == other.provisional && sound == other.sound && providesAppNotificationSettings == other.providesAppNotificationSettings;
|
|
@@ -57,31 +56,24 @@ struct NativeRNFBTurboMessagingIOSPermissionsBridging {
|
|
|
57
56
|
static bool alertToJs(jsi::Runtime &rt, decltype(types.alert) value) {
|
|
58
57
|
return bridging::toJs(rt, value);
|
|
59
58
|
}
|
|
60
|
-
|
|
61
59
|
static bool announcementToJs(jsi::Runtime &rt, decltype(types.announcement) value) {
|
|
62
60
|
return bridging::toJs(rt, value);
|
|
63
61
|
}
|
|
64
|
-
|
|
65
62
|
static bool badgeToJs(jsi::Runtime &rt, decltype(types.badge) value) {
|
|
66
63
|
return bridging::toJs(rt, value);
|
|
67
64
|
}
|
|
68
|
-
|
|
69
65
|
static bool carPlayToJs(jsi::Runtime &rt, decltype(types.carPlay) value) {
|
|
70
66
|
return bridging::toJs(rt, value);
|
|
71
67
|
}
|
|
72
|
-
|
|
73
68
|
static bool criticalAlertToJs(jsi::Runtime &rt, decltype(types.criticalAlert) value) {
|
|
74
69
|
return bridging::toJs(rt, value);
|
|
75
70
|
}
|
|
76
|
-
|
|
77
71
|
static bool provisionalToJs(jsi::Runtime &rt, decltype(types.provisional) value) {
|
|
78
72
|
return bridging::toJs(rt, value);
|
|
79
73
|
}
|
|
80
|
-
|
|
81
74
|
static bool soundToJs(jsi::Runtime &rt, decltype(types.sound) value) {
|
|
82
75
|
return bridging::toJs(rt, value);
|
|
83
76
|
}
|
|
84
|
-
|
|
85
77
|
static bool providesAppNotificationSettingsToJs(jsi::Runtime &rt, decltype(types.providesAppNotificationSettings) value) {
|
|
86
78
|
return bridging::toJs(rt, value);
|
|
87
79
|
}
|
|
@@ -120,237 +112,197 @@ struct NativeRNFBTurboMessagingIOSPermissionsBridging {
|
|
|
120
112
|
}
|
|
121
113
|
};
|
|
122
114
|
|
|
123
|
-
class JSI_EXPORT NativeRNFBTurboMessagingCxxSpecJSI : public TurboModule {
|
|
124
|
-
protected:
|
|
125
|
-
NativeRNFBTurboMessagingCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
|
|
126
|
-
|
|
127
|
-
public:
|
|
128
|
-
virtual jsi::Object getConstants(jsi::Runtime &rt) = 0;
|
|
129
|
-
virtual jsi::Value getInitialNotification(jsi::Runtime &rt) = 0;
|
|
130
|
-
virtual jsi::Value getDidOpenSettingsForNotification(jsi::Runtime &rt) = 0;
|
|
131
|
-
virtual jsi::Value setAutoInitEnabled(jsi::Runtime &rt, bool enabled) = 0;
|
|
132
|
-
virtual void signalBackgroundMessageHandlerSet(jsi::Runtime &rt) = 0;
|
|
133
|
-
virtual void completeNotificationProcessing(jsi::Runtime &rt) = 0;
|
|
134
|
-
virtual jsi::Value getToken(jsi::Runtime &rt, jsi::String appName, jsi::String senderId) = 0;
|
|
135
|
-
virtual jsi::Value deleteToken(jsi::Runtime &rt, jsi::String appName, jsi::String senderId) = 0;
|
|
136
|
-
virtual jsi::Value getAPNSToken(jsi::Runtime &rt) = 0;
|
|
137
|
-
virtual jsi::Value setAPNSToken(jsi::Runtime &rt, jsi::String token, std::optional<jsi::String> type) = 0;
|
|
138
|
-
virtual jsi::Value getIsHeadless(jsi::Runtime &rt) = 0;
|
|
139
|
-
virtual jsi::Value requestPermission(jsi::Runtime &rt, jsi::Object permissions) = 0;
|
|
140
|
-
virtual jsi::Value registerForRemoteNotifications(jsi::Runtime &rt) = 0;
|
|
141
|
-
virtual jsi::Value unregisterForRemoteNotifications(jsi::Runtime &rt) = 0;
|
|
142
|
-
virtual jsi::Value hasPermission(jsi::Runtime &rt) = 0;
|
|
143
|
-
virtual jsi::Value sendMessage(jsi::Runtime &rt, jsi::Object remoteMessageMap) = 0;
|
|
144
|
-
virtual jsi::Value subscribeToTopic(jsi::Runtime &rt, jsi::String topic) = 0;
|
|
145
|
-
virtual jsi::Value unsubscribeFromTopic(jsi::Runtime &rt, jsi::String topic) = 0;
|
|
146
|
-
virtual jsi::Value setDeliveryMetricsExportToBigQuery(jsi::Runtime &rt, bool enabled) = 0;
|
|
147
|
-
virtual jsi::Value setNotificationDelegationEnabled(jsi::Runtime &rt, bool enabled) = 0;
|
|
148
|
-
virtual jsi::Value isNotificationDelegationEnabled(jsi::Runtime &rt) = 0;
|
|
149
|
-
|
|
150
|
-
};
|
|
151
115
|
|
|
152
116
|
template <typename T>
|
|
153
117
|
class JSI_EXPORT NativeRNFBTurboMessagingCxxSpec : public TurboModule {
|
|
154
118
|
public:
|
|
155
|
-
jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override {
|
|
156
|
-
return delegate_.create(rt, propName);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime& runtime) override {
|
|
160
|
-
return delegate_.getPropertyNames(runtime);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
119
|
static constexpr std::string_view kModuleName = "NativeRNFBTurboMessaging";
|
|
164
120
|
|
|
165
121
|
protected:
|
|
166
|
-
NativeRNFBTurboMessagingCxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
122
|
+
NativeRNFBTurboMessagingCxxSpec(std::shared_ptr<CallInvoker> jsInvoker) : TurboModule(std::string{NativeRNFBTurboMessagingCxxSpec::kModuleName}, jsInvoker) {
|
|
123
|
+
methodMap_["getConstants"] = MethodMetadata {.argCount = 0, .invoker = __getConstants};
|
|
124
|
+
methodMap_["getInitialNotification"] = MethodMetadata {.argCount = 0, .invoker = __getInitialNotification};
|
|
125
|
+
methodMap_["getDidOpenSettingsForNotification"] = MethodMetadata {.argCount = 0, .invoker = __getDidOpenSettingsForNotification};
|
|
126
|
+
methodMap_["setAutoInitEnabled"] = MethodMetadata {.argCount = 1, .invoker = __setAutoInitEnabled};
|
|
127
|
+
methodMap_["signalBackgroundMessageHandlerSet"] = MethodMetadata {.argCount = 0, .invoker = __signalBackgroundMessageHandlerSet};
|
|
128
|
+
methodMap_["completeNotificationProcessing"] = MethodMetadata {.argCount = 0, .invoker = __completeNotificationProcessing};
|
|
129
|
+
methodMap_["getToken"] = MethodMetadata {.argCount = 2, .invoker = __getToken};
|
|
130
|
+
methodMap_["deleteToken"] = MethodMetadata {.argCount = 2, .invoker = __deleteToken};
|
|
131
|
+
methodMap_["getAPNSToken"] = MethodMetadata {.argCount = 0, .invoker = __getAPNSToken};
|
|
132
|
+
methodMap_["setAPNSToken"] = MethodMetadata {.argCount = 2, .invoker = __setAPNSToken};
|
|
133
|
+
methodMap_["getIsHeadless"] = MethodMetadata {.argCount = 0, .invoker = __getIsHeadless};
|
|
134
|
+
methodMap_["requestPermission"] = MethodMetadata {.argCount = 1, .invoker = __requestPermission};
|
|
135
|
+
methodMap_["registerForRemoteNotifications"] = MethodMetadata {.argCount = 0, .invoker = __registerForRemoteNotifications};
|
|
136
|
+
methodMap_["unregisterForRemoteNotifications"] = MethodMetadata {.argCount = 0, .invoker = __unregisterForRemoteNotifications};
|
|
137
|
+
methodMap_["hasPermission"] = MethodMetadata {.argCount = 0, .invoker = __hasPermission};
|
|
138
|
+
methodMap_["sendMessage"] = MethodMetadata {.argCount = 1, .invoker = __sendMessage};
|
|
139
|
+
methodMap_["subscribeToTopic"] = MethodMetadata {.argCount = 1, .invoker = __subscribeToTopic};
|
|
140
|
+
methodMap_["unsubscribeFromTopic"] = MethodMetadata {.argCount = 1, .invoker = __unsubscribeFromTopic};
|
|
141
|
+
methodMap_["setDeliveryMetricsExportToBigQuery"] = MethodMetadata {.argCount = 1, .invoker = __setDeliveryMetricsExportToBigQuery};
|
|
142
|
+
methodMap_["setNotificationDelegationEnabled"] = MethodMetadata {.argCount = 1, .invoker = __setNotificationDelegationEnabled};
|
|
143
|
+
methodMap_["isNotificationDelegationEnabled"] = MethodMetadata {.argCount = 0, .invoker = __isNotificationDelegationEnabled};
|
|
144
|
+
}
|
|
145
|
+
|
|
171
146
|
private:
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
jsi::Object getConstants(jsi::Runtime &rt) override {
|
|
180
|
-
static_assert(
|
|
181
|
-
bridging::getParameterCount(&T::getConstants) == 1,
|
|
182
|
-
"Expected getConstants(...) to have 1 parameters");
|
|
183
|
-
|
|
184
|
-
return bridging::callFromJs<jsi::Object>(
|
|
185
|
-
rt, &T::getConstants, jsInvoker_, instance_);
|
|
186
|
-
}
|
|
187
|
-
jsi::Value getInitialNotification(jsi::Runtime &rt) override {
|
|
188
|
-
static_assert(
|
|
189
|
-
bridging::getParameterCount(&T::getInitialNotification) == 1,
|
|
190
|
-
"Expected getInitialNotification(...) to have 1 parameters");
|
|
191
|
-
|
|
192
|
-
return bridging::callFromJs<jsi::Value>(
|
|
193
|
-
rt, &T::getInitialNotification, jsInvoker_, instance_);
|
|
194
|
-
}
|
|
195
|
-
jsi::Value getDidOpenSettingsForNotification(jsi::Runtime &rt) override {
|
|
196
|
-
static_assert(
|
|
197
|
-
bridging::getParameterCount(&T::getDidOpenSettingsForNotification) == 1,
|
|
198
|
-
"Expected getDidOpenSettingsForNotification(...) to have 1 parameters");
|
|
199
|
-
|
|
200
|
-
return bridging::callFromJs<jsi::Value>(
|
|
201
|
-
rt, &T::getDidOpenSettingsForNotification, jsInvoker_, instance_);
|
|
202
|
-
}
|
|
203
|
-
jsi::Value setAutoInitEnabled(jsi::Runtime &rt, bool enabled) override {
|
|
204
|
-
static_assert(
|
|
205
|
-
bridging::getParameterCount(&T::setAutoInitEnabled) == 2,
|
|
206
|
-
"Expected setAutoInitEnabled(...) to have 2 parameters");
|
|
147
|
+
static jsi::Value __getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
|
|
148
|
+
static_assert(
|
|
149
|
+
bridging::getParameterCount(&T::getConstants) == 1,
|
|
150
|
+
"Expected getConstants(...) to have 1 parameters");
|
|
151
|
+
return bridging::callFromJs<jsi::Object>(rt, &T::getConstants, static_cast<NativeRNFBTurboMessagingCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
|
|
152
|
+
}
|
|
207
153
|
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
"Expected signalBackgroundMessageHandlerSet(...) to have 1 parameters");
|
|
154
|
+
static jsi::Value __getInitialNotification(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
|
|
155
|
+
static_assert(
|
|
156
|
+
bridging::getParameterCount(&T::getInitialNotification) == 1,
|
|
157
|
+
"Expected getInitialNotification(...) to have 1 parameters");
|
|
158
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::getInitialNotification, static_cast<NativeRNFBTurboMessagingCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
|
|
159
|
+
}
|
|
215
160
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
"Expected completeNotificationProcessing(...) to have 1 parameters");
|
|
161
|
+
static jsi::Value __getDidOpenSettingsForNotification(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
|
|
162
|
+
static_assert(
|
|
163
|
+
bridging::getParameterCount(&T::getDidOpenSettingsForNotification) == 1,
|
|
164
|
+
"Expected getDidOpenSettingsForNotification(...) to have 1 parameters");
|
|
165
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::getDidOpenSettingsForNotification, static_cast<NativeRNFBTurboMessagingCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
|
|
166
|
+
}
|
|
223
167
|
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
168
|
+
static jsi::Value __setAutoInitEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
169
|
+
static_assert(
|
|
170
|
+
bridging::getParameterCount(&T::setAutoInitEnabled) == 2,
|
|
171
|
+
"Expected setAutoInitEnabled(...) to have 2 parameters");
|
|
172
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::setAutoInitEnabled, static_cast<NativeRNFBTurboMessagingCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
173
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool());
|
|
174
|
+
}
|
|
231
175
|
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
"Expected deleteToken(...) to have 3 parameters");
|
|
176
|
+
static jsi::Value __signalBackgroundMessageHandlerSet(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
|
|
177
|
+
static_assert(
|
|
178
|
+
bridging::getParameterCount(&T::signalBackgroundMessageHandlerSet) == 1,
|
|
179
|
+
"Expected signalBackgroundMessageHandlerSet(...) to have 1 parameters");
|
|
180
|
+
bridging::callFromJs<void>(rt, &T::signalBackgroundMessageHandlerSet, static_cast<NativeRNFBTurboMessagingCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));return jsi::Value::undefined();
|
|
181
|
+
}
|
|
239
182
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
"Expected getAPNSToken(...) to have 1 parameters");
|
|
183
|
+
static jsi::Value __completeNotificationProcessing(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
|
|
184
|
+
static_assert(
|
|
185
|
+
bridging::getParameterCount(&T::completeNotificationProcessing) == 1,
|
|
186
|
+
"Expected completeNotificationProcessing(...) to have 1 parameters");
|
|
187
|
+
bridging::callFromJs<void>(rt, &T::completeNotificationProcessing, static_cast<NativeRNFBTurboMessagingCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));return jsi::Value::undefined();
|
|
188
|
+
}
|
|
247
189
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
190
|
+
static jsi::Value __getToken(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
191
|
+
static_assert(
|
|
192
|
+
bridging::getParameterCount(&T::getToken) == 3,
|
|
193
|
+
"Expected getToken(...) to have 3 parameters");
|
|
194
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::getToken, static_cast<NativeRNFBTurboMessagingCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
195
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
|
|
196
|
+
count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt));
|
|
197
|
+
}
|
|
255
198
|
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
199
|
+
static jsi::Value __deleteToken(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
200
|
+
static_assert(
|
|
201
|
+
bridging::getParameterCount(&T::deleteToken) == 3,
|
|
202
|
+
"Expected deleteToken(...) to have 3 parameters");
|
|
203
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::deleteToken, static_cast<NativeRNFBTurboMessagingCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
204
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
|
|
205
|
+
count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt));
|
|
206
|
+
}
|
|
263
207
|
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
"Expected requestPermission(...) to have 2 parameters");
|
|
208
|
+
static jsi::Value __getAPNSToken(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
|
|
209
|
+
static_assert(
|
|
210
|
+
bridging::getParameterCount(&T::getAPNSToken) == 1,
|
|
211
|
+
"Expected getAPNSToken(...) to have 1 parameters");
|
|
212
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::getAPNSToken, static_cast<NativeRNFBTurboMessagingCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
|
|
213
|
+
}
|
|
271
214
|
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
215
|
+
static jsi::Value __setAPNSToken(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
216
|
+
static_assert(
|
|
217
|
+
bridging::getParameterCount(&T::setAPNSToken) == 3,
|
|
218
|
+
"Expected setAPNSToken(...) to have 3 parameters");
|
|
219
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::setAPNSToken, static_cast<NativeRNFBTurboMessagingCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
220
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
|
|
221
|
+
count <= 1 || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asString(rt)));
|
|
222
|
+
}
|
|
279
223
|
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
"Expected unregisterForRemoteNotifications(...) to have 1 parameters");
|
|
224
|
+
static jsi::Value __getIsHeadless(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
|
|
225
|
+
static_assert(
|
|
226
|
+
bridging::getParameterCount(&T::getIsHeadless) == 1,
|
|
227
|
+
"Expected getIsHeadless(...) to have 1 parameters");
|
|
228
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::getIsHeadless, static_cast<NativeRNFBTurboMessagingCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
|
|
229
|
+
}
|
|
287
230
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
231
|
+
static jsi::Value __requestPermission(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
232
|
+
static_assert(
|
|
233
|
+
bridging::getParameterCount(&T::requestPermission) == 2,
|
|
234
|
+
"Expected requestPermission(...) to have 2 parameters");
|
|
235
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::requestPermission, static_cast<NativeRNFBTurboMessagingCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
236
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt));
|
|
237
|
+
}
|
|
295
238
|
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
"Expected sendMessage(...) to have 2 parameters");
|
|
239
|
+
static jsi::Value __registerForRemoteNotifications(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
|
|
240
|
+
static_assert(
|
|
241
|
+
bridging::getParameterCount(&T::registerForRemoteNotifications) == 1,
|
|
242
|
+
"Expected registerForRemoteNotifications(...) to have 1 parameters");
|
|
243
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::registerForRemoteNotifications, static_cast<NativeRNFBTurboMessagingCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
|
|
244
|
+
}
|
|
303
245
|
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
"Expected subscribeToTopic(...) to have 2 parameters");
|
|
246
|
+
static jsi::Value __unregisterForRemoteNotifications(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
|
|
247
|
+
static_assert(
|
|
248
|
+
bridging::getParameterCount(&T::unregisterForRemoteNotifications) == 1,
|
|
249
|
+
"Expected unregisterForRemoteNotifications(...) to have 1 parameters");
|
|
250
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::unregisterForRemoteNotifications, static_cast<NativeRNFBTurboMessagingCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
|
|
251
|
+
}
|
|
311
252
|
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
"Expected unsubscribeFromTopic(...) to have 2 parameters");
|
|
253
|
+
static jsi::Value __hasPermission(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
|
|
254
|
+
static_assert(
|
|
255
|
+
bridging::getParameterCount(&T::hasPermission) == 1,
|
|
256
|
+
"Expected hasPermission(...) to have 1 parameters");
|
|
257
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::hasPermission, static_cast<NativeRNFBTurboMessagingCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
|
|
258
|
+
}
|
|
319
259
|
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
260
|
+
static jsi::Value __sendMessage(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
261
|
+
static_assert(
|
|
262
|
+
bridging::getParameterCount(&T::sendMessage) == 2,
|
|
263
|
+
"Expected sendMessage(...) to have 2 parameters");
|
|
264
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::sendMessage, static_cast<NativeRNFBTurboMessagingCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
265
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt));
|
|
266
|
+
}
|
|
327
267
|
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
268
|
+
static jsi::Value __subscribeToTopic(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
269
|
+
static_assert(
|
|
270
|
+
bridging::getParameterCount(&T::subscribeToTopic) == 2,
|
|
271
|
+
"Expected subscribeToTopic(...) to have 2 parameters");
|
|
272
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::subscribeToTopic, static_cast<NativeRNFBTurboMessagingCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
273
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt));
|
|
274
|
+
}
|
|
335
275
|
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
276
|
+
static jsi::Value __unsubscribeFromTopic(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
277
|
+
static_assert(
|
|
278
|
+
bridging::getParameterCount(&T::unsubscribeFromTopic) == 2,
|
|
279
|
+
"Expected unsubscribeFromTopic(...) to have 2 parameters");
|
|
280
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::unsubscribeFromTopic, static_cast<NativeRNFBTurboMessagingCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
281
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt));
|
|
282
|
+
}
|
|
343
283
|
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
284
|
+
static jsi::Value __setDeliveryMetricsExportToBigQuery(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
285
|
+
static_assert(
|
|
286
|
+
bridging::getParameterCount(&T::setDeliveryMetricsExportToBigQuery) == 2,
|
|
287
|
+
"Expected setDeliveryMetricsExportToBigQuery(...) to have 2 parameters");
|
|
288
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::setDeliveryMetricsExportToBigQuery, static_cast<NativeRNFBTurboMessagingCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
289
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool());
|
|
290
|
+
}
|
|
347
291
|
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
292
|
+
static jsi::Value __setNotificationDelegationEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
293
|
+
static_assert(
|
|
294
|
+
bridging::getParameterCount(&T::setNotificationDelegationEnabled) == 2,
|
|
295
|
+
"Expected setNotificationDelegationEnabled(...) to have 2 parameters");
|
|
296
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::setNotificationDelegationEnabled, static_cast<NativeRNFBTurboMessagingCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
|
|
297
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool());
|
|
298
|
+
}
|
|
352
299
|
|
|
353
|
-
|
|
300
|
+
static jsi::Value __isNotificationDelegationEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
|
|
301
|
+
static_assert(
|
|
302
|
+
bridging::getParameterCount(&T::isNotificationDelegationEnabled) == 1,
|
|
303
|
+
"Expected isNotificationDelegationEnabled(...) to have 1 parameters");
|
|
304
|
+
return bridging::callFromJs<jsi::Value>(rt, &T::isNotificationDelegationEnabled, static_cast<NativeRNFBTurboMessagingCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
|
|
305
|
+
}
|
|
354
306
|
};
|
|
355
307
|
|
|
356
308
|
} // namespace facebook::react
|
package/dist/module/version.js
CHANGED
|
@@ -2,7 +2,7 @@ import './types/internal';
|
|
|
2
2
|
import type { FirebaseApp } from '@react-native-firebase/app';
|
|
3
3
|
import { AuthorizationStatus, NotificationAndroidPriority, NotificationAndroidVisibility } from './statics';
|
|
4
4
|
import type { Messaging, RemoteMessage, IOSPermissions, AuthorizationStatus as AuthorizationStatusType, NativeTokenOptions, GetTokenOptions, SendErrorEvent } from './types/messaging';
|
|
5
|
-
export declare const SDK_VERSION = "26.
|
|
5
|
+
export declare const SDK_VERSION = "26.3.0";
|
|
6
6
|
export { AuthorizationStatus, NotificationAndroidPriority, NotificationAndroidVisibility };
|
|
7
7
|
/**
|
|
8
8
|
* Returns the {@link Messaging} instance for the default or given {@link FirebaseApp}.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "26.
|
|
1
|
+
export declare const version = "26.3.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -140,8 +140,8 @@ namespace JS {
|
|
|
140
140
|
reject:(RCTPromiseRejectBlock)reject;
|
|
141
141
|
- (void)isNotificationDelegationEnabled:(RCTPromiseResolveBlock)resolve
|
|
142
142
|
reject:(RCTPromiseRejectBlock)reject;
|
|
143
|
-
- (facebook::react::ModuleConstants<JS::NativeRNFBTurboMessaging::Constants
|
|
144
|
-
- (facebook::react::ModuleConstants<JS::NativeRNFBTurboMessaging::Constants
|
|
143
|
+
- (facebook::react::ModuleConstants<JS::NativeRNFBTurboMessaging::Constants>)constantsToExport;
|
|
144
|
+
- (facebook::react::ModuleConstants<JS::NativeRNFBTurboMessaging::Constants>)getConstants;
|
|
145
145
|
|
|
146
146
|
@end
|
|
147
147
|
|