Firebase notification error problem

Bhanu From Nepal 2 years ago

I am trying to setup firebase notification for my new custom app , geeting error like this:

Firebase user 33 error - SenderId mismatch - FirebaseMessagingException (... < NotificatorFirebase:114 < NotificationResource:96 < ... < OverrideFilter:49 

Please guide me.
Thanks in advance.

Cristian 2 years ago

Captura de pantalla 2024-05-28 a la(s) 8.07.54 p. m..png

try removing the notifications token
https://www.traccar.org/forums/topic/firebase-error3/

Bhanu From Nepal 2 years ago

Hello, Cristian thanks for your replay. I removed all notification token , also restart the server but same error. Is there any special seeting or configuration needed on firebase setting? In my preivious custom app it works fine but i am trying with new firebase porject and new custom android app on same server by removind old firebase API.

Cristian 2 years ago

and did you replace in the traccar.xml configuration file the firebase service account key?

<entry key='notificator.firebase.serviceAccount'>
Bhanu From Nepal 2 years ago

Yes!

<entry key='notificator.firebase.serviceAccount'>
{
  "type": "service_account",
  "project_id": "z1-new-tracking",
  "private_key_id": "84a0d95fb8571f6edf6c49faaf97ab***********",
  "private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQC1xDA8Iwa5AUDu\nnUi4eR2PxelPsArxuqMAkcEbLcj3N6+6esuLbJVJmJq54XoaZyP/FDzTS1m36IaL\ngih6YNXHRGWAOA6htjO6oW++BHjavyUccwD/MIqtQcGqpjavixJNgeRQet/ZXTDi\nxMHzGhhvhmrFm5o1n9+bmq/os8Gn8PA8PcLA0LqFmPfxkcZr8k2RPhCT+GDJDd8h\nhehiVHwuZJYRs1l2qrTKdchnYyp1HnMvg9r/+q7ZcnUWRPIa+qgI7GVzdcP+r0KV\nyCFFtH/Tqymk5I6sz1cs3c4pIM0WZETxAyDNgWT1hw+jchEhdAG00w+N3VNxsl0e\nrnku8Z27AgMBAAECggEARuEePhUahgIrI+FJfkYcdPgkJuLrIaA59/reZo7QEzcv\n23QO82uAO5a6n0mBp9IYg1uM7IgxkDmoXbZ/ulkQhAfz3K//ZKf8PAa/4EU2K3bm\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0neCupFX5g5ReZZS6Ye\nUXjxFiRuVLJcCnhke0EP7fl5\n-----END PRIVATE KEY-----\n",
  "client_email": "firebase-adminsdk-a59zk@z1-new-tracking.iam.gserviceaccount.com",
  "client_id": "103681471269467682927",
  "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": "https://www.googleapis.com/robot/v1/metadata/x509/firebase-adminsdk-a59zk%40z1-new-tracking.iam.gserviceaccount.com",
  "universe_domain": "googleapis.com"
}
</entry>

Note: I replace some char. with "*"

Anton Tananaev 2 years ago

From what I understand, the error means that your app project is different from your server project.

Bhanu From Nepal 2 years ago

Thanks for your responce & support. Please give me some idea when I send notification from firbase console it is working on same app project. But, not working from here.

Anton Tananaev 2 years ago

Most likely something is misconfigured somewhere.

Bhanu From Nepal 2 years ago

Hello ! Now , When I am sending test message , here not any error shown in log but cant get notification on app. Please guide me possiable resaons. I removed token from user user account-attrinutes , clear all catch , restart server several times, notification is allow on mobile app. Please help me. My app build in react native , do we need to do any extra configuration on app development side, server side or firebase. We are getting notification from firebase on same app when I try it from firebase console.

Bhanu From Nepal 2 years ago

Anybody Help Me Please.

Cristian 2 years ago

Bhanu From Nepa, the issue is that there could be 1 or more problems, as it involves firebase configuration, Traccar server, Apps configuration. There is also the option to pay for consultancy, it may be an option for you.

https://www.traccar.org/product/professional-services/

At least find out if they can help you

Bhanu From Nepal 2 years ago

Thanks !
I have two apps running on playstore z1 tracker and z1 tracker Pro. Pro is my new app devleoped in recat native. I am geeting notification on old app from same server when I remove old firebase code and replace with new apps firebase code mention above in traccar.xml it doesnot show any error but notification not delivered to mobile app.
So, I think there is not any error on server side. But I cant find the actual problem.

Cristian 2 years ago

what do you mean by new app devleoped in recat native

Bhanu From Nepal 2 years ago

I mean I developed a app in flutter and running on playstore and ios its well function notification. Now, I changed my app and publishd in play store which is developed in recat native.
Now i have to shift firebase notification from old app to new app.
When i try to replace firebase setting from old to new on traccar.xml it not works.

Bhanu From Nepal 2 years ago

Sorry for weak english.