@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/commonjs/index.js
CHANGED
|
@@ -3845,12 +3845,6 @@ function createNotificationOpenedHandler() {
|
|
|
3845
3845
|
const customMessageId = notificationData.messageId;
|
|
3846
3846
|
const dedupId = customMessageId || messageId;
|
|
3847
3847
|
|
|
3848
|
-
// Deduplication: prevent double click handling
|
|
3849
|
-
if (dedupId && !markClickProcessed(dedupId)) {
|
|
3850
|
-
_Logger.default.log('[SwanSDK] Click already processed for messageId:', dedupId);
|
|
3851
|
-
return;
|
|
3852
|
-
}
|
|
3853
|
-
|
|
3854
3848
|
// If onNotificationOpenedApp fires, it means iOS displayed the notification
|
|
3855
3849
|
// natively (aps.alert present). Notifee handlers won't fire for iOS-native
|
|
3856
3850
|
// notifications, so this handler MUST process the click.
|
|
@@ -3910,6 +3904,14 @@ function createNotificationOpenedHandler() {
|
|
|
3910
3904
|
_Logger.default.warn('[SwanSDK] Failed to peek Content Extension click data:', err);
|
|
3911
3905
|
}
|
|
3912
3906
|
}
|
|
3907
|
+
|
|
3908
|
+
// Deduplication: prevent double click handling.
|
|
3909
|
+
// Placed AFTER carousel defer check — if we defer to checkPendingCarouselClick,
|
|
3910
|
+
// we must NOT mark the ID as processed or checkPendingCarouselClick will skip it.
|
|
3911
|
+
if (dedupId && !markClickProcessed(dedupId)) {
|
|
3912
|
+
_Logger.default.log('[SwanSDK] Click already processed for messageId:', dedupId);
|
|
3913
|
+
return;
|
|
3914
|
+
}
|
|
3913
3915
|
const deepLinkPayload = {
|
|
3914
3916
|
...notificationData,
|
|
3915
3917
|
route,
|