cordova-plugins

Parse/Parse.h file not found - Xcode 6

旧城冷巷雨未停 提交于 2019-12-18 09:13:17
问题 I created project with cordova and ionic. I installed a Parse plugin (http://plugins.cordova.io/#/package/com.parse.cordova.core.pushplugin). When I open my project with Xcode I have an error: Parse/Parse.h file not found I tried a lot of solutions found on stackoverflow, but none corrects my problem. Framework Search Paths "MyApp/Plugins/com.parse.cordova.core.pushplugin" 回答1: Try this plugin, it has updated Parse SDK framework. https://github.com/avivais/phonegap-parse-plugin Install the

cordova plugin add external .aar file (not .jar)

别来无恙 提交于 2019-12-18 06:44:30
问题 I am writing a plugin to use the native android SDK of filepicker https://github.com/Ink/filepicker-android. On maven central, they only provide an .aar file (http://search.maven.org/#artifactdetails%7Cio.filepicker%7Cfilepicker-android%7C3.8.13%7Caar) and not a .jar. If I add this line in my config.xml <source-file src="src/android/filepicker-android-3.8.13.aar" target-dir="libs/" /> the file is copy in libs but not included in the class path during the build via cordova build , so the build

cordova plugin add external .aar file (not .jar)

人盡茶涼 提交于 2019-12-18 06:44:28
问题 I am writing a plugin to use the native android SDK of filepicker https://github.com/Ink/filepicker-android. On maven central, they only provide an .aar file (http://search.maven.org/#artifactdetails%7Cio.filepicker%7Cfilepicker-android%7C3.8.13%7Caar) and not a .jar. If I add this line in my config.xml <source-file src="src/android/filepicker-android-3.8.13.aar" target-dir="libs/" /> the file is copy in libs but not included in the class path during the build via cordova build , so the build

Cannot read a file using cordova file plugin in an Ionic 2 project

China☆狼群 提交于 2019-12-18 05:25:21
问题 I'm trying to use the Cordova file plugin to read an image saved in a mobile device so I can then get the base64 encoding of it, which I need to store remotely. The problem is that the resolveLocalFilesystemUrl() method, which is supposed to provide a File Entry object, instead seems to be returning an Entry object, which means I can't call file on it. Here is the code that should be getting the File Entry object so I can use the file method to read the file itself. MediaCapture.captureImage(

Start android activity from cordova plugin

旧时模样 提交于 2019-12-17 22:10:00
问题 I know this may is a duplicate question, i have tried all answers from stack, but non has a complete answer. Most answers just give how to start an activity but no hints how to configure activity in Android Manifest file and where to save activity layout and manifest file. Can anyone please give a complete code structure to start an activity from cordova plugin. 回答1: Here is the complete steps to start an activity from a cordova plugin 1. Install Plugman to create plugin npm install -g

Update cordova plugins in one command

China☆狼群 提交于 2019-12-17 21:25:35
问题 I am wondering is there an easier way to update cordova plugin? I googled, found a hook (@ year 2013), but this is not 100% what I want. I know I can do this by two steps: rm, then add but I am looking for a better (official) way to help me which plugins have newer version? and I can update ALL of them in one command. (just like: npm update) for example: $ cordova plugin list /* list all installed plugins, their dependencies, and newer versions */ $ cordova plugin update /* update all of them

Error: more than one library with package name 'com.google.android.gms' using cordova plugin admob along with google plus for android

与世无争的帅哥 提交于 2019-12-17 20:59:41
问题 When using google+ cordova plugin https://github.com/EddyVerbruggen/cordova-plugin-googleplus along with admob plugin https://github.com/appfeel/admob-google-cordova Encounter this error in Cordova CLI: Error: more than one library with package name 'com.google.android.gms' You can temporarily disable this error with android.enforceUniquePackageName=false Looks like one of the plugin is using deprecated references to google play services. While executing gradle build google play services is

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

How do I run a function cordova if the command embedded in external sites?

两盒软妹~` 提交于 2019-12-14 03:21:54
问题 I want to run a function to open the link in the android browser system. Here is an illustration of my questions. See the illustration What should I do? I only use javascript not java. Please help 回答1: Some time ago I encountered the same problem. To do this I modified the InAppBrowser source code. you should override the shouldOverrideUrlLoading method in the InAppBrowserClient class found in InAppBrowser.java This will allow you to hook in to the request before the url is being loaded and

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