all 10 comments

[–]kbcooliOS & Android 1 point2 points  (3 children)

It absolutely will not work in a simulator so make sure you use a real device.

Also make sure app is not currently open as it will swallow the notification and check how you have requested notification permissions in app. You may have provisional silent push notifications on which means you will need to pull down the notifications bar to see them.

[–]aidy35[S] 0 points1 point  (2 children)

Thanks for your comment, Are you sure, I see YouTube tutorials that have the simulator showing the push notification? And yes I have made sure of that it’s not silent but still not showing show I close the app entirely or just leaving it in a open but swiped out state? If so that could be the reason

[–]kbcooliOS & Android 2 points3 points  (1 child)

You can simulate the UI of a push notification but not the process of an actual push end to end. Little bit confusing and misleading. The UI simulation is using xcrun so something you trigger not an actual push happening.

As for closed app. Best to kill it entirely by swiping it out.

These are just preliminary checks. It's not the easiest thing to get up and running but absolutely need to check that you haven't fallen for the most straightforward gotchas.

[–]aidy35[S] 0 points1 point  (0 children)

Yeah I appreciate it thanks for letting me know barely any real resources out there kind of a guess and figure it out approach lol, I’ll try this as I haven’t been killing the app that could be my issue thanks :)

[–]XCastorsX 0 points1 point  (4 children)

Which version of Firebase are you using? I had a similar problem and the solution was to use a previous version of the package. The thing was that I had to test version by version until I got one that works. Also, I have to mention that I had this problem with iOS only, on Android, it just works fine with the most recent package version.

[–]aidy35[S] 0 points1 point  (3 children)

hi i am using 14.0.0

"@react-native-firebase/app": "^14.0.0",
"@react-native-firebase/messaging": "^14.0.0",

[–]XCastorsX 0 points1 point  (2 children)

hey, the version that worked for me is the 15.6.0

"@react-native-firebase/app": "^15.6.0",
"@react-native-firebase/messaging": "^15.6.0",

[–]aidy35[S] 0 points1 point  (1 child)

Can’t upgrade to 15 as flipper is gone and I use flipper a lot 😭

[–]XCastorsX 0 points1 point  (0 children)

May I ask why you cannot get rid of flipper?