Push notification problem

Alex Alvarez4 years ago

hi Anton and all members.

I can't get push notifications working. I've followed documentation and firebase instructions

I can't solve the problem and here is what I've done:

1- download the source code of TRACCAR MANAGER
2- link android app with firebase adding google.services.json to traccar manager source code
3- Compile and build a new APK file
4- install it on my smart phone
5- edit traccar.xml with my server key

<entry key = 'notificator.types'> web, mail, firebase </ entry>
<entry key = 'notificator.firebase.key'> my server key </ entry>

6.- I can send notifications to app from firebase cloud messaging
7.- restart traccar service
8.- I can't get token in user attributes

why does not it work? what would I do?

Regards.

Anton Tananaev4 years ago

Your config is definitely wrong. You have extra spaces everywhere.

Alex Alvarez4 years ago

Thanks for your fast answer

it's just a typing error in the forum, the traccar.xml file has't spaces

this is my configuration
<entry key='notificator.types'>web,mail,firebase</entry>
<entry key='notificator.firebase.key'>server_key</entry>

I tryed with server key and legacy server key

I rule out firewall errors, I remove all blocking policies and even test on a server with public IP connected directly to the ISP without positive results