Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,6 @@
actionText: self?.title, actionURL: self?.actionURL)
self?.eventDetector.messageClicked(with: action)
})

UIApplication.shared.open(url, options: [:], completionHandler: nil)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,22 +175,12 @@

extension InAppDefaultCardMessageViewController: InAppDefaultCardMessageViewDelegate {
public func primaryActionButtonDidTap() {

if let actionURL = self.primaryActionURL, UIApplication.shared.canOpenURL(actionURL) {
UIApplication.shared.open(actionURL, options: [:], completionHandler: nil)
}

let action = InAppMessagingAction(
actionText: self.primaryActionButtonText, actionURL: self.primaryActionURL)
eventDetector.messageClicked(with: action)
}

public func secondaryActionButtonDidTap() {

if let actionURL = self.secondaryActionURL, UIApplication.shared.canOpenURL(actionURL) {
UIApplication.shared.open(actionURL, options: [:], completionHandler: nil)
}

let action = InAppMessagingAction(
actionText: self.secondaryActionButtonText, actionURL: self.secondaryActionURL)
eventDetector.messageClicked(with: action)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,6 @@

extension InAppDefaultImageOnlyMessageViewController: InAppDefaultImageOnlyViewDelegate {
public func imageDidTap() {
if let actionURL = self.actionURL, UIApplication.shared.canOpenURL(actionURL) {
UIApplication.shared.open(actionURL, options: [:], completionHandler: nil)
}

let action = InAppMessagingAction(actionText: nil, actionURL: self.actionURL)
eventDetector.messageClicked(with: action)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,6 @@

extension InAppDefaultModalMessageViewController: InAppDefaultModalViewDelegate {
public func actionButtonDidTap() {

if let actionURL = self.actionURL, UIApplication.shared.canOpenURL(actionURL) {
UIApplication.shared.open(actionURL, options: [:], completionHandler: nil)
}

let action = InAppMessagingAction(
actionText: self.actionButtonText, actionURL: self.actionURL)
eventDetector.messageClicked(with: action)
Expand Down