cordova-plugins

Cordova 6.3.1 plugin.xml set minSdkVersion doesn't work

那年仲夏 提交于 2019-12-10 10:39:45
问题 I'm working on a plugin for cordova and would like to set the minimum sdk version. However it isn't overwritten when I try to use these options in the plugin.xml file: <platform name="android"> <preference name="android-minSdkVersion" value="16" /> <preference name="android-targetSdkVersion" value="23" /> </platform> or in the manifest tag <config-file target="AndroidManifest.xml" parent="/manifest"> <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="23" /> </config-file> These

InAppBrowser (Apache cordova plugin) does not open in Windows 8.1

假装没事ソ 提交于 2019-12-10 10:09:07
问题 I am developing an app using visual studio tools for apache Cordova (Cordova CLI : 4.3.1) and AngularJS. It uses InAppBrowser plugin via ngcordova library. Here is my code: var url = "http://myurl.com"; var target = "_blank"; var options = { location: 'no', toolbar:'no', hidden: 'no' }; document.addEventListener('deviceready', function () { var browserRef = $cordovaInAppBrowser.open(url, target, options).then(function (event) { }, function (error) { console.log("Error: " + error.message); });

IONIC Android Apk File size Way Too Big ! how to decrease the size of app for android?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 07:01:09
问题 I have developed the app using ionic 3 and now while generating android apk file it 's size getting way too big. before the API integration The File Size Was 4.8MB once I Started API Interation I just Modified 10 Pages Then The APK File Size became 71 MB Cordova Plugins I have Used cordova-plugin-console cordova-plugin-datepicker cordova-plugin-device cordova-plugin-network-information cordova-plugin-splashscreen cordova-plugin-statusbar cordova-plugin-whitelist cordova-plugin-x-socialsharing

how do you export a file out of iOS when using cordova file plugin?

ε祈祈猫儿з 提交于 2019-12-10 05:43:41
问题 I'm using https://github.com/apache/cordova-plugin-file on an iOS device and I'm attempting to write files. I can write files ok but according to the iOS file system layout, all of these locations where I write are private. I'm guessing this is due to Apple's sandbox security model so that each app can only see files within its own bundle. This is different on Android where the cordova.file.externalRootDirectory location is NOT private. My question is: How do you export this file out of an

Issue with PhoneGap Network Information Plugin on iOS

故事扮演 提交于 2019-12-10 05:07:09
问题 I'm working on a PhoneGap app, and have an issue with installing one particular module, "Network Information" (https://github.com/apache/cordova-plugin-network-information). phonegap -v shows I'm running version 5.3.7 All other plugins seem to be working fine. This is an issue in the application I'm working on but I've also managed to reproduce it in a new application: The only two files I've changed are index.html and js/index.js in this example, and there is no js/cordova.js file, which is

Ionic 2 application to print via Sunmi V1

蹲街弑〆低调 提交于 2019-12-09 13:58:15
问题 For an ionic 2 app to print using Sunmi V1, added native plugin for printer by executing cordova plugin add cordova-plugin-printer First I checked whether the printer is available by checkPrinter() { this.printer.check().then(function () { alert("Printer available"); }, function () { alert("Printer not available"); }); } It alerts "Printer available" But the below method doesn't prompt any message printData() { this.printer.isAvailable().then(function () { this.printer.print("Test Data").then

Restrict uploaded image size Camera plugin cordova ionic

谁都会走 提交于 2019-12-09 12:53:56
问题 I have fetched the image using Camera plugin in my ionic app. I want to restrict the user on the size of the image which user is choosing, lets say 200kb. I have added Camera as File plugin. I have used below code: /*Function to get image from gallery*/ $scope.getImageFromGallery = function(){ var options = { quality: 100, destinationType: Camera.DestinationType.FILE_URI, sourceType: Camera.PictureSourceType.SAVEDPHOTOALBUM, popoverOptions: CameraPopoverOptions, saveToPhotoAlbum: false,

How to debug a cordova plugin for Android

China☆狼群 提交于 2019-12-09 11:32:57
问题 Hi I have created a cordova plugin for Android. But it is not functioning properly. I want to debug it an IDE. How can I debug the cordova android plugin file when I launch the application in my mobile? What are the different and easiest ways to do it? Thanks in advance. 回答1: Expanding response of laughingpine, i use this method: Debug javascript part with chrome + dev tools + genymotion. You can access it from "inspect devices" and you can debug javascript part. The problem is for debug my

How to configure Cordova-android 4.0 with white-list

此生再无相见时 提交于 2019-12-08 23:19:41
问题 Finally get Android stuido to work with the cordova-android 4.0 but i read that we must install the whitelist plugin but i dont know how to configure this plugin to work with cordova-android 4.0. i got error messasges as below 04-13 16:30:31.291 856-856/com.vs.VSMF W/Web Console﹕ No Content- Security-Policy meta tag found. Please add one when using the cordova-plugin-whitelist plugin. at file:///android_asset/www/plugins/cordova-plugin-whitelist/whitelist.js:25 04-13 16:30:41.290 856-856/com

Using branch.io with Meteor

人盡茶涼 提交于 2019-12-08 21:21:24
We've been trying to integrate branch.io into our Meteor app, but so far, we are stuck on step 1. Trying to follow https://start.branch.io/#/integrate-sdk/steps , under "Cordova", we've been unable to install the Cordova plugin successfully. We've tried various commands, including: meteor add cordova:branch-cordova-sdk@2.0.2 meteor add cordova:io.branch.sdk@https://github.com/BranchMetrics/tarball/a30665d8b12896d1aad9ee0beb42c516e5fc1f6c meteor add cordova:io.branch.sdk@https://github.com/BranchMetrics.git#a30665d8b12896d1aad9ee0beb42c516e5fc1f6c as instructed here How to add cordova plug that