phonegap-plugins

“'CDVPlugin.h' file not found” in Cordova as component (Cleaver)

主宰稳场 提交于 2019-12-17 15:36:22
问题 I added Cordova as a component to my iOS project. Adding a custom plugin leads to the error, despite that the plugin works in a Cordova-only project: 'CDVPlugin.h' file not found PhoneGap / Cordova 1.7.0 installed Checked multiple times to correctly implement the steps https://github.com/apache/incubator-cordova-ios/blob/master/guides/How%20to%20Use%20Cordova%20as%20a%20Component.md ("Adding Cleaver to your Xcode project (CordovaLib sub-project)") The Plugin works in a plain cordova-based

External links in phonegap app do not open well

旧时模样 提交于 2019-12-17 15:35:47
问题 So I have a phonegap project with Phonegap 2.9.0 and building with PhonegapBuild. I got external links in my app, that I would like to open inapp or using the default device browser outside of my app. I am ok for both solutions. Today my app open links inapp but it goes fullscreen, no zoom possible, and no button to come back in the app... I am trying to figure out a solution for days, and looking at the same kind of questions here but nothing work good. Could somebody explain clearly what is

Unable to load image when selected from the gallery on Android 4.4 (KitKat) using PhoneGap Camera Plugin

梦想与她 提交于 2019-12-17 09:23:49
问题 I'm trying to set the source of an img tag in my app based on the image chosen from the device image gallery using the PhoneGap/Cordova Camera Plugin. It has worked previously as intended on older versions of Android (3.3) and works fine on iOS but now fails to resolve the image path on 4.4 (KitKat). The returned path for the returned image url looks something like: content://com.android.providers.media.documents/document/image%3A352 When I use this path to set as the image src via JavaScript

Add entry to iOS .plist file via Cordova config.xml

限于喜欢 提交于 2019-12-17 06:25:15
问题 I am new to the Cordova CLI. I need to perform the following steps programmatically via Cordova. In the project .plist add a new row Enter the following values in the new row: Key : GDLibraryMode Type :String (default) Value :GDEnterpriseSimulation I think I need to do this in the config.xml file in my project's root (or maybe the one in the "platforms" folder). Can someone explain to me how to add the entry via the config.xml so that the above entry is added at compile-time? I am using

Cordova, why would InAppBrowser plugin be required to open links in system browser

会有一股神秘感。 提交于 2019-12-17 06:11:25
问题 I have a Cordova app, it is a single page application with a single HTML file. All links should open in the system browser. I don't want an "embedded" InAppBrowser but really the native system / external browser. Everywhere we can find example of code using InAppBrowser with something like: window.open('http://apache.org', '_system'); But why do we need to install InAppBrowser, even if we don't even plan to use an embedded browser? Can someone really expain what is supposed to be the behavior

Phonegap NativeControls not working

感情迁移 提交于 2019-12-14 04:17:04
问题 I've read and followed tutorials on this site or the web on how to add the NativeControls plugin to PhoneGap (Cordova 1.5) with Jquery Mobile. I haven't been able to get the toolbar to work properly. I've tried many different things with no luck. Here is my code: html: <!DOCTYPE html> <html> <head> <!--<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;" />--> <meta name="viewport" content="width=device-width,initial-scale=1"/> <link rel=

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

孤者浪人 提交于 2019-12-14 03:57:16
问题 I am using Cordova 2.8.1 and am generated application using Terminal. And i added EmailComposer.h & EmailComposer.m files in Plugins and EmailComposer.js file in www . <script type="text/javascript" charset="utf-8" src="EmailComposer.js"></script> added in index.html. In plist file i added key: EmailComposer and value: EmailComposer in Plugins. And finally in config.xml i added <feature name="Plugin"> <param name="ios-package" value="CDVPlugin"/> </feature> In button action am calling method

'cordova' is not recognized as an internal or external command

若如初见. 提交于 2019-12-14 03:16:30
问题 I am trying to install cordova 5.1.1 version using node.js, Command line interface. cordova got installed on the machine, but I am not able to use cordova command. When I list the packages, I can able to see installed cordova cordova, but can not run command to create project. System config : OS : windows 8, npm version : 1.3.21, Cordova version : 5.1. Error Message C:>cordova 'cordova' is not recognized as an internal or external command, operable program or batch file. 回答1: Need to set

Calling Phonegap/Cordova plugin functions from remote web page

柔情痞子 提交于 2019-12-14 02:15:27
问题 I'm loading a remote page into a Cordova app using: window.location = "http://myfoosite.net" The local Cordova app has some plugins set up and the remote page has cordova.js loaded into it. It seems to work fine as I can hook in to the deviceready event on the remote page and add an EventListener for 'backbutton', for example. If I call out to a plugin locally, it works fine: navigator.notification.alert("wooo", null); ... but not from the remote page. Is there any way to call out to plugins

Error::Plugin not allowed in config.xml - Cordova/Phonegap

我怕爱的太早我们不能终老 提交于 2019-12-13 21:13:39
问题 I am trying to create my first plugin in wp8, but I am getting this error Plugin not allowed in config.xml . What am I doing wrong? In config.xml <feature name="Echo"> <param name="wp-package" value="com.example.echo.plugins.Echo"/> </feature> In echo.js window.echo = function (str, callback) { cordova.exec(callback, function (err) { callback('Nothing to echo.'); }, "com.example.echo.plugins.Echo", "echo", [str]); }; In echo.cs using WPCordovaClassLib.Cordova; using WPCordovaClassLib.Cordova