cordova-plugins

How do I properly configure photo file to match format of html input.files with Cordova Camera?

耗尽温柔 提交于 2019-12-31 07:43:46
问题 I have an existing web service that handles user input of a photo (as well as some other number and text data). The photo is captured via the input tag: <input type="file" id="image-input-solo" accept="image/*" capture="capture" /> In the javascript I grab the image via the Files API like so: $('#image-input-solo').on('change', function() { window.__file = this.files[0]; }); // which gives me a File Object like this: File { lastModified: 1507749812264 lastModifiedDate: Wed Oct 11 2017 12:23

javax.net.ssl.SSLHandshakeException:cert.CertPathValidatorException:Trust anchor for certification path not found -error in Cordova for Android

江枫思渺然 提交于 2019-12-31 05:13:11
问题 I have integrated Cordova-plugin-client-certificate-addictic in a Cordova app. It’s working great in iPhone but when I run app on Android it’s not working. Error message I am getting in Android is: java.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException:Trust anchor for certification path not found. Should I need to do some additional stuff for Android, I searched on stack overflow and on github nothing worked so far. Please suggest. 回答1: After trying various

Adding plugin parameters through config.xml in Visual Studio doesn't work

泪湿孤枕 提交于 2019-12-31 04:16:12
问题 I am using VS2013 Update 4 with Apache Cordova Tools CTP 3.1. I have been struggling with installing two plugins where both of them use the <preference> tag in their plugin.xml. It is basically the same as this but the suggestions in the answers don't seem to help at all. It also seems like the problem is not specific to the Facebook Connect plugin, hence this new question. https://msdn.microsoft.com/en-us/library/dn757051.aspx#Configuring shows that adding parameters to plugins is supported

Ionic splash screen and spinner

别来无恙 提交于 2019-12-30 10:44:11
问题 Is there a way to customize spinner in splash screen? Currently I am using cordova splashscreen plugin and I want to change the color of spinner that appears on the splash screen. 回答1: In platforms/android/src/org/apache/cordova/splashscreen/SplashScreen.java , at the top: import android.graphics.drawable.Drawable; import android.content.res.Resources; And further down the bottom replace with this function: // Show only spinner in the center of the screen private void spinnerStart() { cordova

Google Maps on Ionic Framework/Cordova not working on android build

久未见 提交于 2019-12-30 06:54:26
问题 I have been writing code for an app to track user location and display it using Google Maps. My code works perfectly in browsers (Safari,Firefox,Chrome) but doesn't work at all on mobile (android). The google maps api doesn't work and the navigation is unreliable. I'm a ionic newbie and wrote a fairly simple app to test it out. It has got ionic side menu template with some simple AngularJS controller. angular.module('starter.controllers', []) .controller('AppCtrl', function($scope,

Google Maps on Ionic Framework/Cordova not working on android build

感情迁移 提交于 2019-12-30 06:54:16
问题 I have been writing code for an app to track user location and display it using Google Maps. My code works perfectly in browsers (Safari,Firefox,Chrome) but doesn't work at all on mobile (android). The google maps api doesn't work and the navigation is unreliable. I'm a ionic newbie and wrote a fairly simple app to test it out. It has got ionic side menu template with some simple AngularJS controller. angular.module('starter.controllers', []) .controller('AppCtrl', function($scope,

Invoke native file browser using phonegap

可紊 提交于 2019-12-30 04:33:06
问题 I have to implement file upload feature in my phonegap project. User should be able to upload any type of file from the phone memory or sd card. The application screens I designed using jQuery Mobile framework. I tried input type="file", but it is not supported in android 4.4. I tried phonegap camera API too, but it is supported only media files. I found some cordova plugins (exm1,exm2 ). But these plugins using custom UI. I want to invoke native file browser for choosing the file & it has to

Manage cordova plugins with npm + package.json

拥有回忆 提交于 2019-12-29 12:03:00
问题 We have an Angular + Ionic + Cordova project with multiple devs that we'd like to manage cordova plugin dependencies for. We are using Cordova CLI 5+, and when manually running the install commands (e.g. cordova plugin add cordova-plugin-camera ), a new line gets added to the cordovaPlugins section of the package.json file. Here's what the finished product looks like: "cordovaPlugins": [ "cordova-plugin-camera", "cordova-plugin-console", "cordova-plugin-contacts", "cordova-plugin-device",

Adding google plus login to ionic app

风流意气都作罢 提交于 2019-12-28 02:16:29
问题 I am trying to add google plus login to my ionic app . Following this link gives me an error. https://ionicthemes.com/tutorials/about/google-plus-login-with-ionic-framework Error is : cannot read property googleplus of undefined. Here is my app.js : .run(function($ionicPlatform) { $ionicPlatform.ready(function() { if (window.cordova && window.cordova.plugins.Keyboard) { cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true); cordova.plugins.Keyboard.disableScroll(true); } if (window

cordova inappbilling error package.json is invalid

拟墨画扇 提交于 2019-12-25 17:37:08
问题 I am developing a cordova based app. When I am trying to add this plugin I am getting this error Error:Invalid package.json https://github.com/poiuytrez/AndroidInAppBilling I followed this Here is my code cordova plugin add C:/Users/xxxxx/fbapp/plugins/AndroidInAppBilling --variable BILLING_KEY="xxxxxxxxxxxxxxxxxxxxxxxxxxx" 回答1: I followed the steps below to make it work: Download the plugin from github and saved the exploded folder (AndroidInAppBilling-master) in C:\ drive Navigate to