diff --git a/ios/Classes/InAppWebView.swift b/ios/Classes/InAppWebView.swift index f1e27903f..d9b1ef846 100755 --- a/ios/Classes/InAppWebView.swift +++ b/ios/Classes/InAppWebView.swift @@ -1077,6 +1077,12 @@ public class InAppWebView: WKWebView, UIScrollViewDelegate, WKUIDelegate, WKNavi } } } + + if #available(iOS 9.0, *) { + if let applicationNameForUserAgent = options?.applicationNameForUserAgent, !applicationNameForUserAgent.isEmpty { + configuration.applicationNameForUserAgent = applicationNameForUserAgent + } + } return configuration }