Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Floating push notification is not working in some android devices.How to fix this?

$
0
0

Hi,
I have an app that should show headsup notification while the app is in both foreground and background(not in history). And my sample json data is like this.
{
"to":"push-token",
"priority": "high",
"notification": {
"title": "Test",
"body": "Mary sent you a message!",
"sound": "default",
"icon": "youriconname"
}
}
It's working fine in Redmi 6 pro, but in other device not displaying headsup notification. If I set the notification priority to maximum manually from the device it shows the headsup notificaion. Is there any way to do this dynamically from the code.And also I want to show notification count in the badge


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>