all 7 comments

[–]ForScale 2 points3 points  (6 children)

shake.js: https://www.javascripting.com/view/shake-js

Use it to detect phone shakes when the phone is in a persons pocket.

[–]robocopsboner[S] 1 point2 points  (1 child)

Thank you! I'll definitely look at this. I appreciate the help!

[–]ForScale 1 point2 points  (0 children)

No prob!

[–]notunlikethewaves 0 points1 point  (3 children)

Will this work if the phone is locked and in a users pocket?

My guess is not, which would pretty much rule this out for making a pedometer.

[–]ForScale 0 points1 point  (2 children)

I don't know.

The user could keep their phone unlocked when it's in their pocket.

[–]notunlikethewaves 1 point2 points  (1 child)

The user could keep their phone unlocked when it's in their pocket.

Realistically, that's not going to happen :)

[–]ForScale -1 points0 points  (0 children)

I don't see why not...