cordova

Why is the error ERR_CLEARTEXT_NOT_PERMITTED with cleartext for the HTTP traffic persistent?

帅比萌擦擦* 提交于 2020-01-23 09:57:15
问题 I'm developing a new app using the Ionic-framework and I'm using the HttpClient module for API requests. The problem is that I've read and tried to apply the solutions on: https://medium.com/@son.rommer/fix-cleartext-traffic-error-in-android-9-pie-2f4e9e2235e6 https://forum.ionicframework.com/t/livereload-err-cleartext-not-permitted/163487 Android 8: Cleartext HTTP traffic not permitted Why am I seeing net::ERR_CLEARTEXT_NOT_PERMITTED errors after upgrading to Cordova Android 8? How to fix

Phonegap page has wrong rotation, shows as portrait in landscape mode

北慕城南 提交于 2020-01-23 08:34:28
问题 I have a (simple) web page packed in a phonegap app. If I start the app it shows the page in portrait direction with landscape page width. So the text starts left bottom to left top. On the right I have a gap where the page should end. This is what I see: Supported orientations are landscape left and right in my ...-Info.plist : <key>UISupportedInterfaceOrientations</key> <array> <string>UIInterfaceOrientationLandscapeLeft</string> <string>UIInterfaceOrientationLandscapeRight</string> </array

Phonegap page has wrong rotation, shows as portrait in landscape mode

喜夏-厌秋 提交于 2020-01-23 08:34:26
问题 I have a (simple) web page packed in a phonegap app. If I start the app it shows the page in portrait direction with landscape page width. So the text starts left bottom to left top. On the right I have a gap where the page should end. This is what I see: Supported orientations are landscape left and right in my ...-Info.plist : <key>UISupportedInterfaceOrientations</key> <array> <string>UIInterfaceOrientationLandscapeLeft</string> <string>UIInterfaceOrientationLandscapeRight</string> </array

Signature Capture within PhoneGap

瘦欲@ 提交于 2020-01-23 08:22:47
问题 I am attempting to add signature capture functionality to a PhoneGap application. I have found a few options such as signature capture 2.8.1 (http://androidapp.lisisoft.com/apps-android-phone/108585-biz.binarysolutions.signature.html) and Thomas J. Bradley's signature Pad javascript plugin (http://thomasjbradley.ca/lab/signature-pad/). The first works pretty well on the android device but requires a license. The second works well in a browser but does not work at all when run within my

Signature Capture within PhoneGap

爷,独闯天下 提交于 2020-01-23 08:21:46
问题 I am attempting to add signature capture functionality to a PhoneGap application. I have found a few options such as signature capture 2.8.1 (http://androidapp.lisisoft.com/apps-android-phone/108585-biz.binarysolutions.signature.html) and Thomas J. Bradley's signature Pad javascript plugin (http://thomasjbradley.ca/lab/signature-pad/). The first works pretty well on the android device but requires a license. The second works well in a browser but does not work at all when run within my

Chromium WebView does not exist

偶尔善良 提交于 2020-01-23 08:00:48
问题 I am trying to create a Hello World app using Phonegap but it crashes when I call run the application on emulator. I followed the guideline here. Here is what I have on MainActivity.java : package com.example.hello; import android.os.Bundle; import org.apache.cordova.*; public class HelloWorld extends CordovaActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.init(); // Set by <content src="index.html" /> in config.xml super.loadUrl

Can Cordova read/write files in the iOS “Files” app?

百般思念 提交于 2020-01-23 05:41:11
问题 Does anyone know if the iOS "Files" application data can be accessed via Cordova? I.e., I want to add my application to the list of "Locations" in the Files application, and then read/write those files. Is this possible? Thanks! 回答1: You must set iCloud under Capabilities in Xcode. Don't forget to set the Container for your App Identifier. Maybe this option will help you in future: LSSupportsOpeningDocumentsInPlace 回答2: I also had this issue and resolved it. Here's what I did: To give the

ES6 Modules/Imports in Apache Cordova Hybrid App Throw MIME Type Error

╄→гoц情女王★ 提交于 2020-01-23 05:20:35
问题 I'm trying to use ES6 Modules in a hybrid mobile app built using Apache Cordova. Unfortunately, Cordova seems to be serving the module without a MIME type, which is throwing an error in the WebView (In both Chrome 63 and 64 beta). Specifically, the deployed app (using chrome remote debugger) throws the following error: Failed to load module script: The server responded with a non-JavaScript MIME type of "". Strict MIME type checking is enforced for module scripts per HTML spec. I'm using a

Http requests fails only while releasing Android APK

人走茶凉 提交于 2020-01-23 04:39:08
问题 I'm struggling in making my app work on Android APK release, the only scenario it fails is at generating and signing the apk. All http requests doesn't work. (The server is running under SSL) All Scenarios I've tried already: ionic serve -> Works fine. ionic cordova run android --device -> Works fine. Works on emulators as well. Also works fine generating the iOS build: ionic cordova build ios . On Xcode, running build targeting a real device. On Xcode, archiving and uploading it to

Windows Phone Capabilities with Cordova

∥☆過路亽.° 提交于 2020-01-23 03:52:08
问题 I have problems with the capabilities of the windows phone according to UDP Socket Access. I know that i have to set up the capabilities "internetClientServer" and "privateNetworkClientServer" (see: https://msdn.microsoft.com/en-us/library/windows/apps/hh464936.aspx) But I dont know where I have to setup the manifest file where these capabilities should be inserted. I found a older question with a similar problem but thats not working. (see:Adding privateNetworkClientServer capability to