cordova-plugins

Showing camera view inside html in android and then snap a picture

こ雲淡風輕ζ 提交于 2019-11-26 15:39:00
问题 Is there a view of showing the live camera view inside html ( e.g. embedded in a div ) before we snap a picture using JavaScript? I have tried PhoneGap but it totally starts a new camera app and totally moves away from my html web app before returning to it. I need something embedded in my app Thanks 回答1: You can install mbppower/CordovaCameraPreview plugin (for android,ios) in your Cordova/phonegap application that allows camera interaction from HTML code. A really amazing plugin it is.. You

Generating iOS and Android icons in Cordova / PhoneGap

吃可爱长大的小学妹 提交于 2019-11-26 13:09:49
问题 I have a freshly created Cordova project with the following config.xml setup (used the instructions from http://docs.phonegap.com/en/edge/config_ref_images.md.html). I also added 2 platforms (iOS and Android). When I run either cordova run ios or cordova run android , the project still has the default Cordova icons. My understanding from the documentation is that Corodva is supposed to create the icons automatically based in the icon.png I supplied in the config.xml . config.xml : <?xml

How to get documents in an android directory that PhoneGap will see

人走茶凉 提交于 2019-11-26 12:46:30
问题 I\'d like to be able to copy some files into my PhoneGap / Cordova\'s Documents directory, so that they show up when I use the cordova-plugin-file API to list that directory. Unfortunately, there seems to be some disconnect between the file API and what\'s actually laid out on the tablet\'s storage. Here\'s what the File plugin spec says the system directory structure should look like: Android File System Layout file:///android_asset/ | cordova.file.applicationDirectory file:///android_asset

Using katzer local notification in IBM Worklight

放肆的年华 提交于 2019-11-26 11:40:33
问题 I want to use this cordova plugin at https://github.com/katzer/cordova-plugin-local-notifications How to go about integrating this plugin with my existing IBM Worklight project? I have trying various methods to integrate it without any result. I am getting this error currently from the logcat: 02-24 11:15:03.035: D/CordovaLog(2439): file:///data/data/com.iCareApp/files/www/default/index.html: Line 17 : Uncaught TypeError: Cannot read property \'notification\' of undefined Or is there any

ionic 2 - Error Could not find an installed version of Gradle either in Android Studio

拥有回忆 提交于 2019-11-26 04:11:06
问题 I create ionic 2 project and add diagnostic cordova plugin like this : ionic plugin add cordova.plugins.diagnostic npm install --save @ionic-native/diagnostic and add android platform like this : ionic platform add android@latest but when build with ionic build android console give me this error : Error: Could not find an installed version of Gradle either in Android Studio, or on your system to install the gradle wrapper. Please include gradle in your path, or install Android Studio and I