daily_steps icon indicating copy to clipboard operation
daily_steps copied to clipboard

Step count reset to 0 on application open every time iOS.

Open UjjawalPanchal opened this issue 4 years ago • 2 comments

Hello, I am facing the issue in iOS, every time I kill and open the application it resets my step counter to zero. Please help.

I followed also the steps of this link https://github.com/cph-cachet/flutter-plugins/tree/master/packages/pedometer

UjjawalPanchal avatar Sep 09 '20 06:09 UjjawalPanchal

Hello, I am facing the issue in iOS, every time I kill and open the application it resets my step counter to zero. Please help.

I followed also the steps of this link https://github.com/cph-cachet/flutter-plugins/tree/master/packages/pedometer

Need urgent help.

UjjawalPanchal avatar Sep 10 '20 05:09 UjjawalPanchal

you need to add condition,becuase in start your savedstepcount is equals to todaysteps, add if(todaySteps == 0) { todaySteps = value; } below todaySteps = value-savedStepsCount; in setstate in getTodaySetps function

Shahrozjd avatar Nov 20 '20 12:11 Shahrozjd