views:

8

answers:

0

Hi,

I am developing the application that is using phone location. I am using the following approach.

I am using startUpdatingLocation when my application is in foreground, and when my applications goes in background i use startMonitoringSignificantChanges.. it will notify me once the towerID is change.

I have problem when user go in the background and terminate the application. Application was still register for startMonitoringSignificantChanges, when i will call stopMonitoringSignificantChanges? I don't want to wakeup my application.

I tried calling stopMonitoringSignificantChanges in applicationWillTerminate, but in iOS4 application didn't call applicationWillTerminate..

Can you please provide me the solution? how to overcome this problem? It is draining my iPhone battery :(

Thanks, Salman