CrossGeeks/FirebasePushNotificationPlugin

Notification not received on real device, works on Simulator

archergod opened this issue · 3 comments

I am first time user for the plugin, and though I get the notification using Console firebase to send push notification in DEBUG mode to simulator, as well as my PHP script is able to send it. But when I make a Release copy of it on real device I get the Refresh Token but didn't recieve the notification.

I try to put app in foreground, background, reboot phone and didn't start app or App killed or closed. nothing works. Since simulator is working I do not doubt I did something wrong in code. Maybe it is some compile time setting that is causing Issue. I have "Link" as SDK only. Thanks``

EDIT: I was able to test it successfully with someone else's device .. but now can you help me figureout what might be issue with my own device it is Android 12.5 or something.

Same here.

I believe it has something to do with Android 12+ (API 31+).

I am also heaving a headache to allow notification to be displayed when the app is closed. On Android 11 this was no problem. But with Android 12 something has changed, and we cannot upload a new APK to the PlayStore with a Targeted API of 30.

I have no idea how, but it looks like i fixed my problem on Android 12/13.

Can you show me your AndroidManifest.xml content?

Also, what is the Minimum Android Version, Target Android Version, and your Compiled Android Version (Target Framework)?

After android 13 you have to ask for notification permission.
"POST_NOTIFICATIONS"
ask me if you need that custome code.