Skip to content

FCM "priority" should be inside "android"  #555

Open
@victorpantoja

Description

@victorpantoja

Hey guys

According to documentation, the "priority" should be inside "android" attribute:

{
  "message":{
    "topic":"subscriber-updates",
    "notification":{
      "body" : "This week's edition is now available.",
      "title" : "NewsMagazine.com",
    },
    "data" : {
      "volume" : "3.21.15",
      "contents" : "http://www.news-magazine.com/world-week/21659772"
    },
    "android":{
      "priority":"normal"
    },
    "apns":{
      "headers":{
        "apns-priority":"5"
      }
    },
    "webpush": {
      "headers": {
        "Urgency": "high"
      }
    }
  }
}

However, django-push-notifications add it to the same level as "data":

{
  "data": {

  },
  "priority": "high",
  "registration_ids": [
    "blabla"
  ]
}

Am I not seeing something? I fixed it on my fork but it would be cool to use the mainstream again!

Documentation:
https://firebase.google.com/docs/cloud-messaging/concept-options#setting-the-priority-of-a-message

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions