Jump to content


Recommended Posts

How do you guys do motion detection (if any) in your apps?

Motion detection is when you detect when the user shakes their phone (for example). 

I just tried the following in Android Chrome to no avail:

Curious to see what people do to handle device motion. Currently, the best approach seems to be to use something like Flutter to shove device motion events into state, render the app into a Web view, and then query the motion state from the Web view as needed. 

Link to comment
Share on other sites

  • 2 weeks later...

I've been using device motion and gyroscope both. Are you running under https when testing? The api works (in chrome at least) only when it is requested on a site that is hosted on https. Also making sure that the device has required sensors is something that should be done.

Also on apple you need a separate permission to use gyroscope data. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...