google fit and apple healthkit

I was wondering if there is a way to get info from both APIs (google fit and apple healthkit) with Corona SDK.

I found an old post about it, but with no valid response:

https://forums.coronalabs.com/topic/60064-corona-sdk-with-ios-healthkit-and-google-fit/

I want to make an app that counts steps and motive people to walk more. Corona can’t work in the background, so my only hope is having access to this APIs.

Any news about this? I doubt I’m the only one in this boat.

Regards,

Carlos Costa.

There are no API’s for simulator builds for accessing either of these. I don’t believe anyone has created a plugin and submitted it to the Marketplace either.  I don’t believe backgrounding is an issue at least with Healthkit since the app doesn’t need to run in the background. There should be a way to get the current steps and you can get the value when the app suspends and resumes and you will have the number of steps that took place while suspended. But you will need to use Corona Native and build out the iOS and Android versions.

This is not something on our roadmap.

Rob

Rob, thanks for the clarification, but you didn’t understand what I meant. Background is an issue with Corona, because I can’t create myself an app that counts steps. Corona doesn’t allow background services while app is closed so I can’t do it. My only hope is having access to google fit api or apple healthkit, that’s why I asked if there is any way I could get data from those API with Corona SDK. I know if i could get data from them i could build it, regardless Corona can or can’t have background services…data comes from outside app so it would work. If I need Corona Native, the project is out of the question. I learned Corona SDK exactly to not need to learn 2 different languages to make apps for both ecosystems and right know for mobile apps I only know Lua.

Thanks again for the reply,

Regards,

Carlos Costa.

There are no API’s for simulator builds for accessing either of these. I don’t believe anyone has created a plugin and submitted it to the Marketplace either.  I don’t believe backgrounding is an issue at least with Healthkit since the app doesn’t need to run in the background. There should be a way to get the current steps and you can get the value when the app suspends and resumes and you will have the number of steps that took place while suspended. But you will need to use Corona Native and build out the iOS and Android versions.

This is not something on our roadmap.

Rob

Rob, thanks for the clarification, but you didn’t understand what I meant. Background is an issue with Corona, because I can’t create myself an app that counts steps. Corona doesn’t allow background services while app is closed so I can’t do it. My only hope is having access to google fit api or apple healthkit, that’s why I asked if there is any way I could get data from those API with Corona SDK. I know if i could get data from them i could build it, regardless Corona can or can’t have background services…data comes from outside app so it would work. If I need Corona Native, the project is out of the question. I learned Corona SDK exactly to not need to learn 2 different languages to make apps for both ecosystems and right know for mobile apps I only know Lua.

Thanks again for the reply,

Regards,

Carlos Costa.