GEDYSIntraWare / cordova-plugin-webview-proxy

Plugin to proxy requests through the webview

Home Page:https://www.npmjs.com/package/cordova-plugin-webview-proxy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] don't work on iOS 12 and 11

JuHaYK opened this issue · comments

Describe the bug
Same code tested on iOS: 14 (work), 13 (work), 12 (DON'T work), 11 (DON'T work)
HTTP Requests do not work on iOS 12 and 11

To Reproduce
Steps to reproduce the behavior:
Start you App under iOS 11 or 12 and make HTTP Request

Expected behavior
HTTP Requests work on all iOS versions

LOG:

2021-09-22 14:21:32.260648+0200 App[60074:1373830] TIC Read Status [2:0x600002309d40]: 1:57
2021-09-22 14:21:32.261020+0200 App[60074:1373830] TIC Read Status [2:0x600002309d40]: 1:57
2021-09-22 14:21:32.261200+0200 App[60074:1373830] TIC Read Status [2:0x600002309d40]: 1:57
2021-09-22 14:21:32.266288+0200 App[60074:1373830] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C2.1:2][0x7fb2144162b0] get output frames failed, state 8196
2021-09-22 14:21:32.266403+0200 App[60074:1373830] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C2.1:2][0x7fb2144162b0] get output frames failed, state 8196
2021-09-22 14:21:32.267213+0200 App[60074:1373830] TIC Read Status [2:0x0]: 1:57
2021-09-22 14:21:32.267346+0200 App[60074:1373830] TIC Read Status [2:0x0]: 1:57
2021-09-22 14:21:32.267534+0200 App[60074:1373830] TIC Read Status [2:0x0]: 1:57
2021-09-22 14:21:32.267605+0200 App[60074:1373830] TIC Read Status [2:0x0]: 1:57

This plugin uses APIs from iOS and WebKit behaviour that are not available on older iOS versions unfortunately. There is probably no way to make this plugin work on older iOS versions.

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

This is a good idea. I created a new issue for this. Pull requests welcome.