Wrap or Build my own mobile application for the client

Brad2 years ago

Hi,

First of all I would like to thank all of you for your hard efforts!

I was wondering if I can build my own client app or wrap the current existing one with new framework. I want to either wrap the app with flutter or react native technologies or to build a simple client app in which I can send details to my deployed server.
I looked at the API documentation and it was well explained, but I could not understand it from client side and how to manage client app features to update location, post id and post server url.
If there is a way in which I can wrap the current app easily or get the minimum required API to use then this would be great.

Thanks!!

Anton Tananaev2 years ago

Traccar Client uses this format to upload the data:

https://www.traccar.org/osmand/

Brad2 years ago

I tried it using my deployed server and it is giving me 404 Not found error.

Anton Tananaev2 years ago

That probably means you haven't registered the device.

Brad2 years ago

In fact I have the device registered and I have even changed the id to meet the device id registered in the server.

Anton Tananaev2 years ago

And are you using the correct port (5055)?

Brad2 years ago

Just tried it and I got the same status 404 Not found.

Anton Tananaev2 years ago

What do you see in the server logs?

Brad2 years ago
2023-02-13 11:36:14  INFO: [Tea6cd220] disconnected
2023-02-13 11:36:40  INFO: [T9dcdd694] connected
2023-02-13 11:36:40  INFO: [T9dcdd694: osmand < 4.42.243.170] 474554202f20485454502f312e310d0a417574686f72697a6174696f6e3a204261736963205a476c6e615852686247467a633256306330426b62584e325a57353064584a6c6379356a6232303652453154556d5672595749784d6a4d3d0d0a557365722d4167656e743a20506f73746d616e52756e74696d652f372e33302e310d0a4163636570743a202a2f2a0d0a506f73746d616e2d546f6b656e3a2033386137646535642d313537362d346237342d383434312d3264373161393933623962350d0a486f73743a206563322d35322d34372d3137352d3230302e65752d776573742d332e636f6d707574652e616d617a6f6e6177732e636f6d3a353035350d0a4163636570742d456e636f64696e673a20677a69702c206465666c6174652c2062720d0a436f6e6e656374696f6e3a206b6565702d616c6976650d0a436f6f6b69653a204a53455353494f4e49443d6e6f6465303133316b6b647437367779716e3132617064336c777671613837392e6e6f6465300d0a0d0a
2023-02-13 11:36:40  INFO: [T9dcdd694: osmand > 4.42.243.170] 485454502f312e31203430302042616420526571756573740d0a636f6e74656e742d6c656e6774683a20300d0a0d0a
Brad2 years ago

Thank you sir!
Really appreciate your effort, I have fixed the error.
Regards.

Anton Tananaev2 years ago

I see this:

GET / HTTP/1.1

Where the data? Where's the id?