To request authorization, call requestWhenInUseAuthorization() or requestAlwaysAuthorization() , depending on the authorization status your app needs. See Choosing the Location Services Authorization to Request for more information about deciding what type of authorization to request.
Read moreHow do I give an app permission to use my location?
Find which apps use your phone’s location
Read moreWhy is Location Services disabled on my iPhone?
If the “Location Services” or “Share my Location” settings on your Apple iPhone, iPad or iPod Touch seems grayed out and you cannot make changes to it, you may have accidentally set a restriction on it . Check the settings using these steps. Open “Settings“.
Read moreShould you allow location on iPhone?
Disabling location services may help you preserve your device’s battery life and maintain the highest level of smart device privacy, but it will diminish your overall experience .
Read more