Many customers are telling me this issue, so I think it is related to some "battery optimization" features in recents Android versions because everything was working fine before.
After a couple of minutes the device is in sleep, it does not receive Firebase notifications. As soon it is waked up, then it shows (I mean notifications are not lost, but just not displayed during sleep).
If I put the device in sleep again it can receive notifications, but after a couple of minutes it stops.
I did another test:
Send a notification to the device (in sleep) and nothing happens.
Send another notification. Nothing happen.
Send a gmail to the device. It wakes up, show the two notification and gmail notification also.
Just for these tests, I'm using the B4J tool to send notification ( a bit adapted to my needings but the core should be the same)
Any ideas ?
After a couple of minutes the device is in sleep, it does not receive Firebase notifications. As soon it is waked up, then it shows (I mean notifications are not lost, but just not displayed during sleep).
If I put the device in sleep again it can receive notifications, but after a couple of minutes it stops.
I did another test:
Send a notification to the device (in sleep) and nothing happens.
Send another notification. Nothing happen.
Send a gmail to the device. It wakes up, show the two notification and gmail notification also.
Just for these tests, I'm using the B4J tool to send notification ( a bit adapted to my needings but the core should be the same)
Any ideas ?