@loyalytics/swan-react-native-sdk 2.7.1-beta.3 → 2.7.1-beta.4
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/lib/commonjs/index.js +8 -6
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/version.js +1 -1
- package/lib/module/index.js +8 -6
- package/lib/module/index.js.map +1 -1
- package/lib/module/version.js +1 -1
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/version.d.ts +1 -1
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/version.d.ts +1 -1
- package/package.json +1 -1
package/lib/module/index.js
CHANGED
|
@@ -3829,12 +3829,6 @@ export function createNotificationOpenedHandler() {
|
|
|
3829
3829
|
const customMessageId = notificationData.messageId;
|
|
3830
3830
|
const dedupId = customMessageId || messageId;
|
|
3831
3831
|
|
|
3832
|
-
// Deduplication: prevent double click handling
|
|
3833
|
-
if (dedupId && !markClickProcessed(dedupId)) {
|
|
3834
|
-
Logger.log('[SwanSDK] Click already processed for messageId:', dedupId);
|
|
3835
|
-
return;
|
|
3836
|
-
}
|
|
3837
|
-
|
|
3838
3832
|
// If onNotificationOpenedApp fires, it means iOS displayed the notification
|
|
3839
3833
|
// natively (aps.alert present). Notifee handlers won't fire for iOS-native
|
|
3840
3834
|
// notifications, so this handler MUST process the click.
|
|
@@ -3894,6 +3888,14 @@ export function createNotificationOpenedHandler() {
|
|
|
3894
3888
|
Logger.warn('[SwanSDK] Failed to peek Content Extension click data:', err);
|
|
3895
3889
|
}
|
|
3896
3890
|
}
|
|
3891
|
+
|
|
3892
|
+
// Deduplication: prevent double click handling.
|
|
3893
|
+
// Placed AFTER carousel defer check — if we defer to checkPendingCarouselClick,
|
|
3894
|
+
// we must NOT mark the ID as processed or checkPendingCarouselClick will skip it.
|
|
3895
|
+
if (dedupId && !markClickProcessed(dedupId)) {
|
|
3896
|
+
Logger.log('[SwanSDK] Click already processed for messageId:', dedupId);
|
|
3897
|
+
return;
|
|
3898
|
+
}
|
|
3897
3899
|
const deepLinkPayload = {
|
|
3898
3900
|
...notificationData,
|
|
3899
3901
|
route,
|