FCM: I have used FCM to receive notification for m

2019-09-12 06:02发布

I am able to group notifications for my app when it is in foreground. Whenever the app goes in background it creates multiple notification. How can I fix this?

1条回答
乱世女痞
2楼-- · 2019-09-12 06:27

As google says in this site, when app is in background notifications are administrated by the system by default :

Notifications delivered when your app is in the background. In this case, the notification is delivered to the device’s system tray. A user tap on a notification opens the app launcher by default.

But if you want to work with the notifications by "yourself" you should send the 'data message' instead of the 'notification' as is said here and you can handle the notification.

查看更多
登录 后发表回答