cordova-plugin-webview-proxy
cordova-plugin-webview-proxy copied to clipboard
Don't change URL for unsupported iOS versions
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
Do you know how to detect that iOS version is less than 13?
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.
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?
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.
Can you explain the problem why it is not possible to support iOS 11 and 12? Can I perhaps help?
First problem is, that body (on line 28) always "nil" is. Can you help?