Android/iOS Pedometer?

Hello! I’m working on a game that needs to access (or emulate) a mobile phone’s pedometer, both for Android and iOS. Now, from what I’ve seen, there are a couple Android Asset Store options that could help, such as GyroDroid or Android Sensor, but there is no equivalent for iOS.

Does anyone know anything about how to implement this, or if there is some iOS version that I just haven’t come across? Alternately, would it be possible for me to access the native phone pedometer functions natively using Swift and Java for iOS and Android respectively, then somehow pass that data into Unity? If so, how would that work?

Bump! If this is the wrong forum for this, or if it’s just not really possible in Unity, please let me know! I’d like a response.

Do you need it while you’re in the game, or do you need to access the data from when the app is inactive?

hmmm not much out there in googleland… did find this one: Pedometer in unity? - Questions & Answers - Unity Discussions