Pages

Wednesday, January 9, 2013

Is there a way to check if the iOS device is in sleep mode?

Hi All,

 

I have used GPS location updates in my application. I want to detect if the iOS device is in sleep mode so that I can turn off the GPS and optimize the battery use. I have already tried pausesLocationupdates in iOS 6, but it does not work as desired.

I want to turn off the GPS as soon as the device goes to sleep mode. Is there any way to achieve this functionality ?

 

Thanks in advance.


View the original article here

0 comments:

Post a Comment