Reputation: 111
I am facing delayed notification when phone is ideal and not in use for few minutes. Even sometimes I am getting notification when phone start to use, not before that. Is it app issue or phone settings issue? I tried to change phone settings like Turn Off Adaptive Battery, Don’t Optimize for that app. I checked app side; I didn’t find anything wrong from app. Can anyone help me please?
Thanks
Upvotes: 4
Views: 8816
Reputation: 135
I solved my problem when I added a special http header: urgency-option
See more: https://datatracker.ietf.org/doc/html/rfc8030#section-5.3
Upvotes: 0
Reputation: 96
To solve this problem, I had to set the priority of the messages from the backend to high priority.
Check this out: https://firebase.google.com/docs/cloud-messaging/concept-options#setting-the-priority-of-a-message
Upvotes: 5