I am developing an Android App with WebView and Push notifications. The problem is, that the website i'm displaying has a login.
What I want to do is: If somebody logs into the website via my App (WebView!), I need to take the username he entered and put it into my MySQL-Database with the Android-Device-ID. (but just, if his password was correct..)
Does anybody know of an elegant way to do this? I'm stuck.
I found a solution. I put an alertdialog over the websites original Login. After this, I injected Java Script Code into the URL, which fills out the forms on the website and then automatically submits. If anybody is interested, I did it like this:
AlertDialog for the logIn:
And then autoFillIn:
Hope this might help somebody. And i'm always open for better ideas..
Edit: "frontendurl" is a string with the url i want to display via webview..