Skip to content

Commit

Permalink
Merge pull request #7 from casperkclee/feature/YM-16123_bundleIDCheck
Browse files Browse the repository at this point in the history
[Task] YM-16123: Remove Yoti App check on iOS 13 due to new privacy policy
  • Loading branch information
casperkclee authored Oct 1, 2019
2 parents 5ceb420 + 416980c commit bd0550d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions YotiButtonSDK/YotiSDK.swift
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,12 @@ public class YotiSDK: NSObject {

func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool {

guard let bundleID = options[UIApplication.OpenURLOptionsKey.sourceApplication] as? String,
bundleID == EnvironmentConfiguation.YotiApp.bundleID
else {
return false
if #available(iOS 13, *) { } else {
guard let bundleID = options[UIApplication.OpenURLOptionsKey.sourceApplication] as? String,
bundleID == EnvironmentConfiguation.YotiApp.bundleID
else {
return false
}
}

var callbackComponents = URLComponents(url: url, resolvingAgainstBaseURL: true)
Expand Down

0 comments on commit bd0550d

Please sign in to comment.