Double message on ios when get geolocation : <p>I have created an ios app (Xcode) with a single WebKit View component that loads an external website. This website tries to get the current geolocation with this Javascript: <code>navigator.geolocation</code>.</p>

<p>This all works fine, but the problem is, I get 2 messages:</p>

<ol>
<li>First a message for the app: 'Allow "NameApp" to access your location while you are using the app?'</li>
<li>Second a message for the webview: '<a href="https://mywebsite.com" rel="noreferrer">https://mywebsite.com</a> would like to use your current location'.</li>
</ol>

<p>I have seen similar questions about this issue, but they all went about a native/offline Cordova app. I have an online app in my Webview.</p>

<p>How can I prevent this double message? Or a workaround for this problem?</p>
