Hey Tristan!
Sorry for re-up this old thread!
I’ve got the same behaviour in my app. But when sending background push to different Android versions, I realize that for the Android 7.1 the background push notifications works as expected, and for Android 12 the background push is indeed received by the application, but it raises an error:
W/ReactNativeJS: [Client] No background message handler has been set. Set a handler via the "setBackgroundMessageHandler" method.
...
Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
So, for those who face this same issue, I recommend to try with different Android versions to see if works.
That’s not solve the problem, but is a signal that the Native Template should be corrected. I’m using native template version "6.3.1", studio pro “9.18.0”.
(Android 7.1 is able to receive the push notification and process the associated open Nanoflow accordingly)
Cheers!
Hello!
Just to let you know that I’ve managed to get push notifications working on Android 13!
Steps:
<meta-data android:name="com.dieam.reactnativepushnotification.notification_color"
android:resource="@color/white"/>