You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2018/07/16 03:46:00 UTC
[jira] [Resolved] (CB-12408) Force reloading WKWebViewEngine causes
transparent view
[ https://issues.apache.org/jira/browse/CB-12408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shazron Abdullah resolved CB-12408.
-----------------------------------
Resolution: Won't Fix
> 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-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org