Add flag WKWebViewOnly

Hello,

I’m using cordova-plugin-inappbrowser (https://github.com/apache/cordova-plugin-inappbrowser) in my project, is it possible to add WKWebViewOnly flag to ionic 4/5 project that uses capacitor ?

Thanks

i’m not using Capacitor but what about https://capacitor.ionicframework.com/docs/apis/browser/

1 Like

What WKWebViewOnly preference does is to add a WK_WEB_VIEW_ONLY=1 preprocessor macro in the project so parts of the plugin code is not compiled.
In Capacitor 2.1.0 we have added that preprocessor so if any plugin relies on that being set it will just work for them.

Or you can also use the dev version of the plugin as all the UIWebView code was removed, just has not been released yet.