Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notification not received on real device, works on Simulator #448

Open
archergod opened this issue Nov 21, 2022 · 3 comments
Open

Notification not received on real device, works on Simulator #448

archergod opened this issue Nov 21, 2022 · 3 comments

Comments

@archergod
Copy link

archergod commented Nov 21, 2022

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.

@TotalTronix
Copy link

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.

@TotalTronix
Copy link

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)?

@appuviradiya
Copy link

appuviradiya commented Jan 19, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants