@loyalytics/swan-react-native-sdk 2.7.1-beta.0 → 2.7.1-beta.1
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.
|
@@ -173,7 +173,15 @@ class NotificationViewController: UIViewController, UNNotificationContentExtensi
|
|
|
173
173
|
completion: @escaping (Bool) -> Void
|
|
174
174
|
) {
|
|
175
175
|
let messageId = userInfo["messageId"] as? String ?? ""
|
|
176
|
-
let
|
|
176
|
+
let defaultRoute = userInfo["defaultRoute"] as? String
|
|
177
|
+
// Use per-item route if non-nil and non-empty, otherwise fall back to defaultRoute.
|
|
178
|
+
// Logic mirrors SwanParsers.resolveRoute() — keep in sync.
|
|
179
|
+
let route: String
|
|
180
|
+
if let itemRoute = itemRoute, !itemRoute.isEmpty {
|
|
181
|
+
route = itemRoute
|
|
182
|
+
} else {
|
|
183
|
+
route = defaultRoute ?? ""
|
|
184
|
+
}
|
|
177
185
|
|
|
178
186
|
// Always save click data first — the async extensionContext.open() completion
|
|
179
187
|
// uses [weak self], so saveClickData() could be skipped if self is deallocated.
|
package/lib/commonjs/version.js
CHANGED
|
@@ -8,5 +8,5 @@ exports.SDK_VERSION = void 0;
|
|
|
8
8
|
// This file is generated from package.json version during build.
|
|
9
9
|
// See scripts/generate-version.js
|
|
10
10
|
|
|
11
|
-
const SDK_VERSION = exports.SDK_VERSION = '2.7.1-beta.
|
|
11
|
+
const SDK_VERSION = exports.SDK_VERSION = '2.7.1-beta.1';
|
|
12
12
|
//# sourceMappingURL=version.js.map
|
package/lib/module/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.7.1-beta.
|
|
1
|
+
export declare const SDK_VERSION = "2.7.1-beta.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.7.1-beta.
|
|
1
|
+
export declare const SDK_VERSION = "2.7.1-beta.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|