I am building an app that uses a in-app login screen and a webview to show a certain mobile website.
The usename and password that are entered in the login screen should be passed on as parameters to a HTTP POST request to the website that will be displayed by the webview.
The webview has a “request” property. Can I also use this property to send POST requests?
In the past, I have created a locally hosted page. Every request then comes to Corona and you can write a listener to filter for page submissions. If the submission needs to go to a server for user login, etc, recreate the request and return the result yourself to the webview control.
I’m curious on how you would return the result to the webview control. I did not know it was possible to intercept the page submission and return your own HTTP response to the webview. Can you share an example?
In the past, I have created a locally hosted page. Every request then comes to Corona and you can write a listener to filter for page submissions. If the submission needs to go to a server for user login, etc, recreate the request and return the result yourself to the webview control.
I’m curious on how you would return the result to the webview control. I did not know it was possible to intercept the page submission and return your own HTTP response to the webview. Can you share an example?