Cordova plugin not recognized
I am creating a cordova project, installing nodejs, cordova, etc. I am using CLI methods.
To add a plugin, I use:
cordova plugin add cordova-plugin-dialogs
In my HTML:
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
navigator.notification.beep(1);
}
In my config.xml file:
<feature name="Notification">
<param name="android-package" value="org.apache.cordova.dialogs.Notification" />
</feature>
I have this in Android Studio console
"Uncaught TypeError: Cannot read property 'beep' of undefined"
I added a media plugin with the same problem, but the vibrating plugin works well.
+3
source to share
No one has answered this question yet
Check out similar questions: