olucurious / PyFCM

Python client for FCM - Firebase Cloud Messaging (Android, iOS and Web)
http://olucurious.github.io/PyFCM/
MIT License
803 stars 206 forks source link

How to add key "priority" and value HIGH in json #259

Closed 000xuandu closed 2 years ago

000xuandu commented 4 years ago

I have the following json:

{ "registration_ids": ["TOKEN"],

"priority": "high", // this line

"data" : {
        "body" : "The first message from the React Native and Firebase",
        "title" : "a' Event"
    }
}

This helps show popup notifications for android 8+. Without this key, the notification will not appear. The "low_priority" key is similar to the "priority" in my example? How to add "priority" when sending from PyFCM. Thank you.

sachinkumar502 commented 4 years ago

facing same issue , it show success but mobile side didnt show anything.