+ 10
RIP motion API
hello, I discovered that the device motion API and device inclination API do not work anymore, yet a few months ago these APIs worked perfectly, I tried locally to be sure and it did not work either ... Does anyone have any information please?
15 Answers
+ 16
this is probably caused by a webview update affecting the 'devicemotion' event
try going here and remove (reverts to the system original webview version)
https://play.google.com/store/apps/details?id=com.google.android.webview
here is a link regarding this in stackoverflow (also a link there for the issue with greater details)
https://stackoverflow.com/questions/47632828/device-orientation-and-motion-on-webview-and-chrome
+ 19
This had happened to me also once with a browser update.
Most probably that time it was just a bug and it was fixed in the next update.
https://www.sololearn.com/Discuss/915546/?ref=app
EDIT : It doesn't seem to work for me either.
+ 11
np â„Maximee
it just happened to me as well and it was just a shot in the dark đŻ
+ 9
Burey omg it work đđ thank you so much you are great đđ
+ 8
https://code.sololearn.com/WhoG2aCIffJu/?ref=app
few months ago it was working perfectly :/
+ 8
nope :/ I've send the code link at lot of friends and the code doesn't work for them either
+ 8
ok thank you Swapnil Srivastava :)
+ 6
Hi Maximee not sure which api you are referring to but I checked one of my codes and my device motion is still working so hope the info helps.
+ 6
Maximee your code appears to be working for me the arrow is moving and the numbers are changing. Did you drop your phone by chance? It may be your device I wonder?
+ 5
the devicemotion and 'deviceorientation listeners still work on all of my codes
+ 5
crazy :/ for me it doesn't work
+ 5
Maximee if you want to post your code here we can try to help figure out why it's not working for you.
+ 5
Brains your question got me intrigued: found a simple explanation here:
https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent/accelerationIncludingGravity
+ 4
https://www.alsacreations.com/xmedia/doc/original/device-orientation-z.jpg
+ 1
if i may ask guys,what is acclerationIncludingGravity.z?
i know of x and y but z just seems to producing random values