While I have already added:
NSLocationWhenInUseUsageDescription
I keep receiving this warning:
This app has attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSLocationWhenInUseUsageDescription key with a string value explaining to the user how the app uses this data
FYI: I have multiple Info.plist in the app. Not sure what to do.
I was requesting authorisation in
as follows:
when I removed this line the error disappeared.
There are a ton of poorly structured frameworks (namely FirebaseMessaging) that use camera and location for no benefit to the user. You should alert end user this functionality is NOT needed for your application and user must NOT grant app access to that parasite inside. What a sad, sad times we live in.
Adding both
and
keys in plist solved my problem.
Well, actually, in my case I needed to put ALL THREE of them like this:
Otherwise, I wouldn't get the pop-up alert asking to allow the Location.
Note: I develop in Flutter, I don't know if it has any repercussions in this case...
remove the NSLocationWhenInUseUsageDescription from plist and run the application and add again and run the application again