Hello eskimo,
Thanks for detailed explanation of the workaround for the issue.
In my company, we've a similar case while moving from UIWebView to WKWebView.
We're receiving online payments and there're multiple redirections with credit card input forms. With UIWebViewDelegate's we could get request data while redirection, as you already know the issue, we can't achieve same data with WKWebView navigation delegate's decidePolicy methods.
I know, there's an option where we can register WKScriptMessageHandlers in application and trigger them from web site by posting messages like:
window.webkit.messageHandlers.jsHandler.postMessage("trigger from JS");
But, we want to keep this implementation as the last choice, as there're various integrated payment systems that communicates with each other and it would be more time consuming both for development and testing with all integrated systems.
Considering we cannot rely on form id's, is there any alternative, so that we can achieve request's httpBody from WKWebView redirections?
Looking forward for your reply,
Best Regards