Application does not start from LocationManager after rebooting iPhone

Excuse me in my poor English.

I have created an application that uses LocationManager.startMonitoring to check whether it has entered or exited the Beacon range.


After rebooting the iPhone, I expect that the application will be launched from the LocationManager after a while.

After my iPhone resbooted, if my application was killed after I manually launched my application I confirmed that the application will be launched exactly by LocationManager.

What else should my application do to ensure that my application is launched from iOS at Beacon's Location?

Replies

You can UserDefaults in this case. For e.g. if you are receiving LocationManager, just save a true flag with any key in UserDefault. And in AppDelegate there are couple of functions for e.g. In applicationDidBecomeActive method you can retrive your prev key value and check if its true than you can start the locationmanager updates.