Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

counting steps
Started by PhoerLevine Apr 09 2014 11:55 AM

3 replies to this topic
[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

PhoerLevine

[GLOBAL: userInfoPane.html]
PhoerLevine
  • Observer

  • 10 posts
  • Corona SDK

Hi there,

 

Guess it's impossible to do, but here's my question: is there a way to count steps while walking, having the app closed or running in background?



[TOPIC: post.html]
#2

ebookren

[GLOBAL: userInfoPane.html]
ebookren
  • Enthusiast

  • 52 posts
  • Enterprise

As far as i can tell there is no way to do this. I too was working on a pedometer app for someone and could not find a way to keep counting steps when the phone goes to sleep. 



[TOPIC: post.html]
#3

martin4c4

[GLOBAL: userInfoPane.html]
martin4c4
  • Observer

  • 1 posts
  • Corona SDK

I was wondering if someone came up with a solution to this?



[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,561 posts
  • Enterprise

Corona SDK is not designed to run in the background.  Any interaction with Lua requires the UI to be in the foreground.  As such even with Enterprise, you couldn't count the steps in Lua because of the UI not being there.

 

Rob




[topic_controls]
[/topic_controls]