UnifiedPush / common-proxies

Mirror of https://codeberg.org/UnifiedPush/common-proxies
MIT License
24 stars 11 forks source link

Set FCM priority to HIGH #52

Open p1gp1g opened 2 years ago

p1gp1g commented 2 years ago

With normal priority, applications are not automatically wake from doze mode Cf. https://firebase.google.com/docs/cloud-messaging/concept-options#setting-the-priority-of-a-message

We should set the priority with the legacy API and HTTPv1 API to avoid issues (https://stackoverflow.com/a/59939658)

{
    "priority": "high", // legacy HTTP protocol (this can also be set to 10)
    "android": {
        "priority": "high" // HTTP v1 protocol
    }
}