Push notification doesn't work

smsoousa9 months 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 Tananaev9 months ago

Do you get the notification token in the user account?

smsoousa9 months ago

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

Anton Tananaev9 months ago

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

smsoousa9 months 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.

smsoousa9 months 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 Tananaev9 months ago

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

smsoousa9 months 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 Tananaev9 months ago

Are you the server is configured correctly?

smsoousa9 months ago

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

Anton Tananaev9 months ago

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