cordova-plugin-webview-proxy icon indicating copy to clipboard operation
cordova-plugin-webview-proxy copied to clipboard

Don't change URL for unsupported iOS versions

Open NiklasMerz opened this issue 4 years ago • 6 comments
trafficstars

If this plugin just don't change the URL in the method window.WebviewProxy.convertProxyUrl on iOS 12, 11..., it will work.

Originally posted by @JuHaYK in https://github.com/GEDYSIntraWare/cordova-plugin-webview-proxy/issues/20#issuecomment-925705299

NiklasMerz avatar Sep 24 '21 06:09 NiklasMerz

Do you know how to detect that iOS version is less than 13?

JuHaYK avatar Sep 24 '21 07:09 JuHaYK

If you have a look the WebktiProxy.js file of this plugin you can see that I implemented a check for the variable window.CDV_ASSETS_URL. One thing to make sure is that the app runs with a custom scheme. The plugin won't work when the assets are loaded from file:.

Possibly there are some JS variables that only exists on new versions. Otherwise you could check WebKit versions or features. Not entirely sure. I might look for other options.

NiklasMerz avatar Sep 24 '21 08:09 NiklasMerz

Ok, if we don't change URL on unsupported iOS versions, we have again problems with cookie... It's not possible to support iOS 11 and 12?

JuHaYK avatar Sep 27 '21 11:09 JuHaYK

Yes I don't think it is possible to use this plugin on iOS 11 and 12. For these iOS versions you most likely need to find other workarounds for cookie issues.

NiklasMerz avatar Sep 28 '21 18:09 NiklasMerz

Can you explain the problem why it is not possible to support iOS 11 and 12? Can I perhaps help?

JuHaYK avatar Oct 01 '21 11:10 JuHaYK

First problem is, that body (on line 28) always "nil" is. Can you help?

JuHaYK avatar Oct 11 '21 14:10 JuHaYK