Have you compared your request with the official app?
I have tried to duplicate the code of traccar-manager-android with native android but still get the 503
Here is my code (I removed the map, cause i haven't made the API_KEY yet, but in the app we can check either the connection to WS was succeed or failed)
https://github.com/victorang1/traccar-sample
for privacy issue i have changed the DEFAULT_SERVER back to demo url thanks, please help to check @Anton. Thanks a lot
Checking your code is beyond what I can do here on the forum.
Okay then i have several questions
Ok i have solved the issue thanks
What was the issue?
Should have sent the Cookie Header like this JSESSIONID={SESSION_ID}
Im trying to connect to the traccar websocket,
i have already get the session id with api/session with sample url like this http://domain:82/api/session and get the JSESSIONID.
After that im using postman to connect to the traccar websocket like this
url: ws://domain:82/api/socket
headers ->
Cookie: {JSESSIONID value get from api/session}
The postman giving Error: Unexpected server response: 503 this error.
What am i doing wrong? Thanks