SwiftLocation
SwiftLocation copied to clipboard
Fix validating Bundle for whenInUse permission
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
.
Had this issue too when requesting .whenInUse. Worked around it by adding NSLocationAlwaysAndWhenInUseUsageDescription into the plist too, but this looks like the actual fix.
@malcommac Could you please take a look a this?
You're right, this is the right fix. i'll merge it for 6.1.0. Thank you!