-
Notifications
You must be signed in to change notification settings - Fork 592
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
Improve acceleration output resolution #718
Comments
At the moment Motion plugin uses the web implementation in all platforms, so only Google and Apple can fix this. We might consider switching to a native implementation. |
adding more info:
That's why I think Motion-API should implement native methods to get "devices compass", and even adopt the methods used in the old Cordova's plugin. My project info: BTW - Be aware that heading and compass used sometimes interchangeably to describe relative deviation from the magnetic north, while sometimes heading is used to to describe the vector of change in position relative to the north. I'm talking about implementing digital compass in my app and not the other kind of heading. |
I think native implementation is the right direction. |
I've created a new issue for using native code in motion plugin, so I'm going to close this one in favor of the other one since the only way of improving the acceleration output resolution would be to use native code |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of the plugin, please create a new issue and ensure the template is fully filled out. |
Feature Request
Plugin
Motion plugin
Description
Output resolution for acceleration currently goes down to one decimal place (i.e. 10 cm/s^2 at best). The equivalent cordova plugin provides the same acceleration measurement on the same hardware down to several decimal places, as if it was returning the full floating point number. Would it be possible to return the same float with the Capacitor motion plugin?
Preferred Solution
Return full float output from motion plugin.
The text was updated successfully, but these errors were encountered: