Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] [ANDROID/IOS] your issue.... #2

Closed
Amrazyan opened this issue Jun 23, 2024 · 11 comments
Closed

[BUG] [ANDROID/IOS] your issue.... #2

Amrazyan opened this issue Jun 23, 2024 · 11 comments
Assignees
Labels
help wanted Extra attention is needed in progress We are working on it. Please add any relevant information or react to the main comment for updates

Comments

@Amrazyan
Copy link

Describe the bug
Sometimes when listening to step changes, it can give some wrong values, and then make corrections, for example
2024-6-23 12:17:09.300893
26485

2024-6-23 12:25:33.391574
26529

2024-6-23 12:25:33.391574
26533

2024-6-23 14:17:03.857615
26333

2024-6-23 14:33:55.859886
96784

2024-6-23 14:33:55.861243
26333
It happens on both platforms android and ios

@Amrazyan Amrazyan added the help wanted Extra attention is needed label Jun 23, 2024
@Flucadetena
Copy link
Owner

Hey @Amrazyan thanks for creating the issue and using the plugin. That is very interesting. I haven't experience it or maybe I did not notice.

Could you share a bit more about the situation: your testing code; how you are testing it, android and ios configuration and versions,... anything you believe could be relevant to the problem.
So I can try and reproduce it.

Thanks in advance ;)

@Amrazyan
Copy link
Author

Amrazyan commented Jun 23, 2024

Hi @Flucadetena Im testing on physical devices like iphone 13 and it happens on both ios and android , and Im using your example code sometimes its just lets say correcting values, here is another log, scoreIndex represents steps from _listenStepCountStream method
{"post":{"scoreIndex":"4778","todaySteps":"1560"},"timestamp":"2024-06-23 19:55:51"}
{"post":{"scoreIndex":"4778","todaySteps":"1560"},"timestamp":"2024-06-23 19:51:42"}
{"post":{"scoreIndex":"4778","todaySteps":"1560"},"timestamp":"2024-06-23 19:51:31"}
{"post":{"scoreIndex":"4778","todaySteps":"1560"},"timestamp":"2024-06-23 19:51:21"}
{"post":{"scoreIndex":"4778","todaySteps":"1560"},"timestamp":"2024-06-23 19:51:13"}
{"post":{"scoreIndex":"4743","todaySteps":"1525"},"timestamp":"2024-06-23 19:35:45"}
{"post":{"scoreIndex":"4934","todaySteps":"1525"},"timestamp":"2024-06-23 19:35:35"}
{"post":{"scoreIndex":"4924","todaySteps":"1515"},"timestamp":"2024-06-23 18:40:24"}
{"post":{"scoreIndex":"4924","todaySteps":"1515"},"timestamp":"2024-06-23 18:37:00"}
{"post":{"scoreIndex":"4924","todaySteps":"1515"},"timestamp":"2024-06-23 18:36:50"}
{"post":{"scoreIndex":"4924","todaySteps":"1515"},"timestamp":"2024-06-23 18:36:40"}

@Flucadetena
Copy link
Owner

Hi @Amrazyan I'll test it tomorrow and get back to you. Lets see if I can find a solution quickly.

I'll keep you posted.

@Amrazyan
Copy link
Author

Thank you so much

@Flucadetena Flucadetena pinned this issue Jun 25, 2024
@Flucadetena Flucadetena added the in progress We are working on it. Please add any relevant information or react to the main comment for updates label Jun 25, 2024
@Flucadetena
Copy link
Owner

Hey @Amrazyan I've been working on it and I can't seem to reproduce the problem. There are a couple of things that caught my attention and you can help me understand better the tests to see if I can reproduce it. Do this please and I'll try again:

1.- Paste de code you are using, if it is the example app paste the whole "main.dart" in here between ```
2.- I've noticed that there is a big jump between the timestamps when the step fluctuation occurs. (from 20" to 1h+). Please explain to me very detailed how you are testing and getting the results. (Are you installing the app and walking with it during the day? Are you shacking the phone? Do you reset the phone or app between tests?) Give me as much detail as you can.
3.- Tell me which versions of IOS and Android you are using and the phone models.

Hopefully with this I can reproduce it and give you more insight. ;)

@Amrazyan
Copy link
Author

Hi @Flucadetena , sorry for late reply, I will try to create example app, and share with you as soon as possible

@Flucadetena
Copy link
Owner

@Amrazyan Awesome thanks! No worries, taking the time you need, no hurry ;)

@Flucadetena
Copy link
Owner

Hey @Amrazyan any news on this? Where you able to find any new information??

@Amrazyan
Copy link
Author

Amrazyan commented Jul 17, 2024

Hi @Flucadetena https://we.tl/t-zcmB9J6Utz , Im sharing with you an example app,it is the simple representation of my real project.
The issue still happens for example in Iphone 15 pro 256 gb,I didnt reset my phone, I can sometimes shake it, use it during the day , the issue appears mainly when opening app and start to get datas, but for example if I open app and get data on every 15 seconds, it gives me normal values
3. previously I used IOS version 17.5.1 now Im in IOS 18.0 Beta version

@Flucadetena
Copy link
Owner

Hi @Amrazyan I'm not sure why but i cant open the link. Could you please share the repo of the project with me? or create a new repo in git and share it please?

@Flucadetena
Copy link
Owner

Hey @Amrazyan If you find a way to send me the code to test or get new info, feel free to comment or reopen the issue. Hope it worked out in the end ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed in progress We are working on it. Please add any relevant information or react to the main comment for updates
Projects
None yet
Development

No branches or pull requests

2 participants