-
Notifications
You must be signed in to change notification settings - Fork 72
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
null values for gyroscope #14
Comments
I haven't used Android 6 yet, so I couldn't say for sure, but it seems that it should be supported. Could it be that you are using incognito? Or that your device could be in a power saving mode, disabling the devicemotion api? |
Thanks for your reply! I doublechecked that power saving mode is off as well as incognito mode. The browser settings are set to very "liberate" allowing everything (Cookies, JS, GPS and so on). Probably there is something wrong with Chrome on this device. Gyro.js works fine with Firefox and Opera mobile on the same device. So, this is probably not an issue of your software. |
Could you provide the example code that you are using in Chrome 46 on the andriod? So I can try it out? |
Sure, here come's the code. (I attached ".txt" to the filename for uploading but it runs as-is with ".html" suffix.) I just tested again: One device is perfectly fine, the other is saying "null" for alpha, beta and gamma. |
Hi guys, did you ever resolve this? I ran into a similar problem a couple of months ago and, after doing a little research, it seemed like it had something to do with Android 6.0.1 failing to actually provide deviceorientation values (yet adding a deviceorientation listener to the Window). Do you know if this is the case? |
I'm seeing this on my Nexus 5 on Firefox, but it works fine on Chrome. Demo here: https://jsfiddle.net/kh87dLe9/2/embedded/result/ |
Hi Tom,
first of all, thank you for your implementation! I really appreciate your work.
Sadly, I found gyro.js to return "null" for gyroscope data (alpha, beta and gamma) on my Nexus 5 using Android 6 and Chrome 46.0.2490.76 for some reason. I cannot reproduce this bevahiour on other Nexus 5 running Android 5 and exactly the same browser version.
Is there any particular setting related to accessing the gyroscope in Android 6?
The text was updated successfully, but these errors were encountered: