Traccar client template

Traccar client template

An ionic-based application for managing your Traccar server

$30.00

Not yet rated
Jose Fernandez

Jose Fernandez

Member since 2017

Details

Version:
0.1.3
Size:
6mb
Ionic:
4.x
Platforms:
iOS, Android, Windows Phone
Released:
4 years ago
Updated:
4 years ago
Category:
Starters
Tags:
ionic, traccar, template, android, map, google, track, search, route

Ionic Traccar Application ©

The Ionic traccar application is an open source project which aim is to provide an easy to use template for the creation of mobile applications for companies in the asset tracking sector that make use of the traccar service.

This application represents an improved and more up to date version of the The Ionic Traccar Starter with a more recent version of angular and much richer functions 😃

  • First time user welcome screen
  • Login and creation of new users
  • Create/View/Edit/Delete devices easily
  • Posibility of adding devices as favortes
  • Fetch user info and change password, name and username
  • Light and dark mode
  • Change application language (with posibility of adding more translations)
  • Button to auto-center map
  • Get details information of the device's position (latitude, longitude, speed, etc)
  • Follow device feature: Automatically keeps the map centered on the given device when it moves
  • 3 report modes: Positions reports, stops reports and events reports (stops and events reports will only show stops/events that can be located on the map)

Get it on Google Play

The application can be build for running on Android/iOS/WIndows devices or directly in the browser.

Table of Contents

Getting Started

  • Install NodeJs in your system. You can Download the installer for Node LTS.
  • Install the ionic CLI globally: npm install -g ionic
  • Run npm install from the project root.

Now from this point, you can:

  • Run ionic serve. This will run the project in the browser. SInce the project makes use of cordova-plugin-googlemaps for displaying google maps (which is a cordova plugin), the map wont work, but using ionic serve is a good way to run the project during development and testing phases.
  • Run ionic cordova run browser. This will run the app in the browser as well, but in compatibility mode for cordova, so, by using this method the map will be visible. Before doing this, you need to configure a google maps API key as described in the How to see the map working section
  • Run ionic cordova run <platform> --prod (platform = android/ios). This will run the application on the connected Android/iOS device or in the running emulator. Check the Deploying section for more details

Note: See How to Prevent Permissions Errors if you are running into issues when trying to install packages globally.

How to see the map working 🌎

This project makes use of cordova-plugin-googlemaps for displaying google maps. Google maps, despite being the most common map solution used in mobile applications, is a commercial soluction, and google charges a fee for its use (check google maps documentation since they may allow some daily free quota). So, to make google maps work, you will have to create your own Google maps API key. You can follow the instructions provided Here. The creation of the API key is free and very simple, you could only be charged if the usage excees certain quota.

Adding the Google maps API Key 🔑

Once you have created your own API key, go to the config.xml file, and add it in the following preferences

<widget ...>
  <preference name="GOOGLE_MAPS_ANDROID_API_KEY" value="(api key)" />
  <preference name="GOOGLE_MAPS_IOS_API_KEY" value="(api key)" />
</widget>

Note: If you would like to execute the app in the browser, you will also have to edit the file src/app/services/mapService/map-service.service.ts and enter your API key in the following place

Environment.setEnv({
      'API_KEY_FOR_BROWSER_RELEASE': '(api key)',
      'API_KEY_FOR_BROWSER_DEBUG': '(api key)'
    });

Note: Since the map depends on a cordova plugin, it will not work if you execute your app with ionic serve. You will have to execute the command ionic cordova run browser instead

Adding translations 📢

This application supports localization and (i18n) out of the box. This makes it easy to change the text used in the app by modifying only one file.

To add new languages, add new files to the src/assets/i18n directory, following the pattern of LANGCODE.json where LANGCODE is the language/locale code (ex: en/gb/de/es/etc.). Please, use the en.json (English translations), and es.json (Spanish translations) as template.

After that, go to the file src/app/app.component.html and add the new language in the language select element:

<ion-select  [(ngModel)]="language"  [value]="language"  (ionChange)="changeLanguage()">
    <ion-select-option  value="en">English</ion-select-option>
    <ion-select-option  value="es">Español</ion-select-option>
</ion-select>

The application will default to English (en) in case the translation is not found

Deploying 📲

Progressive Web App

  1. Un-comment these lines
  2. Run npm run ionic:build --prod
  3. Push the www folder to your hosting service

Android

Assuming you have your Android phone connected (or an emulator running), just type:

  1. Run ionic cordova run android --prod

iOS

Assuming you have an iphone connected (or an emulator running), just type:

  1. Run ionic cordova run ios --prod

Publishing the app in Google Play/Apple app store 📰

People at ionic have compiled this guide that shows step by step what you have to do in order to publish your app in the Play Store (Android) or in the App Store (iOS)

Hey there! You'll need to log in before you can leave a comment here.

George Portillo

George Portillo   ·   4 years ago

Hello, Its look well. I download your demo, but my http://servicesgps.civictechnology.online:8082 server do not is taken for your app. There is some problem ? These server it must be https ? Accepts ports (like 8082). A suggestion: You could complement this monitoring App, remanufacturing the Traccar client to make it more useful, for example, append some panic buttons on the screen so that they are notified live on the live map of the server, and perhaps notify a group of users selected (trusted users such as family, etc.). Or maybe attach a CHAT, etc. Thanks from México.

Jose Fernandez

Jose Fernandez   ·   4 years ago

ok version 0.1.3 is available in the play store now! I tried your URL and is working for me :)

  ·   just now

{{ reply.comment }}



Hey there! You'll need to log in before you can leave a comment here.

George Portillo

George Portillo   ·   4 years ago

Hello, Its look well. I download your demo, but my http://servicesgps.civictechnology.online:8082 server do not is taken for your app. There is some problem ? These server it must be https ? Accepts ports (like 8082). A suggestion: You could complement this monitoring App, remanufacturing the Traccar client to make it more useful, for example, append some panic buttons on the screen so that they are notified live on the live map of the server, and perhaps notify a group of users selected (trusted users such as family, etc.). Or maybe attach a CHAT, etc. Thanks from México.

Jose Fernandez

Jose Fernandez   ·   4 years ago

Hey George, thanks for your message. I just recently published an update of the app (version 0.1.3, check the version in google play store), I tried the URL of your server and it does work :). One important thing is that the URL you have to submit is not the URL of the web app, but the URL of the Rest API the application is going to interact with. Typically, is the same URL of the traccar server followed by /api. For example, if your traccar app has the URL http://servicesgps.civictechnology.online:8082, the address of your API should be http://servicesgps.civictechnology.online:8082/api. Try waiting until version 0.1.3 is available in the play store, update, and try again. Yeah, traccar has many many many functions, and include them all would have taken me way too much time (besides, everyone has different preferences on how they want the app to behave), so my original intention was creating a template with the basic functions so others can continue the work in the way they see fit. The problem with notifications is that, afaik, traccar has no integrated solution to manage notifications to mobile devices (there are services for this like firebase, but they are commercial solutions, so I don't think the traccar developers will include such a thing anytime soon). Please, try again with version 0.1.3 and tell me if it worked for you!!!

  ·   just now

{{ reply.comment }}



Hey there! You'll need to log in before you can leave a comment here.

Proativa Rastreamento

Proativa Rastreamento   ·   4 years ago

I would like to implement Push notifications, please send me a budget.

  ·   just now

{{ reply.comment }}



Hey there! You'll need to log in before you can leave a comment here.

Nelson Arrais Bezerra de Menezes

Nelson Arrais Bezerra de Menezes   ·   3 years ago

Funciona na versão 4.10 e as notificaçoes push, comop funciona a compra, recebo o apk para personalizar com minha logo e publicar é?

Nelson Arrais Bezerra de Menezes

Nelson Arrais Bezerra de Menezes   ·   3 years ago

Hello, I would like more information about the ionic application to trace, it is blocked by the application and works in version 4.10 of traccar, how does the sale work, please tell me, I post my logo and host?

Jose Fernandez

Jose Fernandez   ·   3 years ago

Hey Nelson, what do you when you say it is blocked by the application? what is blocked? are you getting an error message when trying to submit your traccar server URL?. For the sale, once you complete the payment, you will get a copy of the source code of the application for you to modify as you wish, it is not an app, this means you will have to make these modifications and compile the project either for Android or iOS and publish it to Google Play/Play store. If you're not an ionic developer, or you're not familiar with code, I would advise you not to continue with the purchase.

  ·   just now

{{ reply.comment }}



Hey there! You'll need to log in before you can leave a comment here.

Gyula Mester Neto

Gyula Mester Neto   ·   3 years ago

Buenos días, hablé contigo durante meses y sigo esperando respuesta. Recibí este mensaje La app incluye las fucniones que se muestran en https://market.ionicframework.com/starters/traccar-client-template Una funcionalidad adicional seria un desarrollo aparte, y se cobraria de forma diferente. Respondí 3 veces y hasta ahora nada

  ·   just now

{{ reply.comment }}



Hey there! You'll need to log in before you can leave a comment here.

Mateuus

Mateuus   ·   3 years ago

I have a problem opening the map on android the screen goes white, I already placed the Api key in config.xml and it is valid.

Jose Fernandez

Jose Fernandez   ·   3 years ago

Hello Mateuus, sorry for the late reply. Most of the time when I heard about this error is for some misconfiguration in the API Key. Could you double-check that the API Key is correct and have all the necessary permissions? Also, I believe I included an API Key for testing, could you try using that one?

  ·   just now

{{ reply.comment }}



Hey there! You'll need to log in before you can leave a comment here.

Rimas

Rimas   ·   3 years ago

Hi, does Firebase notifications works with this application?

Jose Fernandez

Jose Fernandez   ·   3 years ago

Hi! Sorry for the late reply. This is just a standard ionic project in which I created the different pages to interact with traccar services. So if Ionic supports firebase (which it does afaik), there should be no problem about adding the firebase plugin to this template.

  ·   just now

{{ reply.comment }}



Hey there! You'll need to log in before you can leave a comment here.

dialvesyt

dialvesyt   ·   3 years ago

teste

  ·   just now

{{ reply.comment }}



Hey there! You'll need to log in before you can leave a comment here.

dialvesyt

dialvesyt   ·   3 years ago

Can I use other maps since google has a quota limit?

Jose Fernandez

Jose Fernandez   ·   3 years ago

you certainly could but then the whole map functionality will have to be rewritten. I did separate all the actions of the map in a separate class, but still, it will not be so simple as to just change one line of code. If google maps is not really an option, you could proceed, but be ready to create your own implementation of the map handler class, or else, you could just increase the quota of the google maps api. They have very affordable plans I believe.

  ·   just now

{{ reply.comment }}



Hey there! You'll need to log in before you can leave a comment here.

Iván Ávalos

Iván Ávalos   ·   3 years ago

Thanks for the app! ¡Saludos desde México!

Jose Fernandez

Jose Fernandez   ·   3 years ago

Saludos! :)

louis comeau

louis comeau   ·   3 years ago

I figured it out. Sorry I had a space I didnt catch in my code in my port configuration

  ·   just now

{{ reply.comment }}



Hey there! You'll need to log in before you can leave a comment here.

louis comeau

louis comeau   ·   3 years ago

I have purchased and downloaded the 0.1.3 version and it still will not accept my traccar server url where it says to enter the address of the tracking server and I also do not see an api folder or file in my traccar server in order to use your example http://domain.com/api. My server is also setup to use https not http. Please guide me in the right direction

Jose Fernandez

Jose Fernandez   ·   3 years ago

Hey Louis, I'm not sure if you were able to figure this one out? I believe is better if you email me directly to josefd8@gmail.com

  ·   just now

{{ reply.comment }}



Hey there! You'll need to log in before you can leave a comment here.

louis comeau

louis comeau   ·   3 years ago

I am having trouble understanding this directive. I have grepped traccar client and traccar server I do not find that link to un comment anywhere ### Progressive Web App 1. Un-comment [these lines](https://github.com/ionic-team/ionic2-app-base/blob/master/src/index.html#L21)

  ·   just now

{{ reply.comment }}



Hey there! You'll need to log in before you can leave a comment here.

louis comeau

louis comeau   ·   3 years ago

Am I suppose to compile the app first after I have made my changes then I will see this in my index file? Progressive Web App 1. Un-comment [these lines](https://github.com/ionic-team/ionic2-app-base/blob/master/src/index.html#L21)

  ·   just now

{{ reply.comment }}



Hey there! You'll need to log in before you can leave a comment here.

  ·   just now

{{ comment.comment }}

  ·   just now

{{ reply.comment }}



Hey there! You'll need to log in before you can leave a comment here.

  ·   just now

{{ comment.comment }}

  ·   just now

{{ reply.comment }}



Hey there! You'll need to log in before you can leave a comment here.

louis comeau

louis comeau   ·   3 years ago

Am I suppose to compile the app first after I have made my changes then I will see this in my index file? Progressive Web App 1. Un-comment [these lines](https://github.com/ionic-team/ionic2-app-base/blob/master/src/index.html#L21)

  ·   just now

{{ reply.comment }}



Hey there! You'll need to log in before you can leave a comment here.

louis comeau

louis comeau   ·   3 years ago

I am having trouble understanding this directive. I have grepped traccar client and traccar server I do not find that link to un comment anywhere ### Progressive Web App 1. Un-comment [these lines](https://github.com/ionic-team/ionic2-app-base/blob/master/src/index.html#L21)

  ·   just now

{{ reply.comment }}



Hey there! You'll need to log in before you can leave a comment here.

louis comeau

louis comeau   ·   3 years ago

I have purchased and downloaded the 0.1.3 version and it still will not accept my traccar server url where it says to enter the address of the tracking server and I also do not see an api folder or file in my traccar server in order to use your example http://domain.com/api. My server is also setup to use https not http. Please guide me in the right direction

Jose Fernandez

Jose Fernandez   ·   3 years ago

Hey Louis, I'm not sure if you were able to figure this one out? I believe is better if you email me directly to josefd8@gmail.com

  ·   just now

{{ reply.comment }}



Hey there! You'll need to log in before you can leave a comment here.

Iván Ávalos

Iván Ávalos   ·   3 years ago

Thanks for the app! ¡Saludos desde México!

Jose Fernandez

Jose Fernandez   ·   3 years ago

Saludos! :)

louis comeau

louis comeau   ·   3 years ago

I figured it out. Sorry I had a space I didnt catch in my code in my port configuration

  ·   just now

{{ reply.comment }}



Hey there! You'll need to log in before you can leave a comment here.

dialvesyt

dialvesyt   ·   3 years ago

Can I use other maps since google has a quota limit?

Jose Fernandez

Jose Fernandez   ·   3 years ago

you certainly could but then the whole map functionality will have to be rewritten. I did separate all the actions of the map in a separate class, but still, it will not be so simple as to just change one line of code. If google maps is not really an option, you could proceed, but be ready to create your own implementation of the map handler class, or else, you could just increase the quota of the google maps api. They have very affordable plans I believe.

  ·   just now

{{ reply.comment }}



Hey there! You'll need to log in before you can leave a comment here.

dialvesyt

dialvesyt   ·   3 years ago

teste

  ·   just now

{{ reply.comment }}



Hey there! You'll need to log in before you can leave a comment here.

George Portillo

George Portillo   ·   4 years ago

Hello, Its look well. I download your demo, but my http://servicesgps.civictechnology.online:8082 server do not is taken for your app. There is some problem ? These server it must be https ? Accepts ports (like 8082). A suggestion: You could complement this monitoring App, remanufacturing the Traccar client to make it more useful, for example, append some panic buttons on the screen so that they are notified live on the live map of the server, and perhaps notify a group of users selected (trusted users such as family, etc.). Or maybe attach a CHAT, etc. Thanks from México.

Jose Fernandez

Jose Fernandez   ·   4 years ago

Hey George, thanks for your message. I just recently published an update of the app (version 0.1.3, check the version in google play store), I tried the URL of your server and it does work :). One important thing is that the URL you have to submit is not the URL of the web app, but the URL of the Rest API the application is going to interact with. Typically, is the same URL of the traccar server followed by /api. For example, if your traccar app has the URL http://servicesgps.civictechnology.online:8082, the address of your API should be http://servicesgps.civictechnology.online:8082/api. Try waiting until version 0.1.3 is available in the play store, update, and try again. Yeah, traccar has many many many functions, and include them all would have taken me way too much time (besides, everyone has different preferences on how they want the app to behave), so my original intention was creating a template with the basic functions so others can continue the work in the way they see fit. The problem with notifications is that, afaik, traccar has no integrated solution to manage notifications to mobile devices (there are services for this like firebase, but they are commercial solutions, so I don't think the traccar developers will include such a thing anytime soon). Please, try again with version 0.1.3 and tell me if it worked for you!!!

  ·   just now

{{ reply.comment }}



Hey there! You'll need to log in before you can leave a comment here.

Mateuus

Mateuus   ·   3 years ago

I have a problem opening the map on android the screen goes white, I already placed the Api key in config.xml and it is valid.

Jose Fernandez

Jose Fernandez   ·   3 years ago

Hello Mateuus, sorry for the late reply. Most of the time when I heard about this error is for some misconfiguration in the API Key. Could you double-check that the API Key is correct and have all the necessary permissions? Also, I believe I included an API Key for testing, could you try using that one?

  ·   just now

{{ reply.comment }}



Hey there! You'll need to log in before you can leave a comment here.

Gyula Mester Neto

Gyula Mester Neto   ·   3 years ago

Buenos días, hablé contigo durante meses y sigo esperando respuesta. Recibí este mensaje La app incluye las fucniones que se muestran en https://market.ionicframework.com/starters/traccar-client-template Una funcionalidad adicional seria un desarrollo aparte, y se cobraria de forma diferente. Respondí 3 veces y hasta ahora nada

  ·   just now

{{ reply.comment }}



Hey there! You'll need to log in before you can leave a comment here.

Nelson Arrais Bezerra de Menezes

Nelson Arrais Bezerra de Menezes   ·   3 years ago

Funciona na versão 4.10 e as notificaçoes push, comop funciona a compra, recebo o apk para personalizar com minha logo e publicar é?

Nelson Arrais Bezerra de Menezes

Nelson Arrais Bezerra de Menezes   ·   3 years ago

Hello, I would like more information about the ionic application to trace, it is blocked by the application and works in version 4.10 of traccar, how does the sale work, please tell me, I post my logo and host?

Jose Fernandez

Jose Fernandez   ·   3 years ago

Hey Nelson, what do you when you say it is blocked by the application? what is blocked? are you getting an error message when trying to submit your traccar server URL?. For the sale, once you complete the payment, you will get a copy of the source code of the application for you to modify as you wish, it is not an app, this means you will have to make these modifications and compile the project either for Android or iOS and publish it to Google Play/Play store. If you're not an ionic developer, or you're not familiar with code, I would advise you not to continue with the purchase.

  ·   just now

{{ reply.comment }}



Hey there! You'll need to log in before you can leave a comment here.

Proativa Rastreamento

Proativa Rastreamento   ·   4 years ago

I would like to implement Push notifications, please send me a budget.

  ·   just now

{{ reply.comment }}



Hey there! You'll need to log in before you can leave a comment here.

George Portillo

George Portillo   ·   4 years ago

Hello, Its look well. I download your demo, but my http://servicesgps.civictechnology.online:8082 server do not is taken for your app. There is some problem ? These server it must be https ? Accepts ports (like 8082). A suggestion: You could complement this monitoring App, remanufacturing the Traccar client to make it more useful, for example, append some panic buttons on the screen so that they are notified live on the live map of the server, and perhaps notify a group of users selected (trusted users such as family, etc.). Or maybe attach a CHAT, etc. Thanks from México.

Jose Fernandez

Jose Fernandez   ·   4 years ago

ok version 0.1.3 is available in the play store now! I tried your URL and is working for me :)

  ·   just now

{{ reply.comment }}



Hey there! You'll need to log in before you can leave a comment here.

Rimas

Rimas   ·   3 years ago

Hi, does Firebase notifications works with this application?

Jose Fernandez

Jose Fernandez   ·   3 years ago

Hi! Sorry for the late reply. This is just a standard ionic project in which I created the different pages to interact with traccar services. So if Ionic supports firebase (which it does afaik), there should be no problem about adding the firebase plugin to this template.

  ·   just now

{{ reply.comment }}



Hey there! You'll need to log in before you can leave a comment here.

Hey there! You'll need to log in and purchase the add-on before you can leave a rating here.

There are no ratings for this starter yet

  ·     ·   just now

{{ rating.comment }}

  ·     ·   just now

{{ rating.comment }}