Jo
Posts: 0
Joined: Sat Jul 19, 2014 4:50 pm

Capturing a shake.

Hello,
I'm trying to capture a shake gesture from the device. I saw a couple of examples that use phoneGap, so I assume it should be doable with the appery platform.
Specifically, I looked at:

https://gist.github.com/leecrossley/4...
and
https://gist.github.com/ucavus/5418463

I called the startWatch() function on page show, and stopWatch() on page hide.

I've turned on location services on my android device.

I've put a simple alert within the callback function.

However nothing happens on my android device. I'm not sure if the shake is getting detected.

Could anyone point me in the right direction?

Thanks.
-Jo

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Capturing a shake.

Hello -

I recommend you to start from simple PhoneGap examples from official documentations here: http://docs.phonegap.com/en/3.3.0/cor...

-- and after that moving to develop the custom code implementations.

Jo
Posts: 0
Joined: Sat Jul 19, 2014 4:50 pm

Capturing a shake.

I found an appery tutorial on it!
http://devcenter.appery.io/tutorials/...

and there I found the crucial piece of information:
Please recall that since we’re invoking a native component, the app needs to be tested as a hybrid app, or installed on the device.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Capturing a shake.

All native device features and APIs in the app needs to be installed on the device to test these features.

Return to “Issues”