PDA

View Full Version : .plist Location Keys



otavio.lima
24.02.2015, 17:45
Hi,

Documentation says (SKPositionerService.h)

/** Starts updating GPS locations. In order to receive GPS locations, the following key must be added in the project's plist file:
NSLocationWhenInUseUsageDescription. The value of the key will be displayed to the user when he accepts/declines location updates for the application. If the key and the value are not added to the plist file, the user will not be asked for permission and the current position will not be available in the SDK.
*/
- (void)startLocationUpdate;

However for my application requires to have NSLocationAlwaysUsageDescription key, because it *needs* to run in the background mode.

I know that I can create a wrapper for the CLLocationManager and use the requestAlwaysAuthorization: selector. But I would like to know if there any way to use that selector, instead of requestWhenInUseAuthorization:, directly from your SDK?

Best.

Adela_Silvia
26.02.2015, 16:58
Hi Otavio,
We have to check the answer with our development team-please allow us to get back to you in the next days.

Adela_Silvia
25.03.2015, 10:34
Unfortunately in the 2.4 Public SDK it's not possible to receive positions using the SDK's location manager having the NSLocationAlwaysUsageDescription key in the plist of the project. In the next version of the SDK this problem will be fixed.
Meantime, you could implement your own location manager in order to fix this problem.

Let us know if you need further help.