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

Consider setting FCM priority to "high" for better delivery #70

Closed
abrender opened this issue Dec 29, 2021 · 5 comments
Closed

Consider setting FCM priority to "high" for better delivery #70

abrender opened this issue Dec 29, 2021 · 5 comments
Labels
enhancement New feature or request server Relates to the main binary (server or client)

Comments

@abrender
Copy link

I noticed that Instant Delivery is recommended for instant alerts because "Without instant delivery, messages may arrive with a significant delay".

A bit of snooping reveals that you can set the priority of a message to "high", which will "allow FCM to wake up a sleeping device when necessary". That functionality appears to be limited/bucketted but "if, in response to a high priority message, a notification is displayed in a way that is visible to the user, then your app standby bucket quota will not be consumed by that message".

@binwiederhier
Copy link
Owner

Thank you for the suggestion. I remember seeing it, but there was some comment about not misusing it, or otherwise there will be some penalty. I forgot, but I'll read up on it again.

@binwiederhier
Copy link
Owner

Ah yes it's right there

High priority messages generally should result in user interaction with your app or its notifications. If FCM detects a pattern in which they don't, your messages may be de-prioritized.

@binwiederhier
Copy link
Owner

if, in response to a high priority message, a notification is displayed in a way that is visible to the user, then your app standby bucket quota will not be consumed by that message

wait so do you think this means that if i display a notificaiton visible to the user, then the de-prioritization won't happen?

@binwiederhier
Copy link
Owner

I think it may be worth setting the FCM priority to high for ntfy priorities 4 and 5, but I think I may need to create a limiter to regulate how often it's used. I will have to do some more research.

@binwiederhier binwiederhier added android-app ntfy Android app enhancement New feature or request labels Dec 31, 2021
@binwiederhier
Copy link
Owner

@abrender With the next server release, messages with priority 4+5 (high+max) will be FCM high priority messages

@binwiederhier binwiederhier added server Relates to the main binary (server or client) and removed android-app ntfy Android app labels Jan 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request server Relates to the main binary (server or client)
Projects
None yet
Development

No branches or pull requests

2 participants