ios - Observe location services updates -
ios - Observe location services updates -
how can observe , phone call method when location services options change? example, app runs location services in background, i.e. alternative in settings set always. if user changes alternative while app still running, how can observe changes , create changes in app accordingly?
implement cllocationmanagerdelegate method
- (void)locationmanager:(cllocationmanager *)manager didchangeauthorizationstatus:(clauthorizationstatus)status
from docs:
"this method called whenever application’s ability utilize location services changes. changes can occur because user allowed or denied utilize of location services application or scheme whole."
ios ios7 ios8 location-services
Comments
Post a Comment