cordova-plugins

Plugin not found, or is not a CDVPlugin. Check your plugin mapping in config.xml

时间秒杀一切 提交于 2019-12-04 09:28:38
问题 I have declared my plugin file for iOS inside plugin.xml like so: <config-file target="config.xml" parent="/*"> <feature name="CDVOP"> <param name="ios-package" value="CDVOP"/> </feature> </config-file> <header-file src="src/ios/CDVOP.h" /> <source-file src="src/ios/CDVOP.m" /> In the plugin JavaScript file I have this function which I later call from the JavaScript app showCatPictures: function(interval) { exec(null, null, 'CDVOP', 'showCatPictures', [interval]); }, I am running the app that

FileSystem on Cordova 3.4.0 fails “Could not create target file”

六月ゝ 毕业季﹏ 提交于 2019-12-04 08:19:56
I recently upgraded my iOS Cordova project from 2.7.0 to 3.4.0. After upgrading filesystem access is broken. (seems to work in the simulator though?) I get an error message stating "Could not create target file", I googled around and thought to change my "fullpath" to "toURL()" but to no avail. I really don't know what to try next? here's my download code window.requestFileSystem( LocalFileSystem.PERSISTENT, 0, function onFileSystemSuccess(fileSystem) { fileSystem.root.getFile( "dummy.html", { create: true, exclusive: false }, function gotFileEntry(fileEntry) { var sPath = fileEntry.toURL()

Local image for marker icon on Cordova/Phonegap Google Maps Plugin

我怕爱的太早我们不能终老 提交于 2019-12-04 08:10:34
Is it possible to use an image locally store on the device as the marker icon? I can use a URL and it works, but when I try to use a local image it won't load. How should I reference the image? This is a multiplatform application so I can't use device specific paths like Android file:///android:asset/ map.addMarker({ 'position': new plugin.google.maps.LatLng(13.7579507,100.5643353), 'title': 'Fortune Town', 'icon': '../templates/icon2.png' }, function(marker) { marker.showInfoWindow(); }); I am using Ionic Framework (which uses AngularJS ) and Apache Cordova with the Google Maps plugin from

Open Camera or Gallery from “ inappbrowser ” in Apache Cordova

你离开我真会死。 提交于 2019-12-04 07:07:40
I have a hybrid application developed using Apache Cordova, within that application I am using " inappbrowser ". Now the requirement is to open Camera or Gallery from the inappbrowser, I am not able to figure out how to achieve this. For developing this application I am using backbone.js, JQuery, bootstrap.js. Here is the code snippet of Backbone's View : var mainScreenView = Backbone.View.extend({ el: $('.panel'), templateMainScreen: _.template($('#templateOne').html()), events: { "click #inputBtnSubmit": "openWebView", "click #clickSettings": "openSettings" }, initialize: function(){ this

Is it possible to build Cordova App online?

天涯浪子 提交于 2019-12-04 05:01:00
I am making making an app using PhoneGap framework. PhoneGap provides build Service ( http://build.phonegap.com ) that allows us to build and package app in cloud .You do not need to install any SDK locally to build app. Is there any way to build cordova app Online Did you try Monaca? They have free plans: https://monaca.io You could also use Intel XDK platform. I've found very useful to develop in brackets+chrome and test and build in intel xdk. They have a very powerful emulator (over ripple afik). Also intel-xdk is becoming more powerful every day and they are actively improving it. To

cordova-plugin-file in Chrome: cordova is not defined

岁酱吖の 提交于 2019-12-04 03:19:31
I use cordova-plugin-file in my ionic app to download images and save to local. When I run it in emulator or iphone, there is no error, but when I test it in Chrome, it says, cordova is not defined when I try to access cordova.file.dataDirectory How can I run cordova-plugin-file in chrome? LeftyX Cordova will not be available in the browser; only on your device. In your index.html you should have this script reference: <!-- cordova script (this will be a 404 during development) --> <script src="cordova.js"></script> As the note says, the script won't be available during the development. It

Install Cordova plugin without package.json file on it

好久不见. 提交于 2019-12-04 03:18:56
问题 I'm trying to install a Cordova Plugin with Cordova CLI 7. This plugin does not have a package.json file on it, so it throws an error when adding it to my project. I've tried converting the config.xml file using plugman. And it works fine for Android but it doesn't for iOS. I feel like I'm missing some configuration from the config.xml in my package.json file. Is there a way to safely convert the config.xml in a package.json file? or a way to install it using the config.xml file? Thanks 回答1:

Cordova Facebook plugin : missing variables APP_ID, APP_NAME

空扰寡人 提交于 2019-12-04 03:15:46
问题 When I do : cordova plugin add https://github.com/phonegap/phonegap-facebook-plugin.git I get the error : Error: Variable(s) missing: APP_ID, APP_NAME Where do I have to configure these variables ? 回答1: Look at the bottom of the README.md file on that github repository. You'll see it gives you instructions for installing the plugin and including the variables: plugman install --platform [PLATFORM] --project [TARGET-PATH] --plugin [PLUGIN-PATH] --variable APP_ID="[APP_ID]" --variable APP_NAME=

Cordova Change AndroidManifest using Config.xml file

£可爱£侵袭症+ 提交于 2019-12-03 23:54:41
I am in need to add some tags to the AndroidManifest.xml file which is found under platforms\android\AndroidManifest.xml As I have read the AndroidManifest.xml file gets generated on the fly and it is not advisable to edit it. So is there a plugin that I can use that will modify the AndroidManifest.xml file for me with the values that I give it in the config.xml file? Since the recent release of cordova@6.4.0 you can use the <edit-config> tag in config.xml to do this without requiring a 3rd party plugin. For example: <edit-config file="AndroidManifest.xml" target="/manifest/uses-sdk" mode=

Android: Deviceready has not fired after 5 seconds

夙愿已清 提交于 2019-12-03 22:14:42
After update Cordova to v6.4.0 and Android platform to 6.0.0, my app don't work any more. I'm getting this: deviceready has not fired after 5 seconds. cordova.js:1223 Channel not fired: onCordovaInfoReady cordova.js:1216 Channel not fired: onCordovaConnectionReady cordova.js:1216 I tried to remove all plugins and add it one by one. I found that is a problem with cordova-plugin-device and cordova-plugin-network-information. All my plugins are up to date If you happen to be running the Crosswalk plugin in your app I just confirmed that uninstalling it and reinstalling via; cordova plugin add