Cordoba vibrates not working

I run Cordova on Android and these are my configuration files.

config.xml

<feature name="Vibration">
    <param name="android-package" value="org.apache.cordova.vibration.Vibration" />
</feature>
<feature name="Media">
    <plugin name="Media" value="org.apache.cordova.AudioHandler" />
</feature>
<feature name="Notification">
    <param name="android-package" value="org.apache.cordova.Notification" />
</feature>

AndroidManifest.xml

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.VIBRATE" />

my js

navigator.vibrate(1000);

I use regular jQuery (not jQueryMobile) to work with the corridor.
A vibration plugin that is already installed on the command line from this page (git plugin) .

But vibration does not work.

+4
source share
2 answers

, , , . () "" , . , " 1000 ". , , (, ). , , , .

+10
  • config.xml phonegap, , CLI
  • androidmanifest , .
  • , navigator.notification.vibrate(1000)? ( , ).
+1

All Articles