Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WKWebViewConfiguration is always ignored #1423

Open
3 tasks done
Durzan666 opened this issue Apr 19, 2024 · 0 comments
Open
3 tasks done

WKWebViewConfiguration is always ignored #1423

Durzan666 opened this issue Apr 19, 2024 · 0 comments

Comments

@Durzan666
Copy link

Bug Report

Problem

What is expected to happen?

The WKWebViewConfiguration configured in CDVWebViewEngineConfigurationDelegate.configuration() is applied to WebView

What does actually happen?

The WKWebViewConfiguration configured in CDVWebViewEngineConfigurationDelegate.configuration() is ignored and not applied to WebView

Information

CDVViewController calls CDVWebViewEngineConfigurationDelegate.configuration() as expected but the check if CDVWebViewEngine can be called using the method initWithFrame:(CGRect)frame configuration:(nullable WKWebViewConfiguration *)configuration fails (see here).

Command or Code

I discovered this behaviour using this code

extension CDVViewController: CDVWebViewEngineConfigurationDelegate {
	public func configuration() -> WKWebViewConfiguration {
		let config = WKWebViewConfiguration()
		config.ignoresViewportScaleLimits = true
		return config
	}
}

Environment, Platform, Device

Ipad Pro (10.5) iPadOS 17.4.1

Version information

cordova-ios@7.1.0

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant