breautek commented on issue #143:
URL: 
https://github.com/apache/cordova-plugin-wkwebview-engine/issues/143#issuecomment-984626167


   `WKWebViewOnly` preference was added in [email protected] as a stopgap measure 
when Apple starting rejecting apps with UIWebView reference.
   
   The preference was removed in 6.0 (effectively forcefully enabled) as there 
is no UIWebView anymore in the core platform to properly handle Apple's new 
requirements. The fact that changing this setting causes different behaviours 
tells me that something didn't update properly when you upgraded to `@6.2`.
   
   I'd also suggest that you check and ensure that you're using the latest 
version of the `cordova` cli. You can use `cordova -v` to check the version, 
and compare against the [latest](https://www.npmjs.com/package/cordova) version 
published. (v10.0.0 at the time of writing). If the CLI version is update to 
date, then I'd also suggest nuking all the generated files:
   
   ```
   rm -rf platforms
   rm -rf plugins
   rm -rf node_modules
   rm package-lock.json
   npm install
   cordova platform add ios
   ```
   
   If you're upgrading from 5.1 using the wkwebview plugin, ensure the 
wkwebview plugin has been removed, as this will cause conflicts.
   
   If the issue still persists, white screens are generally JS errors which can 
be debugged using Safari's inspector as hinted above. Note that Safari does't 
report on log messages that occurred prior to the debugger being attached. You 
can work around this by refreshing the webview by pressing `cmd` + `r` when the 
Safari Inspector is focused. This will reload the app's webview while the 
debugger still being attached so that you can see all logs from the initial 
load.
   
   If you see no logs in the JavaScript console, then you may have to use XCode 
to view the native logs to gain more insight.
   
   Last few notes on Apple's deprecation message:
   
   Apache Cordova maintains two packages that may use the `UIWebView`, which is 
`cordova-ios` platform itself & the `cordova-plugin-inappbrowser`. So if you 
use the inappbrowser plugin, you'll also need to ensure that plugin is fully up 
to date. There are a number of third-party plugins that may use UIWebView as 
well. Some known ones are:
   - google maps plugin
   - pretty much any social media plugin
   - firebase plugins
   
   If you use any of these plugins, be sure they are up to date.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to