flutter_inappwebview icon indicating copy to clipboard operation
flutter_inappwebview copied to clipboard

Disable geolocation for iOS

Open whackykhan opened this issue 3 years ago • 5 comments

Hi,

We're using flutter_inappwebview in one of our apps and would like to ask if this plugin automatically accesses geolocation api on iOS?

I found a way to disable geolocation on android but there are no details about iOS.

whackykhan avatar Jan 17 '22 18:01 whackykhan

👋 @whackykhan

NOTE: This comment is auto-generated.

Are you sure you have already searched for the same problem?

Some people open new issues but they didn't search for something similar or for the same issue. Please, search for it using the GitHub issue search box or on the official inappwebview.dev website, or, also, using Google, StackOverflow, etc. before posting a new one. You may already find an answer to your problem!

If this is really a new issue, then thank you for raising it. I will investigate it and get back to you as soon as possible. Please, make sure you have given me as much context as possible! Also, if you didn't already, post a code example that can replicate this issue.

In the meantime, you can already search for some possible solutions online! Because this plugin uses native WebView, you can search online for the same issue adding android WebView [MY ERROR HERE] or ios WKWebView [MY ERROR HERE] keywords.

Following these steps can save you, me, and other people a lot of time, thanks!

github-actions[bot] avatar Jan 17 '22 18:01 github-actions[bot]

Facing the same issue. I use the HeadlessInAppWebView and the user gets the location prompt in my IOS app. I need to deactivate this. Did you found a solution?

SchenkerDevelopment avatar Feb 06 '22 15:02 SchenkerDevelopment

ITMS-90683: Missing purpose string in Info.plist - Your app’s code references one or more APIs that access sensitive user data, or the app has one or more entitlements that permit such access. The Info.plist file for the “Runner.app” bundle should contain a NSLocationWhenInUseUsageDescription key with a user-facing purpose string explaining clearly and completely why your app needs the data. If you’re using external libraries or SDKs, they may reference APIs that require a purpose string. While your app might not use these APIs, a purpose string is still required. For details, visit: https://developer.apple.com/documentation/uikit/protecting_the_user_s_privacy/requesting_access_to_protected_resources.

I don't use any location services in my app but currently I get this issue. the only place where the location permission is defined is inside in this library

so is it possible that this library causes the issue?

balaji101010 avatar Oct 25 '23 11:10 balaji101010

I have the same problem App Store is reporting me about the permission NSLocationWhenInUseUsageDescription but I´m not using it, there is a way to except that permission or lock it like android permissions?

hugoyair96 avatar Jan 05 '24 21:01 hugoyair96

@balaji101010 Did you fix it?

hugoyair96 avatar Jan 05 '24 21:01 hugoyair96