Android Manager (NATIVE)

Jashan5 years ago

I have implemented traccar server and added various devices.
Now in my app, i want to make 3 screens
1st screen :- Login user.
2nd Screen:- List of all devices which are saved under that user.
3rd Screen:- Live Tracking of selected device.
1st and 2nd screen are simple and easy. traccar already have apis for login and devices.
i need help for 3rd screen. which api i should use for live tracking or is there any socket api?

Not asking for help in android rather just guide me which API of traccar should i use for live tracking (3rd screen) :)

Anton Tananaev5 years ago

You should use WebSocket API.

Jashan5 years ago

can i use websocket api with respect deviceID. Because i want to show live tracking based on Device selected. - Cheers

Anton Tananaev5 years ago

No, but you can always filter data. It's still the most efficient way of doing it.

Jashan5 years ago

Ok great. Now finally is there any tool where i can see which data is coming on web-socket. that will help me greatly for data filter.

PS:- if i am not wrong this is Web socket address :- https://0.0.0.0:8082/api/socket. correct?

Anton Tananaev5 years ago

There is API documentation available.

Jashan5 years ago

Sorry my bad, never noticed web socket api was at the end :) Thank you Anton for the help. - cheers