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
[pedometer 2.0.2] Add a pedometer that uses accelerometer #262
Comments
I was using this pedometer dependence in my application I think there is an issue It doesn't seem to work. I am not able to figure out what the issue in could you please help me out. |
(I'm assuming you're talking about my fork.)
So in an app you may wish to call Refer to this: |
I have used this to build the pedometer functionality. The problem only comes when the application is being run on a oneplus 7 pro. I am not sure if it because I need to ask permission or something else. The steps tracking works well on my other Samsung phone but that phone is rooted. error on the oneplus device: |
Ill try using alternative stream and see if that solves the issues. |
If you are using my version, it may be better to create an issue on my repo: https://github.com/thevirtuoso1973/flutter-plugins |
Well I doesn't matter which repo I am using I am getting the same error. error: |
I have fixed the issue. This message comes when the user needs to give permission to the application to access the sensor at run time. |
Hello, I was trying to implement your alternative flow in the application I am working on. When I call the Pedometer.startPlatform(); It shows this error: Unhandled Exception: MissingPluginException(No implementation found for method startPlatform on channel pedometer/alt_pedometer) Could you please help me with this. |
Bravo! 👏👏👏 |
https://github.com/alexmercerind/flutter-plugins/tree/master/packages/pedometer I further worked on the fork & implemented the accelerometer based solution as a fallback to the same stream(s). |
Description
For users of Android phones that do not have a step counter, provide an alternative step count stream that uses the linear accelerometer. It could be implemented by a service, where the alternative step count stream will have events sent to it while the service is running.
Additional information
I've already implemented this feature in my fork, and was thinking of publishing my fork since the feature may be outside the scope of what this pedometer package wishes to achieve. But I thought I should let you know in case you wish to accept a PR on this. (You may get users complaining that it is inaccurate 🙃.)
The text was updated successfully, but these errors were encountered: