Using a phones Pedometer in a game

Hi,

I am new to this engine and I am scoping it out for a project I am working on. In this project, I would like to track the players steps. For example, on ios there is the health app which tells you how many steps you did in a day. If I could access this information to tell when the player is walking and for how long, that would be ideal.

Does anyone know how easy/feasible this would be to do? I know that apple has an API, but that sounds a bit challenging to do and I would prefer not to have access to any other health data.

Does anyone have any suggestions?

Thanks in advance.

AFAIK, the only way to do this is by using HealthKit(API) as a native extension for Defold.

2 Likes