I'm using Cordova CLI (v6.0.0) to make an app for Android and I can't load the plugins: cordova-plugin-file and cordova-plugin-dialogs. I know it because the next alerts are shown:
if (!navigator.notification)
alert("Plugin notification not working properly!");
if (!window.requestFileSystem)
alert("Plugin file not working properly!");
Plugins are used after clicking a button (not before ondeviceready event). Plugins have been installed with:
cordova-plugin-file v.1.2.0
cordova plugin add cordova-plugin-file
cordova-plugin-dialogs v4.1.0
cordova plugin add cordova-plugin-dialogs
I've also added the next line in config.xml
<preference name="AndroidPersistentFileLocation" value="Compatibility" />
What I'm doing wrong?
The next line, in the main html file, was missing:
<script type="text/javascript" src="cordova.js"></script>
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments