Calculating the foot steps used by the user using ionic


I am trying to do an app like calculating foot steps used by the user for example like see and app available in play store.

After surfing a google i found a tutorial using but i would like create an app only with the mobile device not any external things like pedometer or smartwatch like that.

My Requirement is just to calculate the number of foot steps user used after click the button and to stop calculating the foot steps after clicking the stop button.

I did not found any plugin or blog or example app in ionic help me if some one know about this.

I have already asked this question in stack-overflow but no result no one answered