Push notification doesn't work

smsoousa 2 years ago

Hello everybody! I'm trying to use push notification to track manager android but it doesn't work. The server side is ok, I tested the manager through the play store and it works well. I compiled it using the Google flavor, but even so, the push doesn't arrive.

Anton Tananaev 2 years ago

Do you get the notification token in the user account?

smsoousa 2 years ago

Yes! I even deleted it and generated a new token, but it didn't work.

Anton Tananaev 2 years ago

And no errors in the logs? And no error if you test the channel in notification settings?

smsoousa 2 years ago

I emulated the app as GoogleDebug, generated annotation through the test channel, without any errors in the test channel and without any errors in the emulation logs.

smsoousa 2 years ago

On the web server, I receive this error in the logs when I generate a notification from the test channel:

WARN: Push user 1 error - SenderId mismatch
Anton Tananaev 2 years ago

So there is error or no errors? I hear conflicting information.

smsoousa 2 years ago

Yes, only this one in the web server logs:

WARN: Push user 1 error - SenderId mismatch.

In the app, there are no errors in the android studio logs during emulation.

Anton Tananaev 2 years ago

Are you the server is configured correctly?

smsoousa 2 years ago

Yes, that's correct. When I download Traccar Manager from the play store, I can receive the push normally.

Anton Tananaev 2 years ago

Wait what? The Firebase project should be different if you use your own app vs our official app.