Traccar push notifications

Anton Tananaev4 years ago

We added a new push notification option. It's native notifications to the official Traccar Manager app.

If you want to try it out, here's an updated server version (install on top of Traccar 4.9):

https://www.dropbox.com/t/VVKp4JYM24dGSYLj

Configuration should look like this:

<entry key='notificator.types'>web,mail,traccar</entry>
<entry key='notificator.traccar.key'>YOUR API KEY</entry>

You can find the API key here (need to be registered on the website):

https://www.traccar.org/my-account/

Rodrigo4 years ago

WOW!!!! thanks a lot!!!! works fine!!!!

Anders Yuran4 years ago

Nerd question. How do you install it? Change the traccar.jar and rerun the installation?

Anton Tananaev4 years ago

Replace JAR file and restart the server.

Anders Yuran4 years ago

Installed and changed traccar.xml. Restarted the server. Activated in manager. Dont work. Something I have forgotten? Reinstall the manager?

Anton Tananaev4 years ago

Are you sure you are using Traccar Manager with push notifications support (from Google Play store)? Are you connected to the correct server? Check use attributes for firebase token.

Anders Yuran4 years ago

All of the above I am. I reinstalled the manager even if the version number is the same and now it works.

Rodrigo4 years ago

You need to enable at least one notification with “notificatorTraccar” to test it.

Every user will receive every notification??? I had test it, and at least admin and 1 other user are receiving the same....

Anton Tananaev4 years ago

Each user would receive their own notifications. You probably receive for both users because you logged in both accounts on the same mobile device.

Rodrigo4 years ago

Wow that was fast! Thanks for your answer....

Right, it was like you say. I need to delete and reinstall to receive only the user notification ?

Karl G4 years ago

Will this work on a Pi (ARM)

Anton Tananaev4 years ago

Yes.

Karl G4 years ago

just tried and get

Exception in thread "main" java.lang.NoClassDefFoundError: com/google/inject/Injector
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
    at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
    at java.lang.Class.getMethod0(Class.java:3018)
    at java.lang.Class.getMethod(Class.java:1784)
    at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
    at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: com.google.inject.Injector
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 7 more
Anton Tananaev4 years ago

What version did you have installed there?

Karl G4 years ago

the link above https://www.dropbox.com/t/VVKp4JYM24dGSYLj

also have iPhone