crosswalk-project / cordova-plugin-crosswalk-webview

Crosswalk WebView Cordova Plugin (UNMAINTAINED)
https://crosswalk-project.org/blog/crosswalk-final-release.html
Apache License 2.0
946 stars 350 forks source link

Crosswalk webview certificates error on latest version (23+) #129

Open ahadcove opened 7 years ago

ahadcove commented 7 years ago

I have a separate Ionic 2 app that I am trying to merge to my other Ionic 2 app where both are using crosswalk-webview. The problem that I am facing is that on the first (working) app it only deals with webrtc, so no http calls or anything else for that matter and works out of the box with webview.

Now the app I am trying to convert it to uses many http requests, and I notice that with the latest webview I get a Request was denied for security error when making any request.

I've heard of the certificate plugin here (https://github.com/danjarvis/cordova-plugin-crosswalk-certificate/issues/1#issuecomment-281988879) and attempted to use it, but this will not help me either because I need to use the latest webview or my app will not run correctly. The certificates uses webview 18+ and I need 23+.

Are there any other alternatives or is there anything that I am missing?

amalinaaziz commented 7 years ago

any updates on the issue?

ahadcove commented 7 years ago

I actually got by it in a really weird way. If I can find my old code I can give you a better answer. I did get by it though

amalinaaziz commented 7 years ago

Hi, are you able to find the code? Would appreciate it. Thanks

FelipeMiranda commented 6 years ago

Any update?

ahadcove commented 6 years ago

Hey, sorry for the late response. No, I couldn't find any notes or anything I left for myself sadly. I've moved away from Ionic a while ago so I have no idea what the fix was

Here is my config.xml in case this may give you all a better clue though

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<widget id="com.ahadcove.myapp2328593" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
  <name>My App</name>
  <description>An awesome Ionic/Cordova app.</description>
  <author email="hi@ionicframework" href="http://ionicframework.com/">Ionic Framework Team</author>
  <content src="index.html"/>
  <access origin="*"/>
  <allow-navigation href="http://ionic.local/*"/>
  <allow-navigation href="http://192.168.10.117:8100"/>
  <allow-navigation href="*"/>
  <allow-intent href="http://*/*"/>
  <allow-intent href="https://*/*"/>
  <allow-intent href="tel:*"/>
  <allow-intent href="sms:*"/>
  <allow-intent href="mailto:*"/>
  <allow-intent href="geo:*"/>
  <allow-intent href="https://my.site.net/*"/>
  <platform name="android">
    <allow-intent href="market:*"/>
  </platform>
  <platform name="ios">
    <allow-intent href="itms:*"/>
    <allow-intent href="itms-apps:*"/>
  </platform>
  <preference name="webviewbounce" value="false"/>
  <preference name="UIWebViewBounce" value="false"/>
  <preference name="DisallowOverscroll" value="true"/>
  <preference name="android-minSdkVersion" value="16"/>
  <preference name="BackupWebStorage" value="none"/>
  <preference name="SplashMaintainAspectRatio" value="true"/>
  <preference name="FadeSplashScreenDuration" value="300"/>
  <preference name="SplashShowOnlyFirstTime" value="false"/>
  <feature name="StatusBar">
    <param name="ios-package" onload="true" value="CDVStatusBar"/>
  </feature>
  <plugin name="ionic-plugin-keyboard" spec="~2.2.1"/>
  <plugin name="cordova-plugin-console" spec="1.0.5"/>
  <plugin name="cordova-plugin-statusbar" spec="2.2.1"/>
  <plugin name="cordova-plugin-device" spec="1.1.4"/>
  <plugin name="cordova-plugin-splashscreen" spec="~4.0.1"/>
  <plugin name="cordova-sqlite-storage" spec="~2.0.2"/>
  <plugin name="cordova-plugin-nativeaudio" spec="~3.0.9"/>
  <plugin name="cordova-plugin-whitelist" spec="~1.3.1"/>
</widget>