stream-chat-android icon indicating copy to clipboard operation
stream-chat-android copied to clipboard

Notifications not working

Open Chikrix opened this issue 7 years ago • 6 comments

For many days now I've tried to get notifications working on the app but haven't been successful with this. I've checked my application's Stream Dashboard (push logs), and it tells me that the device isn't registered, even though I successfully added the device, other times it'll say "success" on the Chat Push Logs on my dashboard. I do put my other (receiving) device in the background or closed so it'll get the notification but I don't see any notification even though I could see something from the push logs. What could I be doing wrong?

Chikrix avatar Dec 01 '19 12:12 Chikrix

@Chikrix did you look at how the sample app handles push notifications? can you post here the templates you are using? (both notification and data templates)

tbarbugli avatar Dec 02 '19 12:12 tbarbugli

Yeah, I copied from the notifications on the library sample and it's still not working. I'm looking at my push logs on my Dashboard and I'm seeing publishing the message failed with error: MismatchSenderId, what could that possibly mean. Adding the device was successful

Chikrix avatar Dec 05 '19 14:12 Chikrix

Hi @Chikrix. Could you show me your code (with logs). I wanna check device registration. Also, could you provide me logs with FCM token? Usually this error showing in case when use wrong FCM token.

andriizhumela avatar Dec 06 '19 13:12 andriizhumela

I've looked into this and see what was causing it, it was my issue, I was running production firebase project on debug build, we have different stream apps for this the way it was set up.

Chikrix avatar Dec 09 '19 10:12 Chikrix

@Chikrix So, do you have others broblem witch can be associated with this issue?

andriizhumela avatar Dec 09 '19 12:12 andriizhumela

No problem with notifications again. I'll close the issue now. Thanks for your help

Chikrix avatar Dec 09 '19 15:12 Chikrix