If you can’t get OAuth Token by SFSafariViewController…?

Suddenly I have experienced this and found that there was a deprecated method. I used to use process URL Scheme with a method below.

func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool {
    return true 
}

But now I need to replace the method above to a method below.

func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool {
    return true 
}

Leave a Reply