fix #1924
This commit is contained in:
parent
9adf6abeb6
commit
e143e2892d
|
@ -2,6 +2,7 @@
|
|||
|
||||
- Updated minimum platform interface and implementation versions
|
||||
- Fix typos and other code improvements (thanks to [michalsrutek](https://github.com/michalsrutek))
|
||||
- Fixed "runtime issue of SecTrustCopyExceptions 'This method should not be called on the main thread as it may lead to UI unresponsiveness.' when using onReceivedServerTrustAuthRequest" [#1924](https://github.com/pichillilorenzo/flutter_inappwebview/issues/1924)
|
||||
- Merged "💥 Fix iPad crash due to missing sourceView" [#1933](https://github.com/pichillilorenzo/flutter_inappwebview/pull/1933) (thanks to [michalsrutek](https://github.com/michalsrutek))
|
||||
- Merged "💥 Fix crash - remove force unwrapping from dispose method" [#1932](https://github.com/pichillilorenzo/flutter_inappwebview/pull/1932) (thanks to [michalsrutek](https://github.com/michalsrutek))
|
||||
|
||||
|
|
|
@ -56,6 +56,7 @@
|
|||
<key>UIBackgroundModes</key>
|
||||
<array>
|
||||
<string>fetch</string>
|
||||
<string>processing</string>
|
||||
<string>remote-notification</string>
|
||||
</array>
|
||||
<key>UILaunchStoryboardName</key>
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
- Updated `flutter_inappwebview_platform_interface` version dependency to `^1.0.9`
|
||||
- Fix typos and other code improvements (thanks to [michalsrutek](https://github.com/michalsrutek))
|
||||
- Fixed "runtime issue of SecTrustCopyExceptions 'This method should not be called on the main thread as it may lead to UI unresponsiveness.' when using onReceivedServerTrustAuthRequest" [#1924](https://github.com/pichillilorenzo/flutter_inappwebview/issues/1924)
|
||||
- Merged "💥 Fix iPad crash due to missing sourceView" [#1933](https://github.com/pichillilorenzo/flutter_inappwebview/pull/1933) (thanks to [michalsrutek](https://github.com/michalsrutek))
|
||||
- Merged "💥 Fix crash - remove force unwrapping from dispose method" [#1932](https://github.com/pichillilorenzo/flutter_inappwebview/pull/1932) (thanks to [michalsrutek](https://github.com/michalsrutek))
|
||||
|
||||
|
|
|
@ -2079,10 +2079,13 @@ public class InAppWebView: WKWebView, UIScrollViewDelegate, WKUIDelegate,
|
|||
completionHandler(.cancelAuthenticationChallenge, nil)
|
||||
break
|
||||
case 1:
|
||||
// workaround for https://github.com/pichillilorenzo/flutter_inappwebview/issues/1924
|
||||
DispatchQueue.global(qos: .background).async {
|
||||
let exceptions = SecTrustCopyExceptions(serverTrust)
|
||||
SecTrustSetExceptions(serverTrust, exceptions)
|
||||
let credential = URLCredential(trust: serverTrust)
|
||||
completionHandler(.useCredential, credential)
|
||||
}
|
||||
break
|
||||
default:
|
||||
InAppWebView.credentialsProposed = []
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
- Updated `flutter_inappwebview_platform_interface` version dependency to `^1.0.9`
|
||||
- Fix typos and other code improvements (thanks to [michalsrutek](https://github.com/michalsrutek))
|
||||
- Fixed "runtime issue of SecTrustCopyExceptions 'This method should not be called on the main thread as it may lead to UI unresponsiveness.' when using onReceivedServerTrustAuthRequest" [#1924](https://github.com/pichillilorenzo/flutter_inappwebview/issues/1924)
|
||||
|
||||
## 1.0.9
|
||||
|
||||
|
|
|
@ -1462,10 +1462,13 @@ public class InAppWebView: WKWebView, WKUIDelegate,
|
|||
completionHandler(.cancelAuthenticationChallenge, nil)
|
||||
break
|
||||
case 1:
|
||||
// workaround for https://github.com/pichillilorenzo/flutter_inappwebview/issues/1924
|
||||
DispatchQueue.global(qos: .background).async {
|
||||
let exceptions = SecTrustCopyExceptions(serverTrust)
|
||||
SecTrustSetExceptions(serverTrust, exceptions)
|
||||
let credential = URLCredential(trust: serverTrust)
|
||||
completionHandler(.useCredential, credential)
|
||||
}
|
||||
break
|
||||
default:
|
||||
InAppWebView.credentialsProposed = []
|
||||
|
|
Loading…
Reference in New Issue