universal-tilt.js icon indicating copy to clipboard operation
universal-tilt.js copied to clipboard

works on desktop but not on mobile...

Open tsvikasolan opened this issue 5 years ago • 7 comments

Hey great project!! I'm trying to implement universal test so made a little test, but it doesn't seem to be working on any mobile devices. Any idea why? http://www.postspace.org/ddtest/

tsvikasolan avatar Sep 27 '19 13:09 tsvikasolan

hint: On iOS it just works currently in mobile chrome.

Grienauer avatar Sep 27 '19 13:09 Grienauer

I was testing on android, and the examples on https://jb1905.github.io/universal-tilt.js/ are working fine

tsvikasolan avatar Sep 27 '19 13:09 tsvikasolan

I know the problem and I am working on it (will be ready for v3). In iOS 13+ user must manually enable access to the gyroscope (e.g., by clicking the button).

https://www.macrumors.com/2019/02/04/ios-12-2-safari-motion-orientation-access-toggle/

https://github.com/w3c/deviceorientation/issues/57

JB1905 avatar Sep 27 '19 14:09 JB1905

@JB1905 any idea why on my android device it doesn't work on http://www.postspace.org/ddtest/ but it works on https://jb1905.github.io/universal-tilt.js/ ???

tsvikasolan avatar Sep 27 '19 14:09 tsvikasolan

@tsvikasolan everything works for me (I checked both websites on the Android Studio emulator – Android v9 on Nexus 5). Could you give me more informations about your Android and universal-tilt.js versions? I could check it tomorrow.

JB1905 avatar Sep 27 '19 14:09 JB1905

@JB1905 Android 9 on a xiami mi 9. v2.0.6 of universal tilt

tsvikasolan avatar Sep 27 '19 16:09 tsvikasolan

@JB1905 I think I figured out the issue, it had to do with the site not being on https, which it is now so it works

tsvikasolan avatar Sep 28 '19 22:09 tsvikasolan