leecrossley / cordova-plugin-shake

Cordova / PhoneGap Plugin to detect when a physical device performs a shake gesture
http://ilee.co.uk
92 stars 33 forks source link

Uncaught TypeError... #4

Closed aml25 closed 10 years ago

aml25 commented 10 years ago

D/CordovaLog(16667): file:///android_asset/www/plugins/uk.co.ilee.shake/www/shake.js: Line 15 : Uncaught TypeError: Cannot call method 'watchAcceleration' of undefined

Phonegap 3.4.0 Android 4.4.2 Nexus 5

aml25 commented 10 years ago

I never added "plugin add org.apache.cordova.device-motion"

leecrossley commented 10 years ago

I should probably add this as a dependency