Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Location Handler Appears to Stop
Started by gordon1bob May 09 2016 02:16 PM

1 reply to this topic
gps location eventhandler
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

gordon1bob

[GLOBAL: userInfoPane.html]
gordon1bob
  • Enthusiast

  • 41 posts
  • Corona SDK

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

 

 

Attached Files



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,535 posts
  • Enterprise

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




[topic_controls]
[/topic_controls]