PUSH Firebase messaging not working

jesusle2 years ago

Hi Anton

I have configured the server with the parameters to enable firebase notifications and json en traccar.xml, but in the same way the push notifications do not arrive. I have also added play services in the app. I tried directly from the firebase console and there the notifications arrive from there to the app.

jesusle2 years ago

Working sending by firebase selecting packge name app(massive send), but send by token not working, traccar 5.2. Regards

Anton Tananaev2 years ago

This forum is for everyone to participate, not just for me.

jesusle2 years ago

I didn't know

Anton Tananaev2 years ago
jesusle2 years ago

Only you usually answer me, can you help me?

Anton Tananaev2 years ago

Do you want share your configuration?

jesusle2 years ago

Yes, is this

<entry key='notificator.types'>web,mail,firebase</entry>
<entry key='notificator.firebase.serviceAccount'>
  {
  "type": "......",
  "project_id": "......",
  "private_key_id": "......",
  "private_key": "-----BEGIN PRIVATE KEY-----......\n-----END PRIVATE KEY-----\n",
  "client_email": "......",
  "client_id": "......",
  "auth_uri": "https://accounts.google.com/o/oauth2/auth",
  "token_uri": "https://oauth2.googleapis.com/token",
  "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
  "client_x509_cert_url": "......"
  }
</entry>
Anton Tananaev2 years ago

Looks fine to me. Are there any errors if you test it?

jesusle2 years ago

After, 2 hours just start sending push notifications, maybe take time for firebase to check registration, so now working. Thanks

And for traccar push, where is key_traccar? For set in traccar.xml?

Anton Tananaev2 years ago
Shadow7 months ago

Hello Jesus, tell me, do you think you can share how you got the push notifications to work? I am relatively new to Traccar and I am somewhat blocked with this question.