Top*_*ndy 6 notifications android
我想在应用程序被终止时对 FCM 通知进行分组,
我知道当应用程序处于前台时,操作系统正在使用 setGroup 进行分组。
Notification summaryNotificationWithBackground =
new NotificationCompat.Builder(mContext)
.setContentTitle("2 new messages")
...
.extend(wearableExtender)
.setGroup(GROUP_KEY_EMAILS)
.setGroupSummary(true)
.build();
Run Code Online (Sandbox Code Playgroud)
但是当 App 在后台时MyFirebaseMessagingService不会被调用。
那么如何在后台应用程序或应用程序被终止时对消息进行分组。
| 归档时间: |
|
| 查看次数: |
1333 次 |
| 最近记录: |