Note that there are some explanatory texts on larger screens.

plurals
  1. POiphone location method startMonitoringSignificantChanges fails to work
    text
    copied!<p><br> i am developing an application for iphone using iOS 4.2 SDK.<br> My application need to popup an alert when a user arrives a specific location (in 400m radius). Note that I need to get this alert even if the app is in the <strong>background</strong>. <br>When I use the locationManager with <strong>startUpdatingLocation</strong> mode, i get the alert when the app is in the foreground, but not when it is in the background.<br> When I try to run with locationManager with <strong>startMonitoringSignificantChanges</strong> mode, i don't get any position changes in background and even not in foreground (i.e. didUpdateLocation method is never called. only once in the application start up)<br> some facts:<br> 1. I updated info.plist with UIBackgroundMode with 'location' as first item in array.<br> 2. I updated info.plist UIDeviceCapabilities with gps and location-services (though it doesn't really matters)<br> 3. all said above refers to running this app on the 3GS iphone device.<br> 4. I tried this app on sdk 4.0 and 4.1 and got the same problem. <br> 5. The device supports startMonitoringSignificantChanges use (method of locationManager confirms it)<br> 6. When I check the app on the device i move in range of ~150 meters meters. Is the startMonitoringSignificantChanges will call didUpdateLocation method with this kind of movement?<br> 7. All settings on the devices are turned to on mode (roaming, 3G, wifi,...) <br><br> Am i missing something? any ideas?<br> Thanks,</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload