I am trying to make a Post Request using Retrofit, MVVM, Coroutines and Hilt. After sending the post request I get this error java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at …
Tag: retrofit
$_POST request works with postman but not in android app
I’ve been on this problem for a while now currently trying to convert my php scripts to PDO but the $_POST are always giving me null when ran through isset(). My code in android works fine with my other scripts but this one only works in postman when I change the $_POST to $_REQUEST on each item and the links