I made changes as DonManfred once guided me by adding the receiver to receive notification. and in parts it worked. When the app is open I am able to receive the message normally now.
View attachment 139307
But if I close and send the message it gives me the following error:
java.lang.IllegalArgumentException: big2be.unifruti.local.android: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
If you need the complete code, i send it here. I was reading something with NB6 but I have no idea how to convert from FirebaseMessaging library to NB6.
Thank you for attention.
View attachment 139307
But if I close and send the message it gives me the following error:
java.lang.IllegalArgumentException: big2be.unifruti.local.android: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
If you need the complete code, i send it here. I was reading something with NB6 but I have no idea how to convert from FirebaseMessaging library to NB6.
Thank you for attention.