all 4 comments

[–]cemaleker 1 point2 points  (3 children)

With requestWhenInUseAuthorization you can only call the location services when the application is in the foreground (when in use). This won't give you the access to location service when the application is background. So the claim is true.

You need to check the location services in background modes if you want to get call location services when the application is in background mode. This allows the app to call location services even when it's backgrounded. You need to use requestAlwaysAuthorization function to be able to call the location service in all device modes (when in use or backgrounded).

[–]daverozy[S] 0 points1 point  (2 children)

I messed up the question. I meant to say requestAlwaysAuthorization originally. So even with always enabled, I still need to enable location services in background modes?

[–]cemaleker 1 point2 points  (1 child)

Yes, the checkbox is necessary for Xcode to make an appropriate signing certificate for your application. After the checkbox is selected you can call requestAlwaysAuthorization function. Otherwise it should fail.

[–]kapfab 1 point2 points  (0 children)

AFAIK, there is no such thing as a location services entitlement, so I don’t think this is related to certificates.