Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230080

Ionic-wkwebview: Android build doesn't load any local templates

$
0
0

Hi, I am in the process of migrating my v1 app to wkwebview from UIWebView. Now that apple has officially stuck a deprecated sign on UIWebView, I decided to act.

So far, iOS works well.

On Android, it builds fine but when I deploy to a device, it can’t seem to load any local templates. I’m probably missing something simple. Any thoughts? (removing ionic-webview before building android works just fine)

Android Device OS: 7.0

My CSP:

<meta http-equiv="Content-Security-Policy" content="img-src * blob: android-webview-video-poster: cdvphotolibrary:  'self' data: ws: wss://*; default-src * blob: 'self' gap: wss: ws: data:; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; connect-src * http: https: ws: wss:;">

My allow-navigation :

<allow-navigation href="http://localhost:8080/*" />

ionic info: (I know its not the latest, but unless you are sure it will solve this issue I’m reporting, please don’t ask me to update )

 ionic (Ionic CLI) : 3.20.0

global packages:

    cordova (Cordova CLI) : 8.0.0
    Gulp CLI              : CLI version 3.9.1 Local version 3.9.1

local packages:

    Cordova Platforms : android 6.4.0 ios 4.5.5
    Ionic Framework   : ionic1 1.3.5

System:

    Android SDK Tools : 26.1.1
    ios-deploy        : 2.0.0
    Node              : v6.11.2
    npm               : 3.10.10
    OS                : macOS High Sierra
    Xcode             : Xcode 10.0 Build version 10A255

I am on the latest wkwebview plugin: cordova-plugin-ionic-webview 2.1.4 "cordova-plugin-ionic-webview"

(cross posted on SO)


Viewing all articles
Browse latest Browse all 230080

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>