b8ne / react-native-pusher-push-notifications

Manage pusher interest subscriptions and notification events in Javascript.
MIT License
96 stars 85 forks source link

Successfuly subscribed to interest on Android, can't receive notifications #96

Closed hypnocill closed 2 years ago

hypnocill commented 2 years ago

I followed the setup guides here (and also in the pusher beams page). The android app is building successfully. Then I setInstanceId and subscribe, and I get 'Success' from the subscribe success callback. Despite that, I don't see the device in Pusher and when I try to send a notification (no matter if app is background/foreground/killed state), no matter the interest, etc, notifications are not coming at all. Tried on emulator and on a physical device.

Any help would be highly appreciated. Thank you!

hypnocill commented 2 years ago

The problem was that I had "tools:node="replace"" in my AndroidManifest which seemed to interfere with receiving any notification (not pusher related) - https://github.com/firebase/quickstart-android/issues/477

Without this, notifications and pusher work as expected. Closing the issue

Lakshyakatarmal commented 2 weeks ago

@hypnocill can you please share the steps for setup?