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

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -