cordova-plugins

cordova - Multiple dex files define Lcom/google/android/gms/iid/zzc

…衆ロ難τιáo~ 提交于 2019-12-04 18:50:57
问题 I am trying to compile a cordova app for android and I am getting this error. Any ideas? This is the error I am getting: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':transformClassesWithDexForArmv7Debug'. > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/iid/zzc; * Try: Run with

Download file in ios for ionic 3 not showing in files folder

徘徊边缘 提交于 2019-12-04 17:44:32
ionic 3 I am using #cordova-plugin-file-transfer, to download the file from url in android and ios. For Android it is working fine. But for ios app, i am facing a problem. The file is downloading successfully, but i am not able to see downloaded file on ios device. Here is my code for ios => const transfer = this.transfer.create(); transfer.download(url, cordova.file.documentsDirectory + fileName).then( entry => { console.log(entry); this.apiService.showError("Download Succeeded."); this.commonService.dismissLoading(); }, error => { console.log(error); this.apiService.showError("Download

Error to compile Ionic 3 with Cordova: cordova\\node_modules\\cordova-common\\src\\superspawn.js:169:23

本小妞迷上赌 提交于 2019-12-04 17:03:02
In Ionic 3 with Cordova when I give the command: ionic cordova run android --emulate It gives the following message: BUILD FAILED in 3s at ChildProcess.whenDone (C:\wellfitapp\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23) at emitTwo (events.js:126:13) at ChildProcess.emit (events.js:214:7) at maybeClose (internal/child_process.js:925:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5) (node:9040) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a

Cordova Camera Plugin returns green pictures Windows Phone 8.1

早过忘川 提交于 2019-12-04 16:16:44
Very strange behaviour: after takinf a 2nd or third picture using cordova camera plugin returned picture is green and about 200kb while normally about 2 mb. When taking more 'green' pictures application crashes and default camera screen becomes green untill phone is restarted. Tryed different parameters like getting url instead of base64, different picture sizes - no luck. This is reproduced on Nokia Lumia 520, but Microsoft Lumia 535 allowes to take about 6 pictures. While android works fine. Code looks like: navigator.camera.getPicture(onSuccess, onFail, { quality: 50, destinationType:

Opening PDF file in ionic 2 app

只谈情不闲聊 提交于 2019-12-04 16:01:17
问题 I am trying to make an ionic 2 app. I have a pdf generated using jsPDF. The code for the same is var doc = new jsPDF(); doc.setFontStyle('Bold'); doc.setFontSize(14); doc.text('Testing PDFs', 20, 20); Now I want to save the open the PDF in the mobile app, but doc.output('save', 'tester.pdf'); doesn't seem to work in the mobile app. Please can you tell me which plugin can I install so as to view and share the newly made pdf. 回答1: I think includes script via external URL may not a good option

How to implement phonegap/cordova in android webview?

喜欢而已 提交于 2019-12-04 15:10:13
I need just a few minutes for someone to tell me if these steps are correct for implementing cordova in a android webview: EDIT: Ok I finally got it working these are the right steps: 1) I create project: cordova create hello com.example.hello HelloWorld and enter the folder 2) cordova platform add android , cordova run android (cordova.jar is created) => the app is launched => device is ready is shown 3) I create a cordova_layout.xml in "/res/layout" with this code: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout

Status bar notification for web app with PhoneGap / Cordova

时光怂恿深爱的人放手 提交于 2019-12-04 14:04:46
I am developping a web app for iOS and Android, using the last version of PhoneGap. I want to send Notifications to the users on their phone's status bar, and I cannot figure out how to do that. It seems that there was a Cordova plugin (StatusBarNotification) that once existed, but all the links I find are dead. If anyone knows a way to send notif to the statusbar, I would be grateful. Thanks Quentin EDIT : I should have been more specific : I am trying to understand how to use the status area on phones ( http://developer.android.com/guide/topics/ui/notifiers/notifications.html ), and for that

cordova, Firebase, FCM Plugin - Not showing notifications in notification bar on iOS

自作多情 提交于 2019-12-04 13:10:36
问题 I'm using this plugin with cordova: cordova-plugin-fcm to get notifications working. It works good on Android. Problem is with iOS, when the app is in foreground the notifications arrives. But when the app is closed or in background, the notification doesn't show in notification bar, but when I open the application I can see the notification arriving and the popup I generate, gets opened. But I really need to notification to show in lock screen and in the notification bar. This is what I'm

cordova.file is undefined for windows / wp8

佐手、 提交于 2019-12-04 13:04:04
问题 I'm trying to export an app done with Cordova to desktop/tablet Windows 8.1 and Windows Phone 8.1. My app works successfully on Android, iOS. cordova -v 4.1.2 cordova plugins list org.apache.cordova.file 1.3.1 "File" But when I try on a Windows 8.1 or Windows Phone my app fails. The "cordova.file" is undefined. I can't access to cordova.file.dataDirectory to store my data or any cordova.file.* properties alias. I see no "Quirks" for Windows on https://github.com/apache/cordova-plugin-file

Cordova 3.6.3 File plugin - get local video file on android

北城以北 提交于 2019-12-04 13:03:07
What I'd like to do is get the URI of a video file on the device via cordovas javascript API set the URI as value of a HTML5 video tag's src attribute. The second part shouldn’t be a problem. Concerning the first task, there are a lot of good structured tutorials like Raymond Camden's demonstrating how to get local files through javascript in an cordova environment. However, with the newest version of cordova, I could not get it to work. The video file The video is located either in assets/www/videos/testvid.webm or res/raw/testvid.webm in the built apk file. Both variations did not work. The