HI, All
I have made an app template that sends commands and replays via Firebase push messages.
I'm sending just "data", without "notification".
0) Starter service is Foreground service.
1) When screen is on - all works OK, commands are sent and received and replied OK.
2) Also i use PhoneWakeState.PartialLock
3) And on the test device the app is setup without power limitation, and Internet without linitation. It's Android 9 and WiFi connection.
4) And if to switch the screen off, after several mins - no reply from this second device if to send a command.
5) If to switch the screen on - the reply (to those command) is immediately received.
Who tried to develop the same apps - is it correct situation ? Is Firebase sleeping and push can be delivered only if user is active ?
Or must work always if PartialLock is applied?
I have made an app template that sends commands and replays via Firebase push messages.
I'm sending just "data", without "notification".
0) Starter service is Foreground service.
1) When screen is on - all works OK, commands are sent and received and replied OK.
2) Also i use PhoneWakeState.PartialLock
3) And on the test device the app is setup without power limitation, and Internet without linitation. It's Android 9 and WiFi connection.
4) And if to switch the screen off, after several mins - no reply from this second device if to send a command.
5) If to switch the screen on - the reply (to those command) is immediately received.
Who tried to develop the same apps - is it correct situation ? Is Firebase sleeping and push can be delivered only if user is active ?
Or must work always if PartialLock is applied?
Last edited: