applicationDidBecomeActive getting called twice

Abhinav picture Abhinav · Apr 24, 2012 · Viewed 13.4k times · Source

My app delegate method applicationDidBecomeActive: is getting called twice for the first time launch of the application. I have some portion of code which I want to execute only once & that I have put into applicationDidBecomeActive:

What should I do?

Answer

Abhinav picture Abhinav · Apr 25, 2012

I got the issue. I am using Location Services. When launching for the first time after I tap on "OK" on the location services alert, my applicationDidBecomeActive gets called one more time which is the normal iOS behavior.