Hello , Im trying to track the gps device in a google map fragment in android, every time i use the api to create a device or user it gives errors as bad request or 401 or 404 error.
Are you going to provide details?
Hi anton this is my post request created with retrofit
fun createuser( String?, email: String?, password: String? ) name: : Call<TraccarUser?>?
but i'm getting errors with every request i make , i make the same api calls to other api they work just fine. tried logging in to already created users it works fine .
Tried creating a device though api with the admin account and again the same problem
I guess there is a catch with the post request , Is there something in missing ? i checked the android traccar app git too . Still no help.
This part doesn't make sense to me:
Are you sending JSON or form?
I'm sry i intend to send JSON to the api , can it also be done with a form by the way? or is sending JSON the correct way?
You can't use form. It has to be proper JSON. You can find some samples here:
Understanding Your code or documentation is not possible
Please provide steps how can i create a user using the traccar API from android.
If you want someone to walk you through step by step, we provide paid support. Email support address to discuss details.