Push notification suddenly stopped working. Traccar Windows server - traccar manager IOS

Sirhaugen84 4 years ago

Push notification suddenly stopped working.
Traccar Windows server (newest) - traccar manager IOS (newest.)

While trying to find out i know I should remove everything from web gui (settings regarding alerts)

Could anyone please tell me step by step on howto set it up from the beginning?
I have the API key stored in the traccar.xml file.

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

</properties>

When I try to send a test from web gui my traccar app says: "undefined, "undefined

Anton Tananaev 4 years ago

Have you checked logs for warnings or errors?

Sirhaugen84 4 years ago

Yes sir : no error that I can see

Anton Tananaev 4 years ago

Check if you have a device token in your user attributes. Make sure it's the latest one.

Also, what version of Traccar are you using? And which of the web apps?

Sirhaugen84 4 years ago

Anton:
Server is the newest so is the Traccar Manager from appstore.

What do you mean check that token is the latest one?
When I click the user settings and attributes I have added notificationToken. After restarting Traccar Manager I can see that this field is filled with random letters and numbers

Anton Tananaev 4 years ago

You've added it? Why?

Sirhaugen84 4 years ago

I have only added notificationToken but left the value blank. After restart a random string is auto filled.

Is this wrong?

Thats why I asked for a step by step tutorial though ☺️

Anton Tananaev 4 years ago

You shouldn't need to add it manually, even with a blank value. Auto-filled value is a good sign. It means you have the token, so it should work.

Sirhaugen84 4 years ago

But when I try to send test my Traccar Manager on my phone only display «undefined, undefined» at the bottom

Anton Tananaev 4 years ago

Screenshot?

Sirhaugen84 4 years ago
Anton Tananaev 4 years ago

That's completely unrelated to push notifications. That's web notification. What version of backend/frontend are you using?

Sirhaugen84 4 years ago

The log now says.

WARN: No smtp config found.

I have only selected «Traccar» in notifications, snd not web and mail so that is strange

Anton Tananaev 4 years ago

Could be related to this:

https://www.traccar.org/forums/topic/traccar-51-preview/page/3/#post-72568

That's why I asked to provide versions info.

Sirhaugen84 4 years ago

So which version do you recommend then?
Is the problem within the app or server?