• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1187
  • Last Modified:

How to check if users gave iPhone app GPS permission?

I'm developing a location based app, but Apple reject my app because if the user does not give the app access to the GPS the app goes into a look and does not give any error to the user.

How can I check if the user gave the app permission to access their location?

Thank you,
0
Medrise
Asked:
Medrise
1 Solution
 
mad_macCommented:
Your CLLocationManagerDelegate will receive locationManager:didFailWithError and the NSError object will contain the error code kCLErrorDenied.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now