cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <>
Subject [jira] [Commented] (CB-12408) Force reloading WKWebViewEngine causes transparent view
Date Thu, 16 Feb 2017 19:13:41 GMT


Shazron Abdullah commented on CB-12408:

Seems to be it's more likely a WebKit thing:

> Force reloading WKWebViewEngine causes transparent view
> -------------------------------------------------------
>                 Key: CB-12408
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin WKWebViewEngine
>    Affects Versions: 6.4.0
>         Environment: iPhone 6S Plus on device running iOS 10 only
>            Reporter: Alex Fox
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: WKWebview
> I am using auto crash recovery in the WKWebViewEngine plugin and I have noticed that
sometimes when the page enters the foreground and it reloads I end up with a blank screen.

> I have inspected the app with WebKit from my MacBook and I can see that there is a DOM.
When I hover over elements with my mouse I can see the elements highlighting on the device.
The javascript is still running and the app still reacts to touches. 
> Refreshing the page again does not make the DOM appear and if I navigate to another page
I still have a blank screen. 
> I have managed to easily reproduce the problem with a clean project and a slight modification
to make the app refresh every time it's brought to foreground. My "test" only happens on my
iPhone 6S Plus. I have tried it on an iPhone 5 & iPad mini 2 but the bug never seems to
> Here are the steps:
> - cordova create hello com.example.hello HelloWorld
> - cordova platform add ios --save
> - cordova plugin add cordova-plugin-wkwebview-engine
> - In CDVWKebViewEngine.m => method (BOOL)shouldReloadWebView) => line 185 =>
Change it to return YES; (so it will awlays reload!)
> - Run the app on the device (remember to use an iPhone 6S Plus, though perhaps it would
still be a problem on a similar device 6/6s/7)
> - Repeatedly send the app to the background/foreground by pressing the home button /
app icon
> - It usually will occur in 1-5 "reloads" but sometimes it can be up to ~25
> Needless to say this is a critical error that is preventing me releasing my app.
> Alex

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message