There is a third-party server with data verification from the HTML form - it accepts text / html, UTF-8 No authorization, only captcha. For sending to the server jQuery-function in the native code of the page. Handle the display of captcha and error'y other jQuery-functions.

Should I create POST requests from a native iOS application to the server (for example, Alamofire.POST with parameters) and get very confused with a separate .GET request to display a captcha and process responses / errors ("the code does not match the picture", etc.) and the server response directly?

Or is it easier to implement form submission and response processing through a hybrid application with customization of form display using JS injections (it seems like Ion implemented a similar application earlier)? Now I pick WKWebView / Cordova / Ionic

I would be grateful for any ideas.

    1 answer 1

    It is easier to add UIWebView to the application, load the URL and use JS to change its form (in the didFinishLoad delegate method).

    • Thank you, I did. - Maxim Aba