Skip to content

Commit

Permalink
fix ask face id when open app
Browse files Browse the repository at this point in the history
Signed-off-by: phuoc <[email protected]>
  • Loading branch information
phuocbitmark committed Oct 30, 2024
1 parent fffc0ea commit 1747f8c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions ios/Runner/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,14 @@ import Logging
})

DispatchQueue.main.asyncAfter(deadline: .now() + 0.7) { [weak self] in
SystemChannelHandler.shared.didRegisterPasskeyKeychain { didRegisterPasskey in
if let didRegisterPasskey = didRegisterPasskey as? Bool, !didRegisterPasskey {
self?.showAuthenticationOverlay()
self?.authenticationVC.authentication()
if UserDefaults.standard.bool(forKey: "flutter.device_passcode") == true {
SystemChannelHandler.shared.didRegisterPasskeyKeychain { didRegisterPasskey in
if let didRegisterPasskey = didRegisterPasskey as? Bool, !didRegisterPasskey {
self?.showAuthenticationOverlay()
self?.authenticationVC.authentication()
}
}
}
}
}

return super.application(application, didFinishLaunchingWithOptions: launchOptions)
Expand Down

0 comments on commit 1747f8c

Please sign in to comment.