Post iOS 10, when requesting LocationAlways permissions, NSLocationAlwaysUsageDescription key is disabled/not used. Instead,NSLocationAlwaysAndWhenInUseUsageDescription is required.
As per Apple's CoreLocation Documentation, only NSLocationWhenInUseUsageDescription and NSLocationAlwaysAndWhenInUseUsageDescription are required.
The suggested fix is to either drop support for <iOS 10, OR update SPPermissionType to
...
case locationAlways = 8
case locationWhenInUse = 9
@available(iOS, introduced: 11.0)
case locationAlwaysAndWhenInUse = 12
...
Post iOS 10, when requesting LocationAlways permissions,
NSLocationAlwaysUsageDescription
key is disabled/not used. Instead,NSLocationAlwaysAndWhenInUseUsageDescription
is required.As per Apple's CoreLocation Documentation, only
NSLocationWhenInUseUsageDescription
andNSLocationAlwaysAndWhenInUseUsageDescription
are required.The suggested fix is to either drop support for <iOS 10, OR update
SPPermissionType
to