Friday 15 February 2013

ios8 - Location services not updating in background -



ios8 - Location services not updating in background -

for ios 8 have added next key plist:

nslocationalwaysusagedescription

i added:

// check ios 8 if ([_locationmanager respondstoselector:@selector(requestalwaysauthorization)]) { [_locationmanager requestalwaysauthorization]; }

i deleted app phone. upon launch prompted if ok run location services in background expected. click yes. while app running locations , location active icon in status bar.

however if leave app location active icon disappears status bar , no longer locations.

do need re setup location manager when app enters background? location manager property/variable need defined in appdelegate such never goes away?

you have set location updates in background modes of capabilities.

ios8 core-location

No comments:

Post a Comment