Advantage of @capacitor/motion
compared to the Web API?
#7742
Unanswered
frederikheld
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone!
The documentation on
@capacitor/motion
is very sparse.So I'm not sure about this: does this plugin provide any advantage over the use of
window.addEventListener('devicemotion', (event: MotionEvent) => { })
?I've read that browsers are not consistent with the values they return from the
MotionEvent
, some browsers return negative values when others return positive. Does this plugin normalize the different behavior? Is this even an issue with the Android and iOS WebViews?Beta Was this translation helpful? Give feedback.
All reactions