push - fcm reciving two notification -
in fcm reciving 2 notification.
how stop notification tag android devices?
{ "to" : "bk3rnwte3h0:ci2k_hhwgipodkcizvvdmexudfq3p1...", "priority" : "normal", "notification" : { "body" : "this week's edition available.", "title" : "newsmagazine.com", "icon" : "new" }, "data" : { "volume" : "3.21.15", "contents" : "http://www.news-magazine.com/world-week/21659772" } }
change way:
{ "to" : "bk3rnwte3h0:ci2k_hhwgipodkcizvvdmexudfq3p1...", "priority" : "normal", "data" : { "body" : "this week's edition available.", "title" : "newsmagazine.com", "icon" : "new", "volume" : "3.21.15", "contents" : "http://www.news-magazine.com/world-week/21659772" } }
refer: notifications_and_data_messages
or
you can call method stop notifications processing
https://developer.android.com/reference/android/content/broadcastreceiver.html#abortbroadcast()
Comments
Post a Comment