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 more