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

Class not found #22

Closed jroliveira closed 8 years ago

jroliveira commented 8 years ago

Hello,

Could you please help me? The line bellow returns the error "Class not found": What could be?

shake.startWatch(
  function () {
    logger.error('device is being shaken');
  }, 40, function (err) {
    logger.error('device on error: ' + JSON.stringify(err));
  });
jroliveira commented 8 years ago

Hello,

I found the problem. I didn't register the plugin cordova-plugin-device-motion in plugins/android.json.

Thanks anyway