Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set FCM priority to HIGH #52

Open
p1gp1g opened this issue Sep 7, 2022 · 0 comments
Open

Set FCM priority to HIGH #52

p1gp1g opened this issue Sep 7, 2022 · 0 comments

Comments

@p1gp1g
Copy link
Member

p1gp1g commented Sep 7, 2022

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
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant