cordova-plugins

Corodova file transfer not working after updating to ionic 2 RC0

半世苍凉 提交于 2019-12-24 05:57:40
问题 Since updating my ionic 2 app to release candidate RC0 the Cordova file transfer plugin is no longer working properly. The server doesn't get any of the parameters (params). The relevant part of my code looks like this: var now = Date.now(); const ft = new Transfer(); var options:any; options = { fileKey: "photo", fileName: this.userID + '_' + now + '_' + fileURL.substr(fileURL.lastIndexOf('/') + 1), mimeType: "image/jpeg", params: { user_id: 1, title: this.title, item_type: 'P', latitude:

Latest cordova-plugin-mfp-push errors when doing Cordova build Android

╄→гoц情女王★ 提交于 2019-12-24 05:44:30
问题 Plugin Version : 8.0.2018100111 When ever i run Cordova build android with cordova-plugin-mfp-push plguin installed i am getting the below error mentioned. I am able to resolve the error by changing the classpath 'com.google.gms:google-services:+' to classpath 'com.google.gms:google-services:4.1.0' which has been mention in the build-extras.gradle file of the plugin. Since we are building via jenkins changing this will be annoying and i am here to ask is there a better way (automated) script

Cordova/Phonegap File Transfer plugin

不羁的心 提交于 2019-12-24 04:51:53
问题 I'm using Cordova/Phonegap and I want to use a plugin for download a file and put it in Downloads folder. I find the plugin FileTransfer http://docs.phonegap.com/en/edge/cordova_file_file.md.html#FileTransfer I'm using this plugin but I don't known the path of folder Download in every device another i want to use the native notification of device...I read that I download the file from remote server but I don't where is and don't show the native console...this is my code in my controller var

How to access a value from a Phonegap plugin in an Angular controller?

梦想的初衷 提交于 2019-12-24 03:54:11
问题 I'm new to Angular and getting stuck on something I hope is simple. I need to read the app version using this plugin (app version plugin). I know I need to read the version in the run handler but I can't figure out how to get it into my controller so I can data-bind to it. Here's my code so far which reads the version properly: var appVersion = "0.0.0"; var example = angular.module('surj', ['ionic']) .run(function ($ionicPlatform) { $ionicPlatform.ready(function () { cordova.getAppVersion

How to handle SAP Kapsel Offline app OData conflicts properly?

流过昼夜 提交于 2019-12-24 03:45:10
问题 I build an app that is able to store OData offline by using SAP Kapsel Plugins. More or less it's the same as generated by WEB ID or similer to the apps in this example: https://blogs.sap.com/2017/01/24/getting-started-with-kapsel-part-10-offline-odatasp13/ Now I am at the point to check the error resolution potential. I created a sync conflict (chaning data on the server after the offline database was stored and changed something on the app and started a flush). As mentioned in the

Ionic Cordova camera plugin error on Android

天涯浪子 提交于 2019-12-24 02:02:40
问题 Cordova version is: 6.3.0 Cordova Android version is: 5.0.0 Camera Plugin version: cordova-plugin-camera 2.2.0 "Camera" My code works on multiple devices with Android 5.0 and Android 6.0 but it does not working on Android 4.4, Android 4,3 etc. In Android 4.4 and 4.3 camera plugin triggers both camera and library but it does not get into .then(function(ImageData){..} it goes into error function. $scope.gallery = function() { var options = { quality : 80, destinationType : Camera

Add Task Scheduler

。_饼干妹妹 提交于 2019-12-23 20:27:55
问题 I´m developing an Apache Cordova application and I want to know if I can add tasks to the scheduler device. I have to run an alarm and notification at a specific time, how can I do this? I thought about adding a task to the scheduler device and delegate responsibility. This is possible? At least Android 4.4 Thanks! 回答1: first off all: Yes, you're of course able to do so. Sebastian Katzer wrote a plugin for that. It can be found here: Cordova - Local Notification Plugin. This Plugin allows you

Cordova InAppBrowser and <a target=“_blank”> not working

ⅰ亾dé卋堺 提交于 2019-12-23 20:03:08
问题 I am using Cordova 3.4.1 on iOS with the InAppBrowser plugin version 0.4.0. When I have an <a href="...." target="_blank"> element, it is supposed to open in the InAppBrowser but it doesn't. Instead in replaces my app in the CordovaWebView and I have no way of getting back to the app. if I do window.open it seems to work fine, but it isn't really feasible for me to add onclick handlers to all my links to then open them up in the InAppBrowser. 回答1: This seems to be by design as per this bug...

How to include Multiple AAR files in custom Cordova Plugin?

余生颓废 提交于 2019-12-23 18:20:35
问题 I am new to the Cordova Development. I need to write a custom plugin which is referring two .aar files. I am able to add the first .aar file to the plugin however I am having some doubts for adding the second .aar file. Can I add the second .aar file in the same custom plugin ? or Do I need to create another custom plugin for using the other .aar file ? Below is the SO question that helped me to add the first .aar file in the plugin: Cordova plugin development - adding aar Any help on this

Add a plugin with variables

落爺英雄遲暮 提交于 2019-12-23 13:54:33
问题 How do you add an plugin not using the <vs:feature /> sections. I need to add some plugins that when you add them they ask for variables. If i use cordova plugin add, how do I then reference the plugin in the application? This is driving me crazy, seems a proper over site and makes the whole thing unusable. I keep getting the error: Error 17 Variable(s) missing: APP_ID, APP_NAME F:\Development\sdfsdfsd\sdfdsfi\EXEC 1 1 sdfsdfsd Error 18 The command ""C:\Users\Tom.AD\AppData\Roaming\npm\node