I use Xcode 14.2 and my application is native iOS app, written in SwiftUI. I added below 2 keys for location permission.
- Privacy - Location Always and When In Use Usage Description
- Privacy - Location When In Use Usage Description
On App launch, user see the first location prompt and select "Allow while using App".
Later when user navigates to the we page which gets loading using WKWebView in SwiftUI by confirming the UIViewRepresentable like below
struct WebView: UIViewRepresentable {
var webView: WKWebView
}
WKWebView repeated asking for location alert, which is no use.
Could you please guide how to suppress the WKWebView location alert?
How to disable the location alert from Webkit? I tried the this approach, but not worked.
Thanks & Regards, Pravin D