Код: Выделить всё
public static func openMicrosoftAuthenticatorForAuthentication() {
let clientID = Constants.microsoftClientID
let urlString = "msauthv2://\(clientID)"
guard let url = URL(string: urlString) else {
print("Failed to create URL for Microsoft Authenticator.")
return
}
if UIApplication.shared.canOpenURL(url) {
UIApplication.shared.open(url, options: [:], completionHandler: { success in
if success {
print("Microsoft Authenticator was opened successfully.")
} else {
print("Failed to open Microsoft Authenticator.")
}
})
} else {
print("Microsoft Authenticator is not installed or the URL scheme is incorrect.")
}
}
нужно решение для Android и iOS,
есть ли какое-либо другое решение для автоматизации процесса проверки ?
Подробнее здесь: https://stackoverflow.com/questions/785 ... -deeplinks