Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

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

Open
UjjawalPanchal opened this issue Sep 9, 2020 · 2 comments
Open

Comments

@UjjawalPanchal
Copy link

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
Copy link
Author

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.

@Shahrozjd
Copy link

Shahrozjd commented Nov 20, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants