My iPhone application uses location services. When i first install and run it, it shows dialog asking if user wants to allow use of location services for a moment and immediately disappears. This happens few times in a row.
Is it a known bug or I'm doing something wrong?
I had the same issue in my app just now, I'll add this as an answer for anyone who googles the question and comes across this old question.
The problem is that if you instanciate CLLocationManager locally and ask it to update its location, the window which asks for permission disappears instantly after it pops up.
You have to make CLLocationManager a property (or at least you should not instanciate it locally), then it works.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With