I am trying to add new headers in requests/responses of webpages that are displayed in WebView.
After research, I found that the easy way to add headers is to set the user-agent header. My problem that it is working on Desktop (Linux) but it is not working on Android and iOS.
First, "getUserAgent()" method is returning null ! Second, "setUserAgent()" is not working on Android and iOS devices
webEngine.setUserAgent("foo\nHeader: value")is just a ridiculous hack.