Devices get connected and disconnected after enable notifications.

maclofina year ago

I have a issue, when I try to enable traccar notification to send alarms and events to the mobile app, the server hang up and all devices are disconnected

This is the logs when I enable a notifications and the device(s) trigger a alarm/event.

[object Object]

the test notification works well.

I have enable theses

undefined

I had the traccar.xml configured with my token and all good but I not understand why it happens.

Anton Tananaeva year ago

Looks like something is misconfigured.

maclofina year ago

its possible, but with this logging info I couldn't get what is misconfigured

[object Object]

Another question, Anton, with this commit now is able to read-only user have notificationTokens without need of administrator privileges?
https://github.com/traccar/traccar/commit/2147ecb2d9fe0fb49b3f03dc650bc363e72e3fd2

Anton Tananaeva year ago

Notification channel is misconfigured.

Yes, read-only users will be able to configure notification tokens.

maclofina year ago

1- I cannot spot the misconfiguration, I follow the notification docs, I read others forum post about that
For example, these are the two parameters that I have, following theses steps

undefined

2- regarding the read-only can configure notification tokens, I just downloaded and install the latest version on Traccar and test with a read-only user and the read-only user cannot configure notifications tokens yet.

Anton Tananaeva year ago
  1. Check all the channel values you have in the database.
  2. When was the version released that you downloaded and when was the commit?
maclofina year ago

1- I have checked the notificators/notifications values and all seems ok (I don't see any channel value, just notification)

undefined
undefined
undefined

2- the commit was 2 days ago, yesterday I downloaded and upgrade traccar from the master repo that inclue the commit and didn't create a notificationToken when readonly user.

Anton Tananaeva year ago
  1. You're looking at the wrong tables.
  2. Probably you didn't upgrade something correctly. I recommend waiting for the official release.