Firebase error

Frrost2 years ago

Hi
I tried to configure firebase. I get the following error message when testing.

Expected name at line 5 column 4 path $.private_key - MalformedJsonException (... < NotificatorFirebase:58 < <gener:-1 < *:-1 < ... < NotificatorManager:73 < ...)

My configuration in default.xml

<entry key='notificator.types'>web,mail,firebase,traccar</entry>
<entry key='notificator.traccar.key'>xxx</entry>
<entry key='notificator.firebase.serviceAccount'>
  {
  "type": "service_account",
  "private_key": "xxx",
  }
</entry>
Anton Tananaev2 years ago

That JSON has to have more parameters. You need to use what Google gives you without editing it.

diego2 years ago

Hi Anton. Could you please indicate the file traccar.xml with the configuration for firebase. (an example) I am working with: entry key='notificator.firebase.serviceAccount' and I don't understand how the parameters go. please greetings

Anton Tananaev2 years ago

The parameter is correct. It should contain JSON that you get directly from Google.

savasy2 years ago

Hi Diego,

Did you find a solution for this?

Best,

Savas