Search code examples
iphoneobjective-cioscocoa-touchuiapplicationdelegate

applicationDidBecomeActive getting called twice


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?


Solution

  • 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.