android - Grouping firebase handled notifications and in app fired notifications -


i wondering how group firebase handled notifications , in app fired notifications single item in notification bar. notification pushed server , handled firebase when app running in background can grouped specifying tag of notification.

when app running , received push notification server, app call notificationcompat.builder build notification , issue in notification bar.

the problem is, notification push server tag property can't grouped notification build notificationcompat.builder, setgroup has been called.

notificationcompat.builder mbuilder =         new notificationcompat.builder(this)                 .setsmallicon(r.drawable.myicon)                 .setcontenttitle("app")                 .setgroup("timereminderf")                 .setgroupsummary(true)                 .setcontenttext(remotemessage.getnotification().getbody()); // notify notificationmanager mnotificationmanager = (notificationmanager) getsystemservice(context.notification_service); mnotificationmanager.notify(threadlocalrandom.current().nextint(1000000, 9999999),mbuilder.build()); 

any ideas?


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -