How can i pass a data from an html form to an Flutter app..
This is an basic html form. I need to pass the values from this to a Flutter app.. How can i do that? For an example, consider a pwa. where the form (or login) would be from html and the other operations would be on Flutter (Android/ iOS). For now i want the data on to this for to be displayed upon flutter mobile app Is there any way to achieve this?!
2
Answers
If the form is rendered in a platform WebView then its data will have to be sent to a server (which can be your server). The server then notifies the app (via Firebase Cloud Messaging, for example) or the app queries the server. You will need a persistent id across these messages so you can link them.
If you don’t own the server that this form sends its data to, then for security reasons you cannot intercept this in a Flutter app.
You should make your Form in Flutter and use TextEditingCotroller for getting the values from the text fields..