Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Notifications sometimes don't work on android app in release mode, changed upon installation. #1348

Closed
@Pazamozaurus

Description

@Pazamozaurus

I'm using react-native-push-notifications in my android app(android 10, Samsung galaxy s10).

I have a very weird problem, and that is sometimes I don't get any notifications in my released app (in the debug version it works great).
But the point is, it's not that sometimes I get the notifications and sometimes don't, but rather it depends on when I install my app.
It can be that after I install my app I won't get notifications at all, but after I delete it and re-install, it suddenly can get notifications again.

I really can't figure out what's going on and why deleting and re-installing the app suddenly makes it accept notifications (re-installation doesn't 100% help it to start get notifications, sometimes I need to install and re-install it a couple of times before I can get it.

My version of react native is 0.61.4 and version 3.1.9 of react-native-push-notification.

I'm not sure what kind of another info/configuration about my app I should point out, because I really have no clue what can cause such a phenomenon.
Just to clarify, all the other notifications in my phone work properly without any problems.

Other clarifications: I'm talking about remote notifications of course that I send through firebase

After some debugging I found out that indeed when the notifications don't work and I try to send a message to the token I receive on the onRegister function, I get a "NotRegistered" error from FCM.

But I really have no clue why the registration sometimes work and sometimes doesn't...

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions