Location Handler Appears to Stop

I have a button. When tapped it installs the evenListener for “location” and sets up a timer to remove the handler a second later.

The locationHandler fires a number of times and then stops.

I can then tap the button again, and it works again. However, upon repeated tapping (not sure of the number of times), the handler does not fire.

This behavior appears on the simulator and an iPhone.

I have created a small application to demonstrate the problem, which is attached.

I hope I am doing something very basic incorrectly.

Thank you.

-Bob

There is another thread where this is being discussed:
 

https://forums.coronalabs.com/topic/62970-location-works-strangely-the-second-time/

Please continue the conversation there.

Thanks

Rob

There is another thread where this is being discussed:
 

https://forums.coronalabs.com/topic/62970-location-works-strangely-the-second-time/

Please continue the conversation there.

Thanks

Rob