ios8 - Location services not updating in background -


For iOS 8, I've added the following key in my plist:

NSLocationAlwaysUsageDescription < / P>

I also said:

  // Check for iOS 8 if ([_locationManager responds to Tselectulator: @selector (requestAlwaysAuthorization)]) { [_locationManager requestAlwaysAuthorization]; }   

I deleted the app from my phone, when I launch, I get an indication of whether it is expected to fix location services in the background. I'm clicking the app, the app is running, I'm getting the location and the location is active icon in the status bar.

However, if I leave the app, the location active icon disappears quickly from the status bar and I do not get the space anymore.

Does the app enter the background? Do I need to reset the Location Manager? Should the location manager property / variable definition be defined in AppDelegate as if it never goes away?

You also need to set location updates in the background mode of your abilities.

Enter image details here

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -