Skip to content

Commit

Permalink
A hack to force Plaid link to user redirect flow so SDK can intercept…
Browse files Browse the repository at this point in the history
… url (#8)
  • Loading branch information
tom-quiltt authored Feb 6, 2024
1 parent 66b99c9 commit 16fb095
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/QuilttConnector/QuilttConnectorWebview.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ class QuilttConnectorWebview: WKWebView, WKNavigationDelegate {
// self.isInspectable = true
// }
self.navigationDelegate = self // to manage navigation behavior for the webview.
// A hack to force Plaid to redirect flow over popup
self.customUserAgent = "Mozilla/5.0 (Linux; Android 14; sdk_gphone64_arm64 Build/UPB5.230623.003; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/113.0.5672.136 Mobile Safari/537.36"
}

required init?(coder: NSCoder) {
Expand Down

0 comments on commit 16fb095

Please sign in to comment.