SwiftLocation icon indicating copy to clipboard operation
SwiftLocation copied to clipboard

Fix validating Bundle for whenInUse permission

Open jonasrottmann opened this issue 1 year ago • 2 comments

IfInfo.plist only contained NSLocationWhenInUseUsageDescription, then requesting the .whenInUse permission would throw because of Bundle.hasWhenInUsePermission() where NSLocationAlwaysAndWhenInUseUsageDescription was checked mistakenly. Also the deprecated NSLocationAlwaysUsageDescription has been replaced by NSLocationAlwaysAndWhenInUseUsageDescription which now also matches the table in the README.md.

jonasrottmann avatar Nov 24 '23 19:11 jonasrottmann

Had this issue too when requesting .whenInUse. Worked around it by adding NSLocationAlwaysAndWhenInUseUsageDescription into the plist too, but this looks like the actual fix.

hactar avatar Jan 02 '24 12:01 hactar

@malcommac Could you please take a look a this?

MartinStrambach avatar Feb 04 '24 19:02 MartinStrambach

You're right, this is the right fix. i'll merge it for 6.1.0. Thank you!

malcommac avatar Feb 29 '24 13:02 malcommac