[ 
https://issues.apache.org/jira/browse/CB-12408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Shazron Abdullah updated CB-12408:
----------------------------------
    Labels: WKWebview wkwebview-baked-in wkwebview-known-issues  (was: 
WKWebview)

> Force reloading WKWebViewEngine causes transparent view
> -------------------------------------------------------
>
>                 Key: CB-12408
>                 URL: https://issues.apache.org/jira/browse/CB-12408
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-wkwebview-engine
>    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, wkwebview-baked-in, wkwebview-known-issues
>
> 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 happen.
> 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
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to