react-native-insider 7.1.0 → 8.0.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/index.js CHANGED
@@ -1,9 +1,11 @@
1
1
  import { Platform, NativeModules, NativeEventEmitter } from 'react-native';
2
2
 
3
- import { shouldNotProceed, generateJSONErrorString, checkParameters, showParameterWarningLog, parseObjectWithTypes } from './src/Util';
3
+ import { shouldNotProceed, generateJSONErrorString, checkParameters, showParameterWarningLog, parseObjectWithTypes, isPlainObject } from './src/Util';
4
4
  import RNInsiderEvent from './src/InsiderEvent';
5
5
  import RNInsiderUser from './src/InsiderUser';
6
6
  import RNInsiderProduct from './src/InsiderProduct';
7
+ import RNInsiderAppCards from './src/InsiderAppCards';
8
+ import { InsiderAppCardsError, InsiderAppCardsErrorCode } from './src/InsiderAppCardsError';
7
9
  import CloseButtonPosition from './src/CloseButtonPosition';
8
10
 
9
11
  var packageJSON = require('./package.json');
@@ -24,8 +26,8 @@ const INSIDER_ID_LISTENER = 'INSIDER_ID_LISTENER';
24
26
  const SESSION_STARTED = 'SESSION_STARTED';
25
27
 
26
28
  const platformType = {
27
- ios: "ios",
28
- android: "android"
29
+ ios: "ios",
30
+ android: "android"
29
31
  }
30
32
 
31
33
  function registerInsiderCallback(insiderCallback) {
@@ -41,8 +43,12 @@ function registerInsiderCallback(insiderCallback) {
41
43
  }
42
44
  }
43
45
 
46
+ export { InsiderAppCardsError, InsiderAppCardsErrorCode };
47
+
44
48
  export default class RNInsider {
45
49
  static closeButtonPosition = CloseButtonPosition;
50
+ static AppCardsError = InsiderAppCardsError;
51
+ static AppCardsErrorCode = InsiderAppCardsErrorCode;
46
52
 
47
53
  static init(partnerName, appGroup, insiderCallback) {
48
54
  if (shouldNotProceed()) return;
@@ -82,7 +88,7 @@ export default class RNInsider {
82
88
  { type: 'function', value: insiderCallback }
83
89
  ]);
84
90
  return;
85
- } try {
91
+ } try {
86
92
  registerInsiderCallback(insiderCallback);
87
93
  let sdkVersion = 'RN-' + packageJSON.version;
88
94
  if (Platform.OS === platformType.ios) {
@@ -123,6 +129,11 @@ export default class RNInsider {
123
129
  return InsiderUser;
124
130
  }
125
131
 
132
+ static get appCards() {
133
+ if (shouldNotProceed()) return;
134
+ return RNInsiderAppCards;
135
+ }
136
+
126
137
  static setGDPRConsent(gdprConsent) {
127
138
  if (shouldNotProceed()) return;
128
139
  if (checkParameters([{ type: 'boolean', value: gdprConsent }])) {
@@ -208,15 +219,24 @@ export default class RNInsider {
208
219
  }
209
220
  }
210
221
 
211
- static itemRemovedFromCart(productID, customParameters) {
222
+ static itemRemovedFromCart(productID, saleIDOrCustomParameters, customParameters) {
212
223
  if (shouldNotProceed()) return;
213
224
  if (checkParameters([{ type: 'string', value: productID }])) {
214
225
  showParameterWarningLog("itemRemovedFromCart", [{ type: 'string', value: productID }]);
215
226
  return;
216
227
  }
217
228
  try {
218
- const mappedCustomParameters = parseObjectWithTypes(customParameters);
219
- Insider.itemRemovedFromCart(productID, mappedCustomParameters);
229
+ let resolvedSaleID = null;
230
+ let resolvedCustomParameters = customParameters;
231
+
232
+ if (typeof saleIDOrCustomParameters === 'string') {
233
+ resolvedSaleID = saleIDOrCustomParameters;
234
+ } else if (isPlainObject(saleIDOrCustomParameters)) {
235
+ resolvedCustomParameters = saleIDOrCustomParameters;
236
+ }
237
+
238
+ const mappedCustomParameters = parseObjectWithTypes(resolvedCustomParameters);
239
+ Insider.itemRemovedFromCart(productID, resolvedSaleID, mappedCustomParameters);
220
240
  } catch (error) {
221
241
  Insider.putErrorLog(generateJSONErrorString(error));
222
242
  }
@@ -263,18 +283,54 @@ export default class RNInsider {
263
283
  }
264
284
 
265
285
  // Message Center & Smart Recommendation
266
- static getMessageCenterData(limit, startDate, endDate, callback) {
286
+ static getMessageCenterData(limit, startDate, endDate, callback) {
287
+ if (shouldNotProceed()) return;
288
+ if (checkParameters([
289
+ { type: 'number', value: limit },
290
+ { type: 'object', value: startDate },
291
+ { type: 'object', value: endDate },
292
+ { type: 'function', value: callback }
293
+ ])) {
294
+ showParameterWarningLog("getMessageCenterData", [
295
+ { type: 'number', value: limit },
296
+ { type: 'object', value: startDate },
297
+ { type: 'object', value: endDate },
298
+ { type: 'function', value: callback }
299
+ ]);
300
+ return;
301
+ }
302
+ const startDateEpoch = startDate.getTime();
303
+ const endDateEpoch = endDate.getTime();
304
+ if (startDateEpoch >= endDateEpoch) return;
305
+
306
+ try {
307
+ // Passing timestamps as string because React Native's bridge doesn't support long values.
308
+ Insider.getMessageCenterData(limit, startDateEpoch.toString(), endDateEpoch.toString(), (messageCenterData) => {
309
+ if (Platform.OS !== platformType.ios) {
310
+ callback(messageCenterData);
311
+ return;
312
+ }
313
+ callback(messageCenterData.data);
314
+ });
315
+ } catch (error) {
316
+ Insider.putErrorLog(generateJSONErrorString(error));
317
+ }
318
+ }
319
+
320
+ static getMessageCenterDataWithIdentifiers(limit, startDate, endDate, identifiers, callback) {
267
321
  if (shouldNotProceed()) return;
268
322
  if (checkParameters([
269
323
  {type: 'number', value: limit},
270
324
  {type: 'object', value: startDate},
271
325
  {type: 'object', value: endDate},
326
+ {type: 'object', value: identifiers},
272
327
  {type: 'function', value: callback}
273
328
  ])) {
274
- showParameterWarningLog("getMessageCenterData", [
329
+ showParameterWarningLog("getMessageCenterDataWithIdentifiers", [
275
330
  {type: 'number', value: limit},
276
331
  {type: 'object', value: startDate},
277
332
  {type: 'object', value: endDate},
333
+ {type: 'object', value: identifiers},
278
334
  {type: 'function', value: callback}
279
335
  ]);
280
336
  return;
@@ -285,12 +341,8 @@ export default class RNInsider {
285
341
 
286
342
  try {
287
343
  // Passing timestamps as string because React Native's bridge doesn't support long values.
288
- Insider.getMessageCenterData(limit, startDateEpoch.toString(), endDateEpoch.toString(), (messageCenterData) => {
289
- if (Platform.OS !== platformType.ios) {
290
- callback(messageCenterData);
291
- return;
292
- }
293
- callback(messageCenterData.data);
344
+ Insider.getMessageCenterDataWithIdentifiers(limit, startDateEpoch.toString(), endDateEpoch.toString(), identifiers.identifiers, (messageCenterData) => {
345
+ callback(messageCenterData);
294
346
  });
295
347
  } catch (error) {
296
348
  Insider.putErrorLog(generateJSONErrorString(error));
@@ -300,18 +352,18 @@ export default class RNInsider {
300
352
  static getSmartRecommendation(recommendationID, locale, currency, callback) {
301
353
  if (shouldNotProceed()) return;
302
354
  if (checkParameters([
355
+ { type: 'number', value: recommendationID },
356
+ { type: 'string', value: locale },
357
+ { type: 'string', value: currency },
358
+ { type: 'function', value: callback }
359
+ ])) {
360
+ showParameterWarningLog("getSmartRecommendation", [
303
361
  { type: 'number', value: recommendationID },
304
362
  { type: 'string', value: locale },
305
363
  { type: 'string', value: currency },
306
364
  { type: 'function', value: callback }
307
- ])) {
308
- showParameterWarningLog("getSmartRecommendation", [
309
- { type: 'number', value: recommendationID },
310
- { type: 'string', value: locale },
311
- { type: 'string', value: currency },
312
- { type: 'function', value: callback }
313
- ]);
314
- return;
365
+ ]);
366
+ return;
315
367
  }
316
368
  try {
317
369
  Insider.getSmartRecommendation(recommendationID, locale, currency, (recommendation) => {
@@ -325,18 +377,18 @@ export default class RNInsider {
325
377
  static getSmartRecommendationWithProduct(product, recommendationID, locale, callback) {
326
378
  if (shouldNotProceed()) return;
327
379
  if (checkParameters([
380
+ { type: 'object', value: product },
381
+ { type: 'number', value: recommendationID },
382
+ { type: 'string', value: locale },
383
+ { type: 'function', value: callback }
384
+ ])) {
385
+ showParameterWarningLog("getSmartRecommendationWithProduct", [
328
386
  { type: 'object', value: product },
329
387
  { type: 'number', value: recommendationID },
330
388
  { type: 'string', value: locale },
331
389
  { type: 'function', value: callback }
332
- ])) {
333
- showParameterWarningLog("getSmartRecommendationWithProduct", [
334
- { type: 'object', value: product },
335
- { type: 'number', value: recommendationID },
336
- { type: 'string', value: locale },
337
- { type: 'function', value: callback }
338
- ]);
339
- return;
390
+ ]);
391
+ return;
340
392
  }
341
393
  try {
342
394
  Insider.getSmartRecommendationWithProduct(product.requiredFields, product.optionalFields, product.customParameters, recommendationID, locale, (recommendation) => {
@@ -350,20 +402,20 @@ export default class RNInsider {
350
402
  static getSmartRecommendationWithProductIDs(productIDs, recommendationID, locale, currency, callback) {
351
403
  if (shouldNotProceed()) return;
352
404
  if (checkParameters([
405
+ { type: 'object', value: productIDs },
406
+ { type: 'number', value: recommendationID },
407
+ { type: 'string', value: locale },
408
+ { type: 'string', value: currency },
409
+ { type: 'function', value: callback }
410
+ ])) {
411
+ showParameterWarningLog("getSmartRecommendationWithProductIDs", [
353
412
  { type: 'object', value: productIDs },
354
413
  { type: 'number', value: recommendationID },
355
414
  { type: 'string', value: locale },
356
415
  { type: 'string', value: currency },
357
416
  { type: 'function', value: callback }
358
- ])) {
359
- showParameterWarningLog("getSmartRecommendationWithProductIDs", [
360
- { type: 'object', value: productIDs },
361
- { type: 'number', value: recommendationID },
362
- { type: 'string', value: locale },
363
- { type: 'string', value: currency },
364
- { type: 'function', value: callback }
365
- ]);
366
- return;
417
+ ]);
418
+ return;
367
419
  }
368
420
  try {
369
421
  productIDs = productIDs.filter(value => value != null && typeof value == "string" && value.trim());
@@ -379,14 +431,14 @@ export default class RNInsider {
379
431
  static clickSmartRecommendationProduct(recommendationID, product) {
380
432
  if (shouldNotProceed()) return;
381
433
  if (checkParameters([
434
+ { type: 'number', value: recommendationID },
435
+ { type: 'object', value: product }
436
+ ])) {
437
+ showParameterWarningLog("clickSmartRecommendationProduct", [
382
438
  { type: 'number', value: recommendationID },
383
439
  { type: 'object', value: product }
384
- ])) {
385
- showParameterWarningLog("clickSmartRecommendationProduct", [
386
- { type: 'number', value: recommendationID },
387
- { type: 'object', value: product }
388
- ]);
389
- return;
440
+ ]);
441
+ return;
390
442
  }
391
443
  try {
392
444
  Insider.clickSmartRecommendationProduct(recommendationID, product.requiredFields, product.optionalFields, product.customParameters);
@@ -399,18 +451,18 @@ export default class RNInsider {
399
451
  static getContentStringWithName(variableName, defaultValue, contentOptimizerDataType, callback) {
400
452
  if (shouldNotProceed()) return;
401
453
  if (checkParameters([
454
+ { type: 'string', value: variableName },
455
+ { type: 'string', value: defaultValue },
456
+ { type: 'number', value: contentOptimizerDataType },
457
+ { type: 'function', value: callback }
458
+ ])) {
459
+ showParameterWarningLog("getContentStringWithName", [
402
460
  { type: 'string', value: variableName },
403
461
  { type: 'string', value: defaultValue },
404
462
  { type: 'number', value: contentOptimizerDataType },
405
463
  { type: 'function', value: callback }
406
- ])) {
407
- showParameterWarningLog("getContentStringWithName", [
408
- { type: 'string', value: variableName },
409
- { type: 'string', value: defaultValue },
410
- { type: 'number', value: contentOptimizerDataType },
411
- { type: 'function', value: callback }
412
- ]);
413
- return;
464
+ ]);
465
+ return;
414
466
  }
415
467
  try {
416
468
  Insider.getContentStringWithName(variableName, defaultValue, contentOptimizerDataType, callback);
@@ -422,18 +474,18 @@ export default class RNInsider {
422
474
  static getContentBoolWithName(variableName, defaultValue, contentOptimizerDataType, callback) {
423
475
  if (shouldNotProceed()) return;
424
476
  if (checkParameters([
477
+ { type: 'string', value: variableName },
478
+ { type: 'boolean', value: defaultValue },
479
+ { type: 'number', value: contentOptimizerDataType },
480
+ { type: 'function', value: callback }
481
+ ])) {
482
+ showParameterWarningLog("getContentBoolWithName", [
425
483
  { type: 'string', value: variableName },
426
484
  { type: 'boolean', value: defaultValue },
427
485
  { type: 'number', value: contentOptimizerDataType },
428
486
  { type: 'function', value: callback }
429
- ])) {
430
- showParameterWarningLog("getContentBoolWithName", [
431
- { type: 'string', value: variableName },
432
- { type: 'boolean', value: defaultValue },
433
- { type: 'number', value: contentOptimizerDataType },
434
- { type: 'function', value: callback }
435
- ]);
436
- return;
487
+ ]);
488
+ return;
437
489
  }
438
490
  try {
439
491
  Insider.getContentBoolWithName(variableName, defaultValue, contentOptimizerDataType, callback);
@@ -445,18 +497,18 @@ export default class RNInsider {
445
497
  static getContentIntWithName(variableName, defaultValue, contentOptimizerDataType, callback) {
446
498
  if (shouldNotProceed()) return;
447
499
  if (checkParameters([
500
+ { type: 'string', value: variableName },
501
+ { type: 'number', value: defaultValue },
502
+ { type: 'number', value: contentOptimizerDataType },
503
+ { type: 'function', value: callback }
504
+ ])) {
505
+ showParameterWarningLog("getContentIntWithName", [
448
506
  { type: 'string', value: variableName },
449
507
  { type: 'number', value: defaultValue },
450
508
  { type: 'number', value: contentOptimizerDataType },
451
509
  { type: 'function', value: callback }
452
- ])) {
453
- showParameterWarningLog("getContentIntWithName", [
454
- { type: 'string', value: variableName },
455
- { type: 'number', value: defaultValue },
456
- { type: 'number', value: contentOptimizerDataType },
457
- { type: 'function', value: callback }
458
- ]);
459
- return;
510
+ ]);
511
+ return;
460
512
  }
461
513
  try {
462
514
  Insider.getContentIntWithName(variableName, defaultValue, contentOptimizerDataType, callback);
@@ -549,8 +601,8 @@ export default class RNInsider {
549
601
  static visitListingPage(taxonomy, customParameters) {
550
602
  if (shouldNotProceed()) return;
551
603
  if (checkParameters([{ type: 'object', value: taxonomy }])) {
552
- showParameterWarningLog("visitListingPage", [{ type: 'object', value: taxonomy }]);
553
- return;
604
+ showParameterWarningLog("visitListingPage", [{ type: 'object', value: taxonomy }]);
605
+ return;
554
606
  }
555
607
  try {
556
608
  const mappedCustomParameters = parseObjectWithTypes(customParameters);
@@ -563,8 +615,8 @@ export default class RNInsider {
563
615
  static visitProductDetailPage(product, customParameters) {
564
616
  if (shouldNotProceed()) return;
565
617
  if (checkParameters([{ type: 'object', value: product }])) {
566
- showParameterWarningLog("visitProductDetailPage", [{ type: 'object', value: product }]);
567
- return;
618
+ showParameterWarningLog("visitProductDetailPage", [{ type: 'object', value: product }]);
619
+ return;
568
620
  }
569
621
  try {
570
622
  const mappedCustomParameters = parseObjectWithTypes(customParameters);
@@ -574,20 +626,29 @@ export default class RNInsider {
574
626
  }
575
627
  }
576
628
 
577
- static visitCartPage(products, customParameters) {
629
+ static visitCartPage(products, saleIDOrCustomParameters, customParameters) {
578
630
  if (shouldNotProceed()) return;
579
631
  if (checkParameters([{ type: 'object', value: products }])) {
580
- showParameterWarningLog("visitCartPage", [{ type: 'object', value: products }]);
581
- return;
632
+ showParameterWarningLog("visitCartPage", [{ type: 'object', value: products }]);
633
+ return;
582
634
  }
583
635
  try {
636
+ let resolvedSaleID = null;
637
+ let resolvedCustomParameters = customParameters;
638
+
639
+ if (typeof saleIDOrCustomParameters === 'string') {
640
+ resolvedSaleID = saleIDOrCustomParameters;
641
+ } else if (isPlainObject(saleIDOrCustomParameters)) {
642
+ resolvedCustomParameters = saleIDOrCustomParameters;
643
+ }
644
+
584
645
  const mappedProducts = products.map(product => ({
585
646
  requiredFields: product.requiredFields,
586
647
  optionalFields: product.optionalFields,
587
648
  customParameters: product.customParameters
588
649
  }));
589
- const mappedCustomParameters = parseObjectWithTypes(customParameters);
590
- Insider.visitCartPage(mappedProducts, mappedCustomParameters);
650
+ const mappedCustomParameters = parseObjectWithTypes(resolvedCustomParameters);
651
+ Insider.visitCartPage(mappedProducts, resolvedSaleID, mappedCustomParameters);
591
652
  } catch (error) {
592
653
  Insider.putErrorLog(generateJSONErrorString(error));
593
654
  }
@@ -624,8 +685,8 @@ export default class RNInsider {
624
685
  static setAllowsBackgroundLocationUpdates(allowsBackgroundLocationUpdates) {
625
686
  if (shouldNotProceed()) return;
626
687
  if (checkParameters([{ type: 'boolean', value: allowsBackgroundLocationUpdates }])) {
627
- showParameterWarningLog("allowsBackgroundLocationUpdates", [{ type: 'boolean', value: allowsBackgroundLocationUpdates }]);
628
- return;
688
+ showParameterWarningLog("allowsBackgroundLocationUpdates", [{ type: 'boolean', value: allowsBackgroundLocationUpdates }]);
689
+ return;
629
690
  }
630
691
  try {
631
692
  Insider.setAllowsBackgroundLocationUpdates(allowsBackgroundLocationUpdates);
@@ -637,8 +698,8 @@ export default class RNInsider {
637
698
  static handleNotification(notification) {
638
699
  if (shouldNotProceed()) return;
639
700
  if (checkParameters([{ type: 'object', value: notification }])) {
640
- showParameterWarningLog("handleNotification", [{ type: 'object', value: notification }]);
641
- return;
701
+ showParameterWarningLog("handleNotification", [{ type: 'object', value: notification }]);
702
+ return;
642
703
  }
643
704
  try {
644
705
  Insider.handleNotification(notification);
@@ -650,8 +711,8 @@ export default class RNInsider {
650
711
  static enableIDFACollection(enableIDFACollection) {
651
712
  if (shouldNotProceed()) return;
652
713
  if (checkParameters([{ type: 'boolean', value: enableIDFACollection }])) {
653
- showParameterWarningLog("enableIDFACollection", [{ type: 'boolean', value: enableIDFACollection }]);
654
- return;
714
+ showParameterWarningLog("enableIDFACollection", [{ type: 'boolean', value: enableIDFACollection }]);
715
+ return;
655
716
  }
656
717
  try {
657
718
  Insider.enableIDFACollection(enableIDFACollection);
@@ -672,8 +733,8 @@ export default class RNInsider {
672
733
  static registerWithQuietPermission(enabled) {
673
734
  if (shouldNotProceed()) return;
674
735
  if (checkParameters([{ type: 'boolean', value: enabled }])) {
675
- showParameterWarningLog("registerWithQuietPermission", [{ type: 'boolean', value: enabled }]);
676
- return;
736
+ showParameterWarningLog("registerWithQuietPermission", [{ type: 'boolean', value: enabled }]);
737
+ return;
677
738
  }
678
739
  try {
679
740
  if (Platform.OS !== platformType.ios) return;
@@ -686,8 +747,8 @@ export default class RNInsider {
686
747
  static setHybridPushToken(token) {
687
748
  if (shouldNotProceed()) return;
688
749
  if (checkParameters([{ type: 'string', value: token }])) {
689
- showParameterWarningLog("setHybridPushToken", [{ type: 'string', value: token }]);
690
- return;
750
+ showParameterWarningLog("setHybridPushToken", [{ type: 'string', value: token }]);
751
+ return;
691
752
  }
692
753
  try {
693
754
  if (Platform.OS !== 'android') return;
@@ -706,11 +767,11 @@ export default class RNInsider {
706
767
  }
707
768
  }
708
769
 
709
- static enableLocationCollection (consentStatus) {
770
+ static enableLocationCollection(consentStatus) {
710
771
  if (shouldNotProceed()) return;
711
772
  if (checkParameters([{ type: 'boolean', value: consentStatus }])) {
712
- showParameterWarningLog("enableLocationCollection", [{ type: 'boolean', value: consentStatus }]);
713
- return;
773
+ showParameterWarningLog("enableLocationCollection", [{ type: 'boolean', value: consentStatus }]);
774
+ return;
714
775
  }
715
776
  try {
716
777
  Insider.enableLocationCollection(consentStatus);
@@ -719,11 +780,11 @@ export default class RNInsider {
719
780
  }
720
781
  }
721
782
 
722
- static enableIpCollection (consentStatus) {
783
+ static enableIpCollection(consentStatus) {
723
784
  if (shouldNotProceed()) return;
724
785
  if (checkParameters([{ type: 'boolean', value: consentStatus }])) {
725
- showParameterWarningLog("enableIpCollection", [{ type: 'boolean', value: consentStatus }]);
726
- return;
786
+ showParameterWarningLog("enableIpCollection", [{ type: 'boolean', value: consentStatus }]);
787
+ return;
727
788
  }
728
789
  try {
729
790
  Insider.enableIpCollection(consentStatus);
@@ -732,11 +793,11 @@ export default class RNInsider {
732
793
  }
733
794
  }
734
795
 
735
- static enableCarrierCollection (consentStatus) {
796
+ static enableCarrierCollection(consentStatus) {
736
797
  if (shouldNotProceed()) return;
737
798
  if (checkParameters([{ type: 'boolean', value: consentStatus }])) {
738
- showParameterWarningLog("enableCarrierCollection", [{ type: 'boolean', value: consentStatus }]);
739
- return;
799
+ showParameterWarningLog("enableCarrierCollection", [{ type: 'boolean', value: consentStatus }]);
800
+ return;
740
801
  }
741
802
  try {
742
803
  Insider.enableCarrierCollection(consentStatus);
@@ -789,11 +850,11 @@ export default class RNInsider {
789
850
  }
790
851
  }
791
852
 
792
- static setForegroundPushCallback (callback) {
853
+ static setForegroundPushCallback(callback) {
793
854
  if (shouldNotProceed()) return;
794
855
  if (checkParameters([{ type: 'function', value: callback }])) {
795
- showParameterWarningLog("setForegroundPushCallback", [{ type: 'function', value: callback }]);
796
- return;
856
+ showParameterWarningLog("setForegroundPushCallback", [{ type: 'function', value: callback }]);
857
+ return;
797
858
  }
798
859
  try {
799
860
  Insider.setForegroundPushCallback();
@@ -819,8 +880,8 @@ export default class RNInsider {
819
880
  static handleUniversalLink(url) {
820
881
  if (shouldNotProceed()) return;
821
882
  if (checkParameters([{ type: 'string', value: url }])) {
822
- showParameterWarningLog("handleUniversalLink", [{ type: 'string', value: url }]);
823
- return;
883
+ showParameterWarningLog("handleUniversalLink", [{ type: 'string', value: url }]);
884
+ return;
824
885
  }
825
886
  try {
826
887
  if (Platform.OS !== 'android' || url == null || shouldNotProceed()) return;
@@ -844,8 +905,8 @@ export default class RNInsider {
844
905
  static insiderIDListener(callback) {
845
906
  if (shouldNotProceed()) return;
846
907
  if (checkParameters([{ type: 'function', value: callback }])) {
847
- showParameterWarningLog("insiderIDListener", [{ type: 'function', value: callback }]);
848
- return;
908
+ showParameterWarningLog("insiderIDListener", [{ type: 'function', value: callback }]);
909
+ return;
849
910
  }
850
911
  try {
851
912
  Insider.registerInsiderIDListener();