Firebase configuration

Amado2 years ago

I read the documentation but still unsure what to do to properly configure traccar.xml to allow push notifications.
I understand that I should download google.services.json file and copy/paste its content in place of [FIREBASE DATA] below:

<entry key='notificator.types'>mail,firebase,web</entry>
<entry key='notificator.firebase.serviceAccount'>[FIREBASE DATA}</entry>

is that correct?
If not, please provide an example

Thanks a lot in advance

Anton Tananaev2 years ago

Sounds correct.

Amado2 years ago

I did as above but I got errors when testing the firebase channel:

},
Error reading credentials from stream, 'type' field not specified. - IOException (... < NotificatorFirebase:79 < <gener:-1 < *:-1 < ... < NotificatorManager:70 < ...)

I checked the xml file downloaded from firebase and it does not contain any "'type' field
Could you show and example configuration for firebase to see what parameters are needed?

Anton Tananaev2 years ago

Seems like you haven't configured the service account correctly.