Stepcounter crashes after restart phone and then the cordova-plugin-stepcounter doesn't work anymore

#1

Hello everyone,

currently I implementing an ionic app for Android, with the feature to count steps. For this I used the native api of Cordova: cordova-plugin-stepcounter.

When I install the app on a Samsung S9, Samsung S7, Samsung Note or another Smartphones the steps are counted after the first start of the app. I can close the app and the steps will still be counted. Everything runs smoothly until a restart crashes the app. After restarting the phone, the app crashes and no more steps are counted. The value of the step is the same as before the phone restart. After a restart, the steps are no longer counted.

Running the method “start(startingOffset)” to get the stepcounter running again is unfortunately not enough. In order for the Stepcounter to work again, you have to uninstall and reinstall the App.

Thanks for any advice :slight_smile: