func webView(webView: WKWebView, didReceiveAuthenticationChallenge challenge: NSURLAuthenticationChallenge, completionHandler: (NSURLSessionAuthChallengeDisposition, NSURLCredential?) -> Void) {
var user: String?
var password: String?
switch providerID {
case "197": // ABC Stagging
user = "ABC"
password = "abc"
default:
break
}
if let user = user, password = password {
let credential = NSURLCredential(user: user, password: password, persistence: NSURLCredentialPersistence.ForSession)
challenge.sender?.useCredential(credential, forAuthenticationChallenge: challenge)
completionHandler(NSURLSessionAuthChallengeDisposition.UseCredential, credential)
}
}
crashlyticsクラッシュによると、情報とオンラインで起こっているチャレンジは受信者によって送信されませんでした。didReceiveAuthenticationChallengeのWKWebView iOS 10.3クラッシュ
challenge.sender?.useCredential(credential, forAuthenticationChallenge: challenge)
すべてのヘルプは高く評価されます。これはiOS 10.3でのみ発生します。私は一部のユーザーがベータ版を持っていて、これを体験していると思います。私にとって
それを固定の問題は、いずれかの解決を取得しましたか?私は同じ問題に直面しています。助けてください –