Traccar server in android mobile

rasik8 years ago

hi mate,
is it possible to create a standalone android suite (traccar android app with server and client in single app), so user can install it directly in mobile, and no need of server, so family members can use it tracking other members, cars and more.

but thing is we not able to completely remove server, better we can use torrent tracker server like technology..?? that is server store one log file, which contain the ip of all group members (each group one log file or in database) once they on the mobile.

this reduce the load on your side, as people just read that log file from server and connect directly peer to peer like mobiles.

is it possible ?

Anton Tananaev8 years ago

I guess it's technically possible, but:

  1. There is no such thing as a torrent server. All peer are both clients and servers.
  2. If you are using it only for a family, it means you won't have many peers and the network can die very easily.
  3. For torrent to function you need to have a public IP addresses.

There are probably many more issues including complexity of implementing the whole thing.

Overall I don't think it's worth it. Traccar server doesn't require much resources if you have only a couple of devices, so you can host it on a router or low spec hardware if you want.

rasik8 years ago

got your point,

is it possible to install traccar in free tier of amazon ?
https://aws.amazon.com/free/

as mostly we're going to use within our family or private (closed group)

Anton Tananaev8 years ago

Yes, it is definitely possible to use Amazon free tier. I used to use it for demo server.

rasik8 years ago

or android client (in our android mobile) will send the current location, speed and other data to amazon dynamoDb (as using dynamodb is free)

single dynamoDB for one group or family, all users locations will be send to dynamoDB, and read from there.

or some free cloud database to use.

offtopic:
local database sync with remote cloud database, if mobile in offline means, it just store locally, and dont show others.

Anton Tananaev8 years ago

Traccar Client does not show other locations. All it does is report its GPS location to the server with selected intervals.

As for dynamoDB or any other cloud database, it's only database and not full web service. It's technically possible to use some free service hosting like Google App Engine or something else to handle Traccar Client requests, but Traccar doesn't work on it.

By the way, why don't you want to use demo server (https://www.traccar.org/demo-server/)? It's free.

rasik8 years ago

i tested your demo website works fine, but waiting for app, so i can monitor inside app

can you create one simple app, that just show the demo website, so i can login in that app and add details and all, browser is nice but in app is cool :)

Anton Tananaev8 years ago

Apps for both Android and iOS are in plans, but it will take some time to implement them.

Also in the next version of Traccar web interface will be more mobile-friendly.

rasik8 years ago

cool :)
i am sure, traccar become more popular once the app is launched.

Offtopic:
https://play.google.com/store/apps/details?id=ru.kslabs.ksweb&hl=en

using above app, is it possibl to install server in android mobile itself ??

Anton Tananaev8 years ago

No, it's not possible to use that app to install Traccar. Traccar requires Java SE to run.

rasik8 years ago
Anton Tananaev8 years ago

It might help if you actually want to compile Traccar specifically for Android, but I don't think it's going to be easy.

saikrupa20126 years ago

hi anton,
traccar worked really well with my amazon server on my browser.
i have a rhel instance on amazon .
how to connect to this server using traccar manager android application .
by default the url is:http://demo.traccar.org
i gave the url as http://[amazon-server-ip]:5055 but connection is failed.
what to give url?
thanks in advance anton