react-native-moengage 12.0.0 → 12.2.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 +228 -146
- package/ReactNativeMoEngage.podspec +1 -1
- package/android/build.gradle +2 -13
- package/android/moengage-dependency-helper.gradle +72 -0
- package/android/src/main/java/com/moengage/react/MoEInitializer.kt +0 -1
- package/iOS/MoEReactBridge/MoEngageInitializer.h +3 -0
- package/package.json +3 -2
- package/src/index.ts +11 -3
- package/src/models/MoEInAppRules.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
# 11-09-2025
|
|
2
|
+
|
|
3
|
+
## 12.2.0
|
|
4
|
+
|
|
5
|
+
- iOS
|
|
6
|
+
-`MoEngage-iOS-SDK` version updated to `10.05.0`
|
|
7
|
+
- Android
|
|
8
|
+
-`moe-android-sdk` version updated to `14.03.03`
|
|
9
|
+
|
|
10
|
+
# 29-07-2025
|
|
11
|
+
|
|
12
|
+
## 12.1.0
|
|
13
|
+
|
|
14
|
+
- Android
|
|
15
|
+
- Added support to include optional module using configuration in package json file
|
|
16
|
+
- iOS
|
|
17
|
+
- `MoEngage-iOS-SDK` version updated to `10.03.2`
|
|
18
|
+
|
|
1
19
|
# 17-07-2025
|
|
2
20
|
|
|
3
21
|
## 12.0.0
|
|
@@ -5,44 +23,48 @@
|
|
|
5
23
|
- Added support for Simplify Inapp Triggers.
|
|
6
24
|
- Added support for file based initialisation configuration
|
|
7
25
|
- Android
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
26
|
+
- Min SDK version updated to `23`
|
|
27
|
+
- Compiled SDK version updated to `35`
|
|
28
|
+
- Removed deprecated APIs
|
|
29
|
+
| Then | Now |
|
|
30
|
+
|:--------------------------------------------------------------:|:------------------------------------------------------------------------------:|
|
|
31
|
+
| MoEInitializer#initialize(Context, MoEngage.Builder) | MoEInitializer#initializeDefaultInstance(Context, MoEngage.Builder) |
|
|
32
|
+
| MoEInitializer#initialize(Context, MoEngage.Builder, SdkState) | MoEInitializer#initializeDefaultInstance(Context, MoEngage.Builder, SdkState) |
|
|
15
33
|
- iOS
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
34
|
+
- Minimum iOS and tvOS deployment target updated to `13`
|
|
35
|
+
- `MoEngage-iOS-SDK` version updated to `10.03.1`
|
|
36
|
+
|
|
19
37
|
# 24-04-2025
|
|
20
38
|
|
|
21
39
|
## 11.2.2
|
|
40
|
+
|
|
22
41
|
- Android
|
|
23
42
|
- `inapp` version updated to `8.8.1`
|
|
24
43
|
|
|
25
44
|
# 16-04-2025
|
|
26
45
|
|
|
27
46
|
## 11.2.1
|
|
47
|
+
|
|
28
48
|
- iOS
|
|
29
|
-
|
|
30
|
-
|
|
49
|
+
- Added back Swift AppDelegate support
|
|
50
|
+
- `MoEngage-iOS-SDK` version updated to `9.23.4`
|
|
31
51
|
|
|
32
52
|
# 24-03-2025
|
|
33
53
|
|
|
34
54
|
## 11.2.0
|
|
55
|
+
|
|
35
56
|
- Added support to identify user on multiple identities
|
|
36
57
|
- Android
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
58
|
+
- Added support for AGP `8.7.3` and above
|
|
59
|
+
- `moe-android-sdk` version updated to `13.06.00`
|
|
60
|
+
- `inapp` version updated to `8.8.0`
|
|
40
61
|
- iOS
|
|
41
|
-
|
|
42
|
-
|
|
62
|
+
- `MoEngage-iOS-SDK` version updated to `9.23.1`
|
|
63
|
+
|
|
43
64
|
# 11-03-2025
|
|
44
65
|
|
|
45
66
|
## 11.1.4
|
|
67
|
+
|
|
46
68
|
- Android
|
|
47
69
|
- BugFix: Multiple SelfHandled InApp not working for older architecture in Android platform
|
|
48
70
|
- iOS
|
|
@@ -51,37 +73,42 @@
|
|
|
51
73
|
# 29-01-2025
|
|
52
74
|
|
|
53
75
|
## 11.1.3
|
|
76
|
+
|
|
54
77
|
- Android
|
|
55
|
-
|
|
78
|
+
- `moe-android-sdk` version updated to `13.05.02`
|
|
56
79
|
- iOS
|
|
57
|
-
|
|
80
|
+
- MoEngage-iOS-SDK version updated to `9.22.1`.
|
|
58
81
|
|
|
59
82
|
# 08-01-2025
|
|
60
83
|
|
|
61
84
|
## 11.1.2
|
|
85
|
+
|
|
62
86
|
- Added support for React version 0.76.
|
|
63
|
-
|
|
87
|
+
|
|
64
88
|
# 25-11-2024
|
|
65
89
|
|
|
66
90
|
## 11.1.1
|
|
91
|
+
|
|
67
92
|
- Fixing the lint issue for `getMoEInAppRules` with `noImplicitAny` as false in tsconfig file
|
|
68
93
|
- Android
|
|
69
|
-
|
|
70
|
-
|
|
94
|
+
- `moe-android-sdk` version updated to `13.05.01`
|
|
95
|
+
- `inapp` version updated to `8.7.0`
|
|
71
96
|
- iOS
|
|
72
|
-
|
|
73
|
-
|
|
97
|
+
- Fixed the compiler issue in Apple TV.
|
|
98
|
+
|
|
74
99
|
# 30-09-2024
|
|
75
100
|
|
|
76
101
|
## 11.1.0
|
|
102
|
+
|
|
77
103
|
- Added support for Multiple SelfHandled InApps.
|
|
78
104
|
- iOS
|
|
79
|
-
|
|
80
|
-
|
|
105
|
+
- Added support for Provisional Push.
|
|
106
|
+
- MoEngage-iOS-SDK version updated to `9.20.0`.
|
|
81
107
|
|
|
82
108
|
# 07-08-2024
|
|
83
109
|
|
|
84
110
|
## 11.0.0
|
|
111
|
+
|
|
85
112
|
- iOS
|
|
86
113
|
- BugFix: Resolved the issue of tracking User Attribute TRUE/FALSE as 0/1.
|
|
87
114
|
- Pinned plugin dependency version
|
|
@@ -90,6 +117,7 @@
|
|
|
90
117
|
# 31-07-2024
|
|
91
118
|
|
|
92
119
|
## 10.3.0
|
|
120
|
+
|
|
93
121
|
- Fixing the typescript configuration warnings.
|
|
94
122
|
- Android
|
|
95
123
|
- `moe-android-sdk` version updated to `13.04.00`
|
|
@@ -98,7 +126,7 @@
|
|
|
98
126
|
- Kotlin version updated to `1.9.23`
|
|
99
127
|
- Compile SDK version updated to `34`
|
|
100
128
|
- iOS
|
|
101
|
-
|
|
129
|
+
- MoEngage-iOS-SDK version updated to `~>9.18.0`.
|
|
102
130
|
|
|
103
131
|
# 03-07-2024
|
|
104
132
|
|
|
@@ -114,6 +142,7 @@
|
|
|
114
142
|
# 16-05-2024
|
|
115
143
|
|
|
116
144
|
## 10.1.0
|
|
145
|
+
|
|
117
146
|
- Support for Data Center 6
|
|
118
147
|
- Android
|
|
119
148
|
- `moe-android-sdk` version updated to `13.01.00`
|
|
@@ -122,49 +151,54 @@
|
|
|
122
151
|
# 14-05-2024
|
|
123
152
|
|
|
124
153
|
## 10.0.1
|
|
154
|
+
|
|
125
155
|
- BugFix
|
|
126
|
-
|
|
127
|
-
|
|
156
|
+
- Adding backward compatibility support for react-native version with react-native-moengage `10.x.x`
|
|
157
|
+
|
|
128
158
|
# 07-05-2024
|
|
129
159
|
|
|
130
160
|
## 10.0.0
|
|
161
|
+
|
|
131
162
|
- Added support for Turbo Architecture
|
|
132
163
|
- Breaking APIs in Javascript
|
|
133
164
|
|
|
134
|
-
|
|
|
135
|
-
|
|
136
|
-
| optOutDataTracking(false) | enableDataTracking()
|
|
137
|
-
| optOutDataTracking(true)
|
|
138
|
-
|
|
165
|
+
| Then | Now |
|
|
166
|
+
| :-----------------------: | :-------------------: |
|
|
167
|
+
| optOutDataTracking(false) | enableDataTracking() |
|
|
168
|
+
| optOutDataTracking(true) | disableDataTracking() |
|
|
139
169
|
|
|
140
170
|
- iOS
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
171
|
+
|
|
172
|
+
- Removed support for SDK initialization from Info.plist.
|
|
173
|
+
- Removed APIs
|
|
174
|
+
|
|
175
|
+
| Removed APIs |
|
|
176
|
+
| :--------------------------------------------------------------------------------------------------------------------------------------------: |
|
|
177
|
+
| - (void)initializeDefaultInstance:(NSDictionary\*)launchOptions; |
|
|
178
|
+
| - (void)initializeDefaultInstanceWithState:(MoEngageSDKState)sdkState andLaunchOptions:(NSDictionary\*)launchOptions; |
|
|
179
|
+
| - (void)initializeDefaultInstance:(BOOL)isSdkEnabled andLaunchOptions:(NSDictionary\*)launchOptions; |
|
|
180
|
+
| - (void)initializeDefaultSDKConfig:(MoEngageSDKConfig*)sdkConfig withSDKState:(BOOL)isSdkEnabled andLaunchOptions:(NSDictionary*)launchOptions |
|
|
181
|
+
|
|
150
182
|
- Android
|
|
151
|
-
|
|
183
|
+
- Making `moe-android-sdk` and `inapp` dependecies as implementation
|
|
152
184
|
|
|
153
185
|
# 08-04-2024
|
|
154
186
|
|
|
155
187
|
## 9.1.0
|
|
188
|
+
|
|
156
189
|
- Added Intrusive InApp support for TV.
|
|
157
190
|
- iOS
|
|
158
|
-
|
|
191
|
+
- MoEngage-iOS-SDK version updated to `~>9.17.0`.
|
|
159
192
|
|
|
160
193
|
# 18-03-2024
|
|
161
194
|
|
|
162
195
|
## 9.0.0
|
|
196
|
+
|
|
163
197
|
- Added Nudge Support
|
|
164
198
|
- Bugfix
|
|
165
199
|
- Exception thrown `MoEInAppSelfHandledCampaign is an invalid object` while logging
|
|
166
200
|
- iOS
|
|
167
|
-
|
|
201
|
+
- MoEngage-iOS-SDK version updated to `~>9.16.1`.
|
|
168
202
|
- Android
|
|
169
203
|
- Support for MoEngage Core 13.00.00 and above
|
|
170
204
|
- Added support for AGP `8.2.2` and above
|
|
@@ -172,30 +206,34 @@
|
|
|
172
206
|
# 12-02-2024
|
|
173
207
|
|
|
174
208
|
## 8.7.1
|
|
209
|
+
|
|
175
210
|
- Android
|
|
176
|
-
|
|
211
|
+
- Support for Java 17
|
|
177
212
|
|
|
178
213
|
# 29-01-2024
|
|
179
214
|
|
|
180
215
|
## 8.7.0
|
|
216
|
+
|
|
181
217
|
- TV OS support.
|
|
182
218
|
- iOS
|
|
183
|
-
|
|
184
|
-
|
|
219
|
+
- MoEngage-iOS-SDK version updated to `~>9.15.0`.
|
|
220
|
+
|
|
185
221
|
# 29-11-2023
|
|
186
222
|
|
|
187
223
|
## 8.6.0
|
|
224
|
+
|
|
188
225
|
- Support for tracking an array of numbers and strings in user attributes
|
|
189
226
|
- Android
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
227
|
+
- Added API to delete User details from MoEngage Server
|
|
228
|
+
- Add support for AGP `8.0.2` and above
|
|
229
|
+
- Upgrade Kotlin Version to 1.7.10
|
|
193
230
|
- iOS
|
|
194
|
-
|
|
231
|
+
- MoEngage-iOS-SDK version updated to `~>9.13.0`.
|
|
195
232
|
|
|
196
233
|
# 30-10-2023
|
|
197
234
|
|
|
198
235
|
## 8.5.4
|
|
236
|
+
|
|
199
237
|
- Android
|
|
200
238
|
- BugFix
|
|
201
239
|
- MoEngage SDK throwing incompatible version error on app open
|
|
@@ -203,12 +241,14 @@
|
|
|
203
241
|
# 31-08-2023
|
|
204
242
|
|
|
205
243
|
## 8.5.3
|
|
244
|
+
|
|
206
245
|
- iOS
|
|
207
|
-
|
|
208
|
-
|
|
246
|
+
- MoEngage-iOS-SDK version updated to `~>9.11.0`.
|
|
247
|
+
|
|
209
248
|
# 17-08-2023
|
|
210
249
|
|
|
211
250
|
## 8.5.2
|
|
251
|
+
|
|
212
252
|
- Android
|
|
213
253
|
- BugFix
|
|
214
254
|
- MoEngageLogLevel throwing undefined property
|
|
@@ -217,31 +257,36 @@
|
|
|
217
257
|
# 18-07-2023
|
|
218
258
|
|
|
219
259
|
## 8.5.1
|
|
260
|
+
|
|
220
261
|
- Adding Strict TypeCheck For TypeScript files
|
|
221
262
|
- Support for configuring the React-Native Plugin console logs
|
|
222
263
|
|
|
223
264
|
- iOS
|
|
224
|
-
|
|
265
|
+
- MoEngage-iOS-SDK version updated to `~>9.10.0`.
|
|
266
|
+
|
|
225
267
|
# 25-05-2023
|
|
226
268
|
|
|
227
269
|
## 8.5.0
|
|
270
|
+
|
|
228
271
|
- Android
|
|
229
272
|
- Support for handling Foreground Push Notification Click
|
|
230
273
|
- Target & Compile SDK version updated to 33
|
|
231
274
|
- BugFix
|
|
232
275
|
- Self handled InApps Callback fix in Event Triggered Campaign
|
|
233
276
|
- iOS
|
|
234
|
-
|
|
277
|
+
- MoEngage-iOS-SDK version updated to `~>9.8.0`.
|
|
235
278
|
|
|
236
279
|
# 16-02-2023
|
|
237
280
|
|
|
238
281
|
## 8.4.0
|
|
282
|
+
|
|
239
283
|
- iOS
|
|
240
|
-
|
|
241
|
-
|
|
284
|
+
- MoEngage-iOS-SDK version updated to `~>9.4.0`.
|
|
285
|
+
|
|
242
286
|
# 09-02-2023
|
|
243
287
|
|
|
244
288
|
## 8.3.0
|
|
289
|
+
|
|
245
290
|
- Android
|
|
246
291
|
- Android 13 push notification Opt-in with rationale via In-Apps
|
|
247
292
|
- Device Id enable / disable support
|
|
@@ -251,33 +296,39 @@
|
|
|
251
296
|
# 16-01-2023
|
|
252
297
|
|
|
253
298
|
## 8.2.0
|
|
299
|
+
|
|
254
300
|
- iOS
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
301
|
+
|
|
302
|
+
- MoEngage-iOS-SDK version updated to `~>9.2.0`.
|
|
303
|
+
- Updated API
|
|
304
|
+
|
|
305
|
+
| Then | Now |
|
|
306
|
+
| :--------------------------------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
|
307
|
+
| - (void)initializeDefaultSDKConfig:(MOSDKConfig*)sdkConfig andLaunchOptions:(NSDictionary*)launchOptions; | -(void)initializeDefaultSDKConfig:(MoEngageSDKConfig*)sdkConfig andLaunchOptions:(NSDictionary*)launchOptions; |
|
|
308
|
+
| - (void)initializeDefaultSDKConfigWithState:(MOSDKConfig*)sdkConfig withSDKState:(MoEngageSDKState)sdkState andLaunchOptions:(NSDictionary*)launchOptions; | - (void)initializeDefaultSDKConfigWithState:(MoEngageSDKConfig*)sdkConfig withSDKState:(MoEngageSDKState)sdkState andLaunchOptions:(NSDictionary*)launchOptions; |
|
|
309
|
+
|
|
263
310
|
# 21-11-2022
|
|
264
311
|
|
|
265
312
|
## 8.1.2
|
|
313
|
+
|
|
266
314
|
- iOS
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
315
|
+
- BugFix
|
|
316
|
+
- Updated the import statement to make the plugin compatible with C++ codebase.
|
|
317
|
+
|
|
270
318
|
# 09-11-2022
|
|
271
319
|
|
|
272
320
|
## 8.1.1
|
|
321
|
+
|
|
273
322
|
- iOS
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
323
|
+
- BugFix
|
|
324
|
+
- Added missing `MoEngageRichNotification` dependency to the plugin.
|
|
325
|
+
|
|
277
326
|
# 28-10-2022
|
|
278
327
|
|
|
279
328
|
## 8.1.0
|
|
329
|
+
|
|
280
330
|
- Android
|
|
331
|
+
|
|
281
332
|
- AGP version updated to `7.3.1`
|
|
282
333
|
- Gradle version updated to `7.4`
|
|
283
334
|
- Target SDK version - 31
|
|
@@ -286,16 +337,17 @@
|
|
|
286
337
|
- InApp `6.4.0`
|
|
287
338
|
|
|
288
339
|
- iOS
|
|
289
|
-
|
|
340
|
+
- Deprecated API
|
|
290
341
|
|
|
291
|
-
|
|
|
292
|
-
|
|
293
|
-
|
|
|
342
|
+
| Then | Now |
|
|
343
|
+
| :--------------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
|
344
|
+
| - (void)initializeDefaultInstance:(BOOL)isSdkEnabled andLaunchOptions:(NSDictionary\*)launchOptions | - (void)initializeDefaultInstanceWithState:(MoEngageSDKState)sdkState andLaunchOptions:(NSDictionary\*)launchOptions; |
|
|
294
345
|
| - (void)initializeDefaultSDKConfig:(MOSDKConfig*)sdkConfig withSDKState:(BOOL)isSdkEnabled andLaunchOptions:(NSDictionary*)launchOptions | - (void)initializeDefaultSDKConfigWithState:(MOSDKConfig*)sdkConfig withSDKState:(MoEngageSDKState)sdkState andLaunchOptions:(NSDictionary*)launchOptions; |
|
|
295
346
|
|
|
296
347
|
## 27-10-2022
|
|
297
348
|
|
|
298
349
|
### 8.0.0
|
|
350
|
+
|
|
299
351
|
- Support for Android SDK version `12.3.02` and above.
|
|
300
352
|
- Support for iOS SDK version `8.3.1` and above.
|
|
301
353
|
- TS Lint warnings resolved.
|
|
@@ -308,20 +360,20 @@
|
|
|
308
360
|
- `MoEPushCampaign` --> `MoEPushPayload`
|
|
309
361
|
- Breaking APIs in Javascript
|
|
310
362
|
|
|
311
|
-
|
|
|
312
|
-
|
|
363
|
+
| Then | Now |
|
|
364
|
+
| :----------: | :---------------: |
|
|
313
365
|
| initialize() | initialize(appId) |
|
|
314
366
|
|
|
315
367
|
- Removed APIs
|
|
316
368
|
|
|
317
|
-
|
|
|
318
|
-
|
|
369
|
+
| Removed APIs |
|
|
370
|
+
| :-------------------------: |
|
|
319
371
|
| selfHandledPrimaryClicked() |
|
|
320
|
-
|
|
|
321
|
-
|
|
|
322
|
-
|
|
|
372
|
+
| enableSDKLogs() |
|
|
373
|
+
| optOutInAppNotification() |
|
|
374
|
+
| optOutPushNotification() |
|
|
323
375
|
|
|
324
|
-
- Android
|
|
376
|
+
- Android
|
|
325
377
|
- Build Configuration Updates
|
|
326
378
|
- Minimum SDK version - 21
|
|
327
379
|
- Target SDK version - 30
|
|
@@ -329,140 +381,170 @@
|
|
|
329
381
|
- Mi SDK update to Version 5.x.x, refer to the [Configuring Xiaomi Push](https://developers.moengage.com/hc/en-us/articles/4403466194708) and update the integration.
|
|
330
382
|
- Deprecated APIs
|
|
331
383
|
|
|
332
|
-
|
|
|
333
|
-
|
|
334
|
-
|
|
|
384
|
+
| Then | Now |
|
|
385
|
+
| :------------------------------------------------------------: | :---------------------------------------------------------------------------: |
|
|
386
|
+
| MoEInitializer.initialize(Context, MoEngage.Builder) | MoEInitializer.initializeDefaultInstance(Context, MoEngage.Builder) |
|
|
335
387
|
| MoEInitializer.initialize(Context, MoEngage.Builder, SdkState) | MoEInitializer.initializeDefaultInstance(Context, MoEngage.Builder, SdkState) |
|
|
336
388
|
|
|
337
389
|
- iOS
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
| Then | Now |
|
|
342
|
-
|:-------------------------------------------------------------------------------------------------------------------------------------:|:-----------------------------------------------------------------------------------------------------------------------------------------:|
|
|
343
|
-
| - (void)intializeSDKWithLaunchOptions:(NSDictionary*)launchOptions; | - (void)initializeDefaultInstance:(NSDictionary*)launchOptions; |
|
|
344
|
-
| - (void)intializeSDKWithState:(BOOL)isSdkEnabled andLaunchOptions:(NSDictionary*)launchOptions; | - (void)initializeDefaultInstance:(BOOL)isSdkEnabled andLaunchOptions:(NSDictionary*)launchOptions; |
|
|
345
|
-
| - (void)intializeSDKWithConfig:(MOSDKConfig*)sdkConfig andLaunchOptions:(NSDictionary*)launchOptions; | - (void)initializeDefaultSDKConfig:(MOSDKConfig*)sdkConfig andLaunchOptions:(NSDictionary*)launchOptions; |
|
|
346
|
-
| - (void)intializeSDKWithConfig:(MOSDKConfig*)sdkConfig withSDKState:(BOOL)isSdkEnabled andLaunchOptions:(NSDictionary*)launchOptions; | - (void)initializeDefaultSDKConfig:(MOSDKConfig*)sdkConfig withSDKState:(BOOL)isSdkEnabled andLaunchOptions:(NSDictionary*)launchOptions; |
|
|
390
|
+
- `MOReactInitializer` renamed to `MoEngageInitializer`
|
|
391
|
+
- Deprecated APIs
|
|
347
392
|
|
|
393
|
+
| Then | Now |
|
|
394
|
+
| :-----------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------: |
|
|
395
|
+
| - (void)intializeSDKWithLaunchOptions:(NSDictionary\*)launchOptions; | - (void)initializeDefaultInstance:(NSDictionary\*)launchOptions; |
|
|
396
|
+
| - (void)intializeSDKWithState:(BOOL)isSdkEnabled andLaunchOptions:(NSDictionary\*)launchOptions; | - (void)initializeDefaultInstance:(BOOL)isSdkEnabled andLaunchOptions:(NSDictionary\*)launchOptions; |
|
|
397
|
+
| - (void)intializeSDKWithConfig:(MOSDKConfig*)sdkConfig andLaunchOptions:(NSDictionary*)launchOptions; | - (void)initializeDefaultSDKConfig:(MOSDKConfig*)sdkConfig andLaunchOptions:(NSDictionary*)launchOptions; |
|
|
398
|
+
| - (void)intializeSDKWithConfig:(MOSDKConfig*)sdkConfig withSDKState:(BOOL)isSdkEnabled andLaunchOptions:(NSDictionary*)launchOptions; | - (void)initializeDefaultSDKConfig:(MOSDKConfig*)sdkConfig withSDKState:(BOOL)isSdkEnabled andLaunchOptions:(NSDictionary*)launchOptions; |
|
|
348
399
|
|
|
349
400
|
### 7.4.1
|
|
401
|
+
|
|
350
402
|
Release Date: 15th July 2022
|
|
403
|
+
|
|
351
404
|
- Device identifier tracking update as per Google's User data policy. Advertising Id is only tracked after user consent.
|
|
352
405
|
|
|
353
406
|
### 7.4.0
|
|
407
|
+
|
|
354
408
|
Release Date: 12th May 2022
|
|
409
|
+
|
|
355
410
|
- Bugfix iOS: Fixed the PushClick callback issue in terminated state, that was appearing when the react-native version is above 0.65.
|
|
356
|
-
|
|
411
|
+
|
|
357
412
|
### 7.3.0
|
|
413
|
+
|
|
358
414
|
Release Date: 16th September 2021
|
|
415
|
+
|
|
359
416
|
- HTML InApp Support Added.
|
|
360
|
-
- Bugfix:
|
|
417
|
+
- Bugfix:
|
|
361
418
|
- Handled `trackEvent()` with null properties.
|
|
362
419
|
- iOS
|
|
363
|
-
|
|
364
|
-
|
|
420
|
+
- Native SDK version updated to `~>7.1.0`.
|
|
421
|
+
- Base plugin version dependency updated to `~>2.1.0`.
|
|
365
422
|
- Android
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
423
|
+
- Native SDK updated to support version `11.4.00` and above.
|
|
424
|
+
- Bugfix:
|
|
425
|
+
- `enableSDKLogs()` not working on Android.
|
|
426
|
+
|
|
370
427
|
### 7.2.0
|
|
428
|
+
|
|
371
429
|
Release Date: 11th May 2021
|
|
430
|
+
|
|
372
431
|
- Android Multi-Instance Phase 1 update.
|
|
373
432
|
|
|
374
433
|
### 7.1.0
|
|
434
|
+
|
|
375
435
|
Release Date: 17th March 2021
|
|
436
|
+
|
|
376
437
|
- Added support to pass Array(String/Number) as event attributes in addAttribute method of MoEProperties.
|
|
377
438
|
|
|
378
439
|
### 7.0.0
|
|
440
|
+
|
|
379
441
|
Release Date: 25th February 2021
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
442
|
+
|
|
443
|
+
- iOS
|
|
444
|
+
- Plugin now supports iOS 10.0 and above
|
|
445
|
+
- Native Dependencies updated to support MoEngage-iOS-SDK `7.*` and above
|
|
446
|
+
- Base plugin version dependency updated to `~> 2.0.2`.
|
|
447
|
+
- Android
|
|
448
|
+
- Native SDK updated to support `11.0.04` and above
|
|
449
|
+
- Base Plugin updated to `2.0.00`
|
|
450
|
+
- API to pass PushKit Token JS
|
|
388
451
|
- Added APIs to enable and disable MoEngage SDK.
|
|
389
452
|
- Added API to register a callback for push token generated event.
|
|
390
453
|
|
|
391
454
|
### 6.1.7
|
|
455
|
+
|
|
392
456
|
Release Date: 15th February 2021
|
|
457
|
+
|
|
393
458
|
- Android artifacts use manven central instead of Jcenter.
|
|
394
459
|
- Android Native SDK version `10.6.01`
|
|
395
460
|
- Android Plugin Base `1.2.01`
|
|
396
461
|
|
|
397
462
|
### 6.1.6
|
|
463
|
+
|
|
398
464
|
Release Date: 21st January 2021
|
|
465
|
+
|
|
399
466
|
- BugFix iOS: Token registered event skipped as its currently not supported in React Native.
|
|
400
467
|
|
|
401
468
|
### 6.1.5
|
|
469
|
+
|
|
402
470
|
Release Date: 18th January 2021
|
|
471
|
+
|
|
403
472
|
- iOS Base Plugin dependency updated to support version `1.2` and above.
|
|
404
473
|
|
|
405
474
|
### 6.1.4
|
|
475
|
+
|
|
406
476
|
Release Date: 7th December 2020
|
|
477
|
+
|
|
407
478
|
- Support for extending Native Android Callbacks if required.
|
|
408
479
|
- Native Android SDK version required is `10.5.00` or above.
|
|
409
480
|
- iOS Base Plugin Updated to version `1.1.1` to ensure SDK sets the UNUserNotification Center delegate only in cases where its `nil`.
|
|
410
481
|
|
|
411
482
|
### 6.1.3
|
|
483
|
+
|
|
412
484
|
Release Date: 25th November 2020
|
|
485
|
+
|
|
413
486
|
- Android Base plugin dependency type updated to ensure compatability across gradle versions.
|
|
414
487
|
|
|
415
488
|
### 6.1.2
|
|
489
|
+
|
|
416
490
|
Release Date: 23rd November 2020
|
|
491
|
+
|
|
417
492
|
- Android Base Plugin Updated to enable Custom Callbacks.
|
|
418
493
|
|
|
419
494
|
### 6.1.1
|
|
495
|
+
|
|
420
496
|
Release Date: 22nd October 2020
|
|
497
|
+
|
|
421
498
|
- Bugfix
|
|
422
499
|
- Events not being marked as non-interactive on Android
|
|
423
|
-
|
|
500
|
+
|
|
424
501
|
### 6.1.0
|
|
502
|
+
|
|
425
503
|
Release Date: 23rd September, 2020
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
504
|
+
|
|
505
|
+
- Support for Push Templates added
|
|
506
|
+
|
|
507
|
+
### 6.0.0
|
|
508
|
+
|
|
509
|
+
Release Date: 7th August 2020
|
|
510
|
+
|
|
511
|
+
- Breaking change in Initialization of iOS platform, refer to the [developer docs](https://docs.moengage.com/docs/sdk-initialization-1#ios) to know more about the changes.
|
|
512
|
+
- Support for Self-Handled In-App
|
|
513
|
+
- Support for In-App V3
|
|
514
|
+
- Event listeners now return a model Object instead of JSON
|
|
515
|
+
- `setUserBirthday()` only accepts ISO-8601 String
|
|
516
|
+
- Breaking changes in APIs
|
|
517
|
+
- Android SDK updated to `10.2.02`
|
|
518
|
+
- iOS SDK dependency changed to support versions greater than `6.0.0`.
|
|
519
|
+
|
|
520
|
+
| Then | Now |
|
|
521
|
+
| :-------------------------------------------------------: | :-------------------------------------------------------: |
|
|
522
|
+
| ReactMoE.isExistingUser(boolean) | ReactMoE.setAppStatus(MoEAppStatus) |
|
|
442
523
|
| ReactMoE.trackEvent(string, JSONObject) | ReactMoE.trackEvent(string, MoEProperties |
|
|
443
|
-
|
|
|
524
|
+
| ReactMoE.setUserLocation(number, number) | ReactMoE.setUserLocation(MoEGeoLocation) |
|
|
444
525
|
| ReactMoE.setUserAttributeLocation(string, number, number) | ReactMoE.setUserAttributeLocation(string, MoEGeoLocation) |
|
|
445
|
-
|
|
|
526
|
+
| ReactMoE.setLogLevel(number) | ReactMoE.enableSDKLogs() |
|
|
446
527
|
|
|
447
|
-
|
|
448
|
-
|
|
528
|
+
- Android Specific Changes
|
|
529
|
+
- APIs to pass push token and payload has changed
|
|
449
530
|
|
|
450
531
|
| Then | Now |
|
|
451
|
-
|
|
532
|
+
| :----------------------------------: | :-------------------------------------: |
|
|
452
533
|
| ReactMoE.passPushToken(string) | ReactMoE.passFcmPushToken(string) |
|
|
453
534
|
| ReactMoE.passPushPayload(JSONObject) | ReactMoE.passFcmPushPayload(JSONObject) |
|
|
454
|
-
|
|
455
|
-
### 5.0.0
|
|
456
|
-
Release Date: 18th Feb 2020
|
|
457
|
-
- New Event Listeners added for both iOS and Android platforms i.e, `pushClicked`, `inAppCampaignShown` and `inAppCampaignShown`.
|
|
458
|
-
- Earlier iOS Push and InApp Events deprecated to have it common for both Android and iOS (`notificationClicked`,`inAppShown` and `inAppClicked`)
|
|
459
|
-
- APIs to pass push token and payload from React-Native Component/Javascript (Android Only API)
|
|
460
|
-
- Fixing datatype conversion for user attributes long getting converted to double.
|
|
461
535
|
|
|
462
|
-
###
|
|
463
|
-
Release Date: 23rd Dec 2019
|
|
464
|
-
- Android SDK version updated to 9.8.01
|
|
465
|
-
- integration_type and integration_version added for both Android and iOS
|
|
536
|
+
### 5.0.0
|
|
466
537
|
|
|
538
|
+
Release Date: 18th Feb 2020
|
|
539
|
+
|
|
540
|
+
- New Event Listeners added for both iOS and Android platforms i.e, `pushClicked`, `inAppCampaignShown` and `inAppCampaignShown`.
|
|
541
|
+
- Earlier iOS Push and InApp Events deprecated to have it common for both Android and iOS (`notificationClicked`,`inAppShown` and `inAppClicked`)
|
|
542
|
+
- APIs to pass push token and payload from React-Native Component/Javascript (Android Only API)
|
|
543
|
+
- Fixing datatype conversion for user attributes long getting converted to double.
|
|
544
|
+
|
|
545
|
+
### 4.1.0
|
|
467
546
|
|
|
547
|
+
Release Date: 23rd Dec 2019
|
|
468
548
|
|
|
549
|
+
- Android SDK version updated to 9.8.01
|
|
550
|
+
- integration_type and integration_version added for both Android and iOS
|
|
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
|
|
|
17
17
|
s.public_header_files = 'iOS/MoEReactBridge/{MoEngageInitializer,MoEngageReactSDKInitializationConfig,MoEngageReactUtils}.h'
|
|
18
18
|
s.weak_framework = 'UserNotifications'
|
|
19
19
|
s.dependency 'React'
|
|
20
|
-
s.dependency 'MoEngagePluginBase','6.
|
|
20
|
+
s.dependency 'MoEngagePluginBase','6.4.0'
|
|
21
21
|
s.ios.dependency 'MoEngage-iOS-SDK/RichNotification'
|
|
22
22
|
|
|
23
23
|
s.prepare_command = <<-CMD
|
package/android/build.gradle
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
buildscript {
|
|
2
2
|
ext.kotlinVersion = '1.9.23'
|
|
3
|
+
|
|
3
4
|
repositories {
|
|
4
5
|
google()
|
|
5
6
|
mavenCentral()
|
|
@@ -19,11 +20,6 @@ rootProject.allprojects {
|
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
ext {
|
|
22
|
-
//dependency version
|
|
23
|
-
moengageCoreVersion = "14.03.00"
|
|
24
|
-
moengageInAppVersion = "9.2.0"
|
|
25
|
-
basePluginVersion = "5.1.0"
|
|
26
|
-
//build versions
|
|
27
23
|
minimumVersion = 23
|
|
28
24
|
compileVersion = 35
|
|
29
25
|
}
|
|
@@ -80,17 +76,10 @@ dependencies {
|
|
|
80
76
|
|
|
81
77
|
compileOnly('com.facebook.react:react-native')
|
|
82
78
|
compileOnly("org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion")
|
|
83
|
-
|
|
84
|
-
api("com.moengage:moe-android-sdk:$moengageCoreVersion")
|
|
85
|
-
api("com.moengage:inapp:$moengageInAppVersion")
|
|
86
|
-
api("com.moengage:plugin-base:$basePluginVersion")
|
|
87
79
|
}
|
|
88
80
|
|
|
89
81
|
apply from: file("./user-agent.gradle")
|
|
90
|
-
|
|
91
|
-
repositories {
|
|
92
|
-
mavenCentral()
|
|
93
|
-
}
|
|
82
|
+
apply from: file("./moengage-dependency-helper.gradle")
|
|
94
83
|
|
|
95
84
|
def isNewArchitectureEnabled() {
|
|
96
85
|
return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true"
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import groovy.json.JsonSlurper
|
|
2
|
+
|
|
3
|
+
repositories {
|
|
4
|
+
google()
|
|
5
|
+
mavenCentral()
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
ext {
|
|
9
|
+
// MoEngage Versions
|
|
10
|
+
moengageCoreVersion = "14.03.03"
|
|
11
|
+
moengageInAppVersion = "9.2.0"
|
|
12
|
+
moengageRichNotification = "6.2.0"
|
|
13
|
+
moengageSecurity = "4.0.0"
|
|
14
|
+
moengageEncryptedStorage = "3.0.0"
|
|
15
|
+
moengagePushAmp = "6.1.0"
|
|
16
|
+
moengageHmsPushkit = "6.1.0"
|
|
17
|
+
moengageDeviceTrigger = "4.1.0"
|
|
18
|
+
moengageBasePluginVersion = "5.1.1"
|
|
19
|
+
|
|
20
|
+
// AndroidX Support Libraries Versions
|
|
21
|
+
androidXCore = "1.15.0"
|
|
22
|
+
androidXCompact = "1.7.0"
|
|
23
|
+
androidXLifecycle = "2.8.7"
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
dependencies {
|
|
27
|
+
api("com.moengage:moe-android-sdk:$moengageCoreVersion")
|
|
28
|
+
api("com.moengage:inapp:$moengageInAppVersion")
|
|
29
|
+
api("com.moengage:plugin-base:$moengageBasePluginVersion")
|
|
30
|
+
|
|
31
|
+
if (shouldIncludeModule("richNotification")) {
|
|
32
|
+
api("com.moengage:rich-notification:$moengageRichNotification")
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if (shouldIncludeModule("encryption")) {
|
|
36
|
+
api("com.moengage:security:$moengageSecurity")
|
|
37
|
+
api("com.moengage:encrypted-storage:$moengageEncryptedStorage")
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
if (shouldIncludeModule("pushAmp")) {
|
|
41
|
+
api("com.moengage:push-amp:$moengagePushAmp")
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
if (shouldIncludeModule("hmsPushkit")) {
|
|
45
|
+
api("com.moengage:hms-pushkit:$moengageHmsPushkit")
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
if (shouldIncludeModule("deviceTrigger")) {
|
|
49
|
+
api("com.moengage:realtime-trigger:$moengageDeviceTrigger")
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
if (shouldIncludeModule("includeAndroidXRequiredLibraries")) {
|
|
53
|
+
api("androidx.core:core:$androidXCore")
|
|
54
|
+
api("androidx.appcompat:appcompat:$androidXCompact")
|
|
55
|
+
api("androidx.lifecycle:lifecycle-process:$androidXLifecycle")
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
def shouldIncludeModule(String moduleName) {
|
|
60
|
+
try {
|
|
61
|
+
File packageJsonFile = new File("$rootDir/../package.json")
|
|
62
|
+
def packageJson = new JsonSlurper().parseText(packageJsonFile.text)
|
|
63
|
+
def moengageJson = packageJson["moengage"]
|
|
64
|
+
if (moengageJson != null) {
|
|
65
|
+
return moengageJson[moduleName] == true
|
|
66
|
+
}
|
|
67
|
+
println("MoEngage modules not configured in package json")
|
|
68
|
+
} catch(FileNotFoundException exception) {
|
|
69
|
+
println("Default package json file not found")
|
|
70
|
+
}
|
|
71
|
+
return false
|
|
72
|
+
}
|
|
@@ -49,6 +49,9 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
49
49
|
/// Initialize Default Instance of SDK with Application's `Info.plist` data with optional react config.
|
|
50
50
|
/// @param ractConfig Additional MoEngageReactSDKDefaultInitializationConfig.
|
|
51
51
|
- (void)initializeDefaultInstanceWithAdditionalReactConfig:(MoEngageReactSDKDefaultInitializationConfig*)ractConfig;
|
|
52
|
+
|
|
53
|
+
/// Intenal method, not for public use.
|
|
54
|
+
- (void)setPluginBridgeDelegate: (NSString*)identifier;
|
|
52
55
|
@end
|
|
53
56
|
|
|
54
57
|
NS_ASSUME_NONNULL_END
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-moengage",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.2.0",
|
|
4
4
|
"description": "MoEngage is a mobile marketing automation company. This react-native SDK helps you track events, trigger smart notifications and in-apps, provides a drop-in Inbox Controller for notifications.",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"files": [
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
"events"
|
|
25
25
|
],
|
|
26
26
|
"scripts": {
|
|
27
|
-
"test": "jest"
|
|
27
|
+
"test": "jest",
|
|
28
|
+
"build": "echo \"Not required\" && exit 0"
|
|
28
29
|
},
|
|
29
30
|
"author": {
|
|
30
31
|
"name": "MoEngage",
|
package/src/index.ts
CHANGED
|
@@ -63,6 +63,7 @@ import * as MoECoreHandler from "./utils/MoECoreHandler";
|
|
|
63
63
|
import MoEAccessibilityData from "./models/campaignsCore/MoEAccessibilityData";
|
|
64
64
|
import { KEY_ACCESSIBILITY } from "./utils/MoEConstants";
|
|
65
65
|
|
|
66
|
+
import MoEngagePersimissionResultData from "./models/MoEngagePersimissionResultData";
|
|
66
67
|
|
|
67
68
|
const PLATFORM_IOS = "ios";
|
|
68
69
|
const PLATFORM_ANDROID = "android";
|
|
@@ -134,8 +135,14 @@ function handleEventBroadcast(type: string | String, broadcast: string) {
|
|
|
134
135
|
});
|
|
135
136
|
}
|
|
136
137
|
|
|
137
|
-
export type NotificationEventName = 'pushTokenGenerated' |
|
|
138
|
-
|
|
138
|
+
export type NotificationEventName = 'pushTokenGenerated' |
|
|
139
|
+
'pushClicked' |
|
|
140
|
+
'inAppCampaignShown' |
|
|
141
|
+
'inAppCampaignClicked' |
|
|
142
|
+
'inAppCampaignDismissed' |
|
|
143
|
+
'inAppCampaignCustomAction' |
|
|
144
|
+
'inAppCampaignSelfHandled' |
|
|
145
|
+
'permissionResult';
|
|
139
146
|
|
|
140
147
|
type NotificationEventTypeMap = {
|
|
141
148
|
"pushTokenGenerated": MoEPushToken,
|
|
@@ -144,7 +151,8 @@ type NotificationEventTypeMap = {
|
|
|
144
151
|
"inAppCampaignClicked": MoEInAppData,
|
|
145
152
|
"inAppCampaignDismissed": MoEInAppData,
|
|
146
153
|
"inAppCampaignCustomAction": MoEInAppData,
|
|
147
|
-
"inAppCampaignSelfHandled": MoESelfHandledCampaignData
|
|
154
|
+
"inAppCampaignSelfHandled": MoESelfHandledCampaignData,
|
|
155
|
+
"permissionResult": MoEngagePersimissionResultData
|
|
148
156
|
}
|
|
149
157
|
|
|
150
158
|
var ReactMoE = {
|