cordova-plugins

why css file is not defined, cordova-plugin-pdf?

拜拜、爱过 提交于 2019-12-11 19:11:09
问题 I find myself inserting using a css file, but I don't know in which folder of my project I should create this file, css_file.css, I currently create the file in the directory: dyslexia/www/css_file.css but when compiling cordova build android it automatically deletes the file, where should I add it? my code: var opts = { documentSize: "A4", landscape: "portrait", type: "share", fileName: 'my-pdf.pdf' } console.log(device.platform); var payload = _.template(' <head><link rel="stylesheet" href=

INVALID_MODIFICATION_ERR windows phone

丶灬走出姿态 提交于 2019-12-11 17:01:24
问题 I have a problem with plugin org-apache-cordova-file on Windows Phone. I'm trying to download and save a pdf from server. It's downloading it, but windows doesn't save this file. I received a error code 9 (INVALID_MODIFICATION_ERR). I turn on all capabilities which was necessary for file storage. Maybe someone have any idea how to solve this problem? Edit:// I installed app on Android with same code and it works fine on this platform. I think there could be problem with some permissions to

dialogs not showing in IOS cordova

你离开我真会死。 提交于 2019-12-11 16:52:08
问题 I have a cordova app, and I have to show several alerts. In another app, in the same device, they work well, but I have a problem in my current app when the dialog should show. It does nothing, but if I expand the notification bar, the dialog magically appears. I am using cordova-plugin-dialogs 1.1.1 in both apps. I found this JIRA https://issues.apache.org/jira/browse/CB-9441 But I dont want to create a new plugin to fix this. Are there any way to workarround this issue, or which plugin is

Android Continuous SpeechRecognition: Preventing End

╄→尐↘猪︶ㄣ 提交于 2019-12-11 15:29:57
问题 How do you record and transcribe continuous speech on Android? Want to record and transcribe speech in Android for a mobile (cordova) app. How is it possible to force the Android API for speech recognition NOT to stop recording when it thinks speech is done? Have tried setting all of the parameters. The parameters that would seem to guarantee continuous recognition (see below) do not seem to work, even when tried in a whole bunch of values/combinations. No matter what values we have tried to

I am taken to “www.google.com” after sign in with google cordova

我与影子孤独终老i 提交于 2019-12-11 14:09:43
问题 I am trying to do google plus native firebase authentication. When i click my login button it asks me to choose account and after that. Instead of redirecting me to the app it takes me to "www.google.com" I have tried clicking "Done" after it takes me to "www.google.com". It then closes the popup and says "the user cancelled the operation". What do please Here is my sign in code googleNativeLogin() { return new Promise((resolve, reject) => { this.googlePlus.login( { 'webClientId':

FIle copyTo not working in cordova

老子叫甜甜 提交于 2019-12-11 13:44:02
问题 In my cordova(v 3.3) application i used copyTo for copy files from one directory to another directory in sdcard. Some time it is working fine some time it is not working. Here is the source i used to copy files from one dierctory to another. window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function gotFS(fileSystem) { var root = fileSystem.root.fullPath; console.log(skiTemplateFileName); alert(root); var fails = function(err) { alert(err.code);} window.resolveLocalFileSystemURI(root+"/

How to use cordova-waze-navigator plugin

给你一囗甜甜゛ 提交于 2019-12-11 13:42:35
问题 How to use this plugin https://github.com/adaltojunior86/cordova-waze-navigator I've looked all over the internet but have not yet found a way to use github has nothing explaining how to use 回答1: I think the answer is there is no documentation for that plugin, so if you want to use it, you'll have to look at the source code, which implies a usage of: WazeNavigator.navigateByPosition({ lat: 50, // latitude lng: -4 // longitude }); Or you could use the updated version 3 of phonegap-launch

Cordova InAppBrowser loaderror event not firing for Error 500

ⅰ亾dé卋堺 提交于 2019-12-11 13:16:37
问题 I have an issue with InAppBrowser. I am trying to catch errors that might come from the website I'm loading and I'm simulating this by a faulty .htaccess, which produces an error 500. I have the following code: ref = cordova.InAppBrowser.open($openuri, '_blank', 'location=no,toolbar=no,zoom=no,enableviewportscale=no,disallowoverscroll=no'); ref.addEventListener("loadstop",function() { ..... }); ref.addEventListener("loaderror",function() { alert('Toot'); }); ref.addEventListener('loadstart',

why does inAppBrowser open a blank new webview which i cant close

混江龙づ霸主 提交于 2019-12-11 12:54:05
问题 This happens only sometimes and other times works as expected. I am using inAppBrowser to open a url in a new webview. var ref = cordova.inAppBrowser.open(url, '_blank', _inAppBrowserArgs); ref.show(); my problem is that sometimes inAppBrowser opens a new webview and doesn't load the url (no loading indicator). I just get a blank screen. If the user clicks on "Done" and retries he/she gets the same result (doesn't work) and on each attempt a new blank webview is created (without closing the

How to download any file from Byte Array in Cordova application?

牧云@^-^@ 提交于 2019-12-11 12:43:44
问题 I have a cordova - ionic application. I want to download a file from webservice and the file may be any type(JPG,PDG,DOCX etc). I cannot download the file from direct URL. So the app is taking byte array of the file from Webservice. Anybody know how to download the file in Mobile from the Byte Array. Please help me. 回答1: you can use the cordova-plugin-file and the cordova-plugin-file-opener2 plugin. https://github.com/apache/cordova-plugin-file https://github.com/pwlin/cordova-plugin-file