iPhone motion coprocessor / Coremotion framework

Hello everybody.

I searched a lot around the web but I wasn’t able to find anything about the subject of this topic.

I would like to access the datas stored inside the motion coprocessor of the iPhones to read for the user’s steps. I know that there is a framework called Coremotion that can be accessed through Xcode but I don’t know anything about Xcode/Obj-c/Swift or a way to interface an external code to Corona and I couldn’t find anything related to Corona.

So… Is it possible to directly read those datas from Corona or not?

If not, is there a way using some external plugin to do that?

I would like to access those data to write a game where I stimulate the outodoor activities to collect some sort of “bonus energies” for a little game I would like to write.

Thank for your replies.

There isn’t a Corona provided way to access Coremotion. This is something that a plugin could do. But I don’t know of anyone who has made one yet.

Rob

Thanks for you reply. 

Bad news… It could be an interesting thing. In the past I tried a couple of games that used the steps of the phone’s owner to give some sort of credits/point inside the app, and it could be an interesting thing to do: it is more power-saving than reading the compass/accelerometer and it also works when the app isn’t running.

There isn’t a Corona provided way to access Coremotion. This is something that a plugin could do. But I don’t know of anyone who has made one yet.

Rob

Thanks for you reply. 

Bad news… It could be an interesting thing. In the past I tried a couple of games that used the steps of the phone’s owner to give some sort of credits/point inside the app, and it could be an interesting thing to do: it is more power-saving than reading the compass/accelerometer and it also works when the app isn’t running.