Skip to content

Commit 95e6bcf

Browse files
Merge pull request #66 from Iterable/bugfix/mob-261
[MOB-261] - Rename parameter
2 parents ba55a15 + 2721e0a commit 95e6bcf

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Tests/swift-sdk-swift-tests/IterableInAppNotificationTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class IterableInAppNotificationTests: XCTestCase {
180180
])
181181
let body = networkSession.getRequestBody() as! [String : Any]
182182
TestUtils.validateMatch(keyPath: KeyPath("messageId"), value: messageId, inDictionary: body)
183-
TestUtils.validateMatch(keyPath: KeyPath("urlClick"), value: buttonUrl, inDictionary: body)
183+
TestUtils.validateMatch(keyPath: KeyPath("clickedUrl"), value: buttonUrl, inDictionary: body)
184184
TestUtils.validateMatch(keyPath: KeyPath("userId"), value: IterableInAppNotificationTests.userId, inDictionary: body)
185185
expectation1.fulfill()
186186
}

swift-sdk/ITBConsts.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public extension AnyHashable {
138138

139139
//In-App Constants
140140
public extension AnyHashable {
141-
public static let ITBL_IN_APP_CLICK_URL = "urlClick"
141+
public static let ITBL_IN_APP_CLICKED_URL = "clickedUrl"
142142

143143
public static let ITBL_IN_APP_BUTTON_INDEX = "buttonIndex"
144144
public static let ITBL_IN_APP_MESSAGE = "inAppMessages"

swift-sdk/Internal/IterableAPIInternal.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ final class IterableAPIInternal : NSObject, PushTrackerProtocol {
448448
func trackInAppClick(_ messageId: String, buttonURL: String) {
449449
var args: [AnyHashable : Any] = [
450450
.ITBL_KEY_MESSAGE_ID: messageId,
451-
.ITBL_IN_APP_CLICK_URL: buttonURL
451+
.ITBL_IN_APP_CLICKED_URL: buttonURL
452452
]
453453
addEmailOrUserId(args: &args)
454454

0 commit comments

Comments
 (0)