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
Post a Comment