Phonegap: Slow response with vibrate notification

Posted by jjei on Stack Overflow See other posts from Stack Overflow or by jjei
Published on 2013-10-27T18:28:32Z Indexed on 2013/10/27 21:54 UTC
Read the original article Hit count: 346

Filed under:
|

I created a simple android application with jquery and phonegap. When testing the app with phone, I noticed that vibration effect, that I have used to indicate that user touches a button, comes after a delay of maybe 0,5 seconds. This is way too long delay and just confuses the user.

Is this just the downside of using phonegap? Or is there any configuration or additional frameworks which could be used to make the app response and produce the vibration more quickly?

I installed the vibration plugin like this: phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration.git

I use the code below to create the vibration effect.

navigator.notification.vibrate(200);

My phone gap version is 3.0.0-0.14.3

© Stack Overflow or respective owner

Related posts about cordova

Related posts about phonegap-plugins