flutterlocation icon indicating copy to clipboard operation
flutterlocation copied to clipboard

Permissions difficulty on IOS devices

Open marshallfungai opened this issue 3 years ago • 0 comments

Describe the bug "await location.requestPermission();" attempts to ask permissions from ios user. Which is the write thing to do. But the problem comes on the description of "why" they are needed.

I understand that in Info.plist, should have the following:

NSLocationAlwaysAndWhenInUseUsageDescription Directions to the nearest sales points NSLocationAlwaysUsageDescription Directions to the nearest sales points NSLocationWhenInUseUsageDescription Directions to the nearest sales points

But the location plugin keeps giving the its internal prompt after (location.requestPermission()), without description (screenshot attached.). Which is the half correct thing to do. I contract is should pick up "NSLocationAlwaysAndWhenInUseUsageDescription", from my info.plist, in my runner. In instances were permissions request prompt from my info.plist , it is shortly override by the prompt from your location plugin.

Your plugin prompt for permission is being rejected by appleconnect review, because this is a general prompt without further information .

Expected behavior It should take permission description from Info.plist

Tested on:

  • iOS, iphone 14 , simulator

Other plugins:

  • maybe google maps flutter plugin, but I do not think so, because I am using the location widget before calling google plugin.

location permissions

marshallfungai avatar Sep 04 '23 12:09 marshallfungai