Support testing of region monitoring in Simulator

Originator:oliver.drobnik
Number:rdar://16924908 Date Originated:15-May-2014 01:05 PM
Status:Open Resolved:
Product:Developer Tools Product Version:iPhone Simulator 7.1 (463.9.41)
Classification:Enhancement Reproducible:Always
 
If you register to be notified if you are inside or outside of a CLCircularRegion this is difficult to test because the simulator does presently not support updating region state by setting the simulated location.

I propose to also have CLLocationManager send the locationManager:didDetermineState:forRegion: on simulator consistently when simulating various locations through the simulator Debug - Location menu.

This would be extremely helpful for developers to test region monitor functionality. At present the only way to really test their implementation is to choose a small radius around the developer’s office and then walk outside of this radius with a physical device.

By the same token, you cannot unit-test region-monitoring code in an automated fashion.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!