How can I check if the user has responded to Location alert
“App Would Like to Use Your Current Location”
or
“App would like to send you push notifications”
I don’t care which choice the user select I only need to know if the alert is dismissed,,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You don’t directly get a message when the user dismisses this alert, but you can implement CLLocationDelegate’s
- (void)locationManager:(CLLocationManager *)manager didChangeAuthorizationStatus:(CLAuthorizationStatus)statusmethod. Between that and checking CLLocationManager’s staticauthorizationStatusproperty you can usually figure out whether the user has allowed location services in your app yet.