Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49223

Multiple push notification messages on android

$
0
0

@danp wrote:

When sending two notifications the second one always overrides the first one in the notification center.
According to the docs this should happen only when using the tag:

"tag": Indicates whether each notification message results in a new entry on the notification center. If not set, each request creates a new notification. If set, and a notification with the same tag is already being shown, the new notification replaces the existing one.

However this happens to me all the time, regardless whether I set a value for the tag or not.

I even tried setting a random tag & collapse_key (which as far I understand shouldn't be related in this case, but I gave it a try). Still didn't help.
Here's a sample of a notification object I'm sending:

{
   "tokens":[
      "my-device-token"
   ],
   "profile":"my-profile-tag",
   "notification":{
      "message":"message",
      "android":{
         "payload":{
            "collapse_key":9918519,
            "tag":2825928
         }
      }
   }
}

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>