Push notification on self-hosted server

Theodosis3 days ago

Hi everyone,

I've set up a Traccar server (v6.7) on a Linux PC and everything is running smoothly—except for push notifications to my phone, which I can't get to work. I've read the documentation and checked a few related posts here, but no luck so far. Any help would be appreciated!

In my traccar.xml config, I’ve added:

<entry key='notificator.types'>traccar</entry>
<entry key='notificator.traccar.key'>a_long_string_from_traccar_org_profile</entry>

When I click “Test Channels” in the web UI, no push notification is received.

If I change the types to:

<entry key='notificator.types'>traccar,web</entry>

...then I get a browser notification and also a notification in the mobile app only if it's open. So the “web” channel works, but not push via Traccar.

My understanding was that push notifications go through the traccar.org server, and that no further configuration is needed beyond the key—am I missing something? Do I need to explicitly define the traccar.org endpoint or enable anything else?

Thanks in advance!

Anton Tananaev3 days ago
  1. Are you using official Traccar Manager from Google Play store?
  2. After logging in mobile app, is there a notification token in your user account (attributes section)?
Theodosis3 days ago
  1. Yes, I'm using the official Traccar app from the Play Store (it's updated to the latest version).
  2. Yes, the key is definitely there. I copied it directly from the phone and pasted it into the server config to avoid any typos.

That said, I'm a bit confused about which token should actually be used.
At first, I used the token shown on my traccar.org profile page—didn’t work. Then I tried the one displayed in the app settings—still no push notifications.

So now I'm wondering: which token is the correct one to use in the server config?

Anton Tananaev3 days ago

Wait wait. You should not copy the notification token from anywhere. It should be filled out automatically for you on login.

Theodosis3 days ago

Ah, that did the trick—thanks for clearing it up!

Just to summarize for anyone facing the same issue:

  1. In the server config file, I used the token from my traccar.org profile.
  2. On the Traccar app, I didn’t change anything—just confirmed that a token is present under the Attributes section.

That’s it—push notifications are now working as expected!