FCM for Android: pop up system notification when the application is in the background

Can a pop-up window for firebase system notification be displayed at the top of the screen (when the application is in the background)? I use setpriority (notification. Priority_max) to display the onmessagereceived notification from the foreground

I use both notification and data fields, so I don't have access to notifications received at the front desk. I've tried to set the priority to high and use notification only push - it doesn't help

resolvent:

When using data only payload, messages can only be processed in onmessagereceived when the application is in the background

When both notifications and data are used in the payload, the expected behavior is that the Android system will process notifications when the application is in the background, regardless of the priority value

For details, please refer to the official documentation on handling Android messages

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>