Skip to content

Commit 6db209e

Browse files
committed
Fix a crash caused by implementing the deprecated open-from-url method
If compiled with Xcode 9.3, the app would crash when calling the deprecated method.
1 parent bce10ed commit 6db209e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Authenticator/Source/OTPAppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class OTPAppDelegate: UIResponder, UIApplicationDelegate {
6161
app.updateView()
6262
}
6363

64-
func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool {
64+
func application(_ application: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey: Any] = [:]) -> Bool {
6565
if let token = Token(url: url) {
6666
let message = "Do you want to add a token for “\(token.name)”?"
6767

0 commit comments

Comments
 (0)