cordova

Apache cordova apk doesn't run properly on android

浪子不回头ぞ 提交于 2021-02-04 06:54:20
问题 I am using ajax to access a php file. $.ajax({ type:"post", url: "http://192.168.0.111/hetazotakan/read.php", success: function(result){ var data=JSON.parse(result); console.log(data); var place=document.getElementById("news_space"); for(var i=data.length-1;i>=0;i--){ place.innerHTML+=`<li class="one_third"> <article><a href="#"><img src="${data[i].photo}" style="height:240px;width:320px;" alt=""></a> <h6 class="heading">${data[i].title}</h6> <ul class="nospace meta"> <li><i class="fa fa-user

Launching a navigation app with destination pre-populated

家住魔仙堡 提交于 2021-01-29 19:05:04
问题 I want to start a turn by turn navigation app (which does not use mobile data) with its destination. I use cordova and javascript. I can launch sygic and herewego with the code below but I cannot pass the destination after numerous changes. The destination is in latitude/longitude format. I don't mind which app is used as long as it starts ready to navigate to a destination. I would be grateful for any tips. window.plugins.launcher.launch({ packageName:'com.sygic.aura', // com.here.app.maps }

Http and Https calls not working after Cordova upgrade

╄→尐↘猪︶ㄣ 提交于 2021-01-29 18:23:26
问题 I built an app by using Cordova and it's in production for more than years. Recently few days back I upgraded my Cordova version from 9.x to 10.x. After upgrade, Http and Https calls are not working. I am using Axios to make API calls. After I did research on this issue I found some solutions to add cordova-plugin-wkwebview-file-xhr. I did but no luck. I placed my config.xml file for the reference. Getting the following error while making API calls nativeXHR: Invalid url scheme null It would

Cordova Sending Data From Android Java to Javascript

假如想象 提交于 2021-01-29 15:09:51
问题 I am working with Cordova and the inAppBrowser plugin for Android. I am trying to expand upon a previous question, https://stackoverflow.com/questions/65534821/cordova-inappbrowser-hide-show-in-java-android/65627954?noredirect=1#comment116337002_65627954 where the inAppBrowser hardware back button was linked to the Javascript .hide function, to hide the browser but not exit it. This problem was solved, however created a new problem, inAppBrowser does not have a visibility status to say if it

Returning a value from Cordova File Plugin when called from a function

空扰寡人 提交于 2021-01-29 15:09:38
问题 I have seen someone has posted a similar question but it doesn't really fit what I'am looking for: Here is my code: $(document).ready(function(){ $("#btnTest").bind("click", function(){ a = createFile(); alert(">> "+a); // Displayed returned value; }); function createFile(){ var type = window.TEMPORARY; var size = 5*1024*1024; window.requestFileSystem(type, size, successCallback, errorCallback) function successCallback(fs) { fs.root.getFile('log.txt', {create: true, exclusive: true}, function

How to compile an ionic project using cordova? Error compiling in cordova

廉价感情. 提交于 2021-01-29 10:39:33
问题 I'm compiling the app using cordova for android, but I get the following error, I don't understand it very well Y using the line command cordova build android For build my app 来源: https://stackoverflow.com/questions/64234809/how-to-compile-an-ionic-project-using-cordova-error-compiling-in-cordova

Could not find which method maven() to invoke from this list:

旧街凉风 提交于 2021-01-29 10:36:08
问题 I am currently attempting to emulate (and then build) and Ionic App (w/ Angular) for Android. I feel the need to preface this by saying am not an Android developer, this is the first time I've had to set up the environment so I apologize for any "obvious" mistakes or missed steps. I have been unable to get past this error (appears after running ionic cordova emulate android --debug --consolelogs ): BUILD FAILED Total time: 0.794 secs [11:12:25] lint finished in 1.74 s Error: /path/to/app

Cordova 10.0 Ajax not working in iOS 14 but working fine in Android

不羁岁月 提交于 2021-01-29 09:46:29
问题 I recently updated my Xcode to 12.0, and I have the latest iOS 14, and Cordova 10.0.0 on my mac. I also changed the UIWebview to WKWebViewOnly I have also referred to the following link to enable the option in the config file: Ajax Not working in IOS 9.0 Cordova So, my config file looks something like this <access origin="*" /> <allow-intent href="http://*/*" /> <allow-intent href="https://*/*" /> <platform name="ios"> <allow-intent href="itms:*" /> <allow-intent href="itms-apps:*" />

out of memory error when calling readAsArrayBuffer method on FileReader of the cordova-plugin-file (iOS)

随声附和 提交于 2021-01-29 08:18:15
问题 On iOS I'm trying to upload videos to my own website and to do so I use the FileReader.readAsArrayBuffer method with a chunkSize of 1048576. I upload chunks when the onprogress event fires and all of this actually works perfect except for bigger files. When trying to upload a file of 1.33GB i'm getting a out of memory exception when calling the readAsArrayBuffer method. I guess this is because it's trying to reserve memory for the complete file, however this is not necessary. Is there a way

Secha touch : Signature Draw issue with HTMLCanvas5 after updating android chrome to version 85.0.4183.127

故事扮演 提交于 2021-01-29 06:54:47
问题 After updating the latest android chrome (version 85.0.4183.127) on Android 6 My App started having issues on the HTML5 canvas which is responsible to capture/draw signature from the user. My App is a hybrid app that is built on the Sencha JS framework.the capturing signature code is written on HTML5 canvas (HTMLCanvasElement). Key points: 1.signature Issue is all android-OS version which is updated to chrome (version 85.0.4183.127).2.The app is based on sencha touch2.4 3.cordova is used for