I'm working in one project and I'm stuck in the implementation of login/signup page. When I try to implement the code it gives me the error Cleartext HTTP traffic to 192.168.1.130 not permitted
. I checked the ipconfig
and that was my IPv4 so I have added 192.168.1.130
, but I have also checked 127.0.0.1
, but that one doesn't work either.
I have tried implementing <domain includeSubdomains="true">192.168.1.130</domain>
however that one doesn't work(implementation of android:usesCleartextTraffic="true"
doesn't work either).
I'm using XAMPP for the back-end and if I run php code everything works good, so no problem with that. Problem is in the Android Studio(I'm using Kotlin).
For the Emulator I'm using Genymotion emulator(it uses VirtualBox).
Here's the code for the button that takes the url
. I have checked everything, but still nothing achieved.
login.setOnClickListener {
var url = "http://192.168.1.130/php/login.php?mobile=" + login_user.text.toString() +
"&password=" + login_password.text.toString()