Android Question Notification at Phone without using Google

MarkusR

Well-Known Member
Licensed User
hello,
i wonder why my phone get Notifications if it is off.
in my imagination there must be a service at phone
that is connected permanent to web or it poll for messages in a intervall.
did someone know that?

i will have the same achievement with a service in b4a.
can i get this with the starter service or do i need a extra service?
i believe at soon as i change the wakelook state i waste battery power, i will avoid.

my total system using a raspberry-pi which have a node-red server (since this week) and a mqtt broker.
from mobil i am able to display a status web page with ui provided by node-red server.


i am also able to connect via my b4a app to mqtt and get messages raised by my raspberry pi.
but if me switch my phone off the connection is closed, i did NOT get messages in real time 24/7.
if my service is running it filter messages and can create a local Notification, that part work well.

https://nodered.org/
https://mqtt.org/
 
Last edited:

Erel

Administrator
Staff member
Licensed User
The OS keeps maintains a connection with Google FCM server.

an i get this with the starter service or do i need a extra service?
You need a foreground service with partial lock. It should be a different service.
 
Top