xamarinxamarin.formsxamarin.iosprismwkwebview

Repeated dialog box for permission access in Xamarin project - only in ios


I have a Xamarin Prism Forms app that contains web page which should get the users current location. The app already has the required "app" permissions for Android. But in ios when I call my external web page it repeatedly shows me the popup with the message :"website... Would Like To Use Your Current Location. Don't Allow / OK" each time they visit the web page from inside my Xamarin app. I am using WkWebViewRenderer for webview.I have tried all the possible answers I got and still the problem persists.

Can anybody help me on this??


Solution

  • I found out the solution in How to prevent WKWebView to repeatedly ask for permission to access location?

    The steps I followed to solve the issue are: