I'm working on a messaging app where messages need to come through so we're sending our messages as "High Priority" to bypass Doze.
In Android P they added a new thing called "App Standby Buckets" which limit how many FCM messages you can send if the app isn't in the "active" or "working set" app list.
The buckets are detailed at this link
https://developer.android.com/about/versions/pie/power
The documentation also says
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.
If the screen is off and the notification sound plays, but the user doesn't see or interact with the notification since the screen is off, will that count against our bucket limit?
These notifications need to come through and being placed in the frequent or rare bucket could be very problematic.
I know we can request permission to bypass battery optimizations (I believe we fall in the allowed category) but there's no guarantees that will be granted.