Hi, im trying to send a notificaition when my device is connected or disconnected to the server, it works fine with the connected notificaition, but something happens when its disconnected, the code works “correctly” but for some reason, i dont get the notificaition on my cellphone (only for the disconnected notificaition).
Here is that part of the code:
I got the Serial.print for both: Device connected and Device disconnected, but i only got notificaition for device connected.
Any idea of why this is happening?
there is a new app update, which contains a different logic implemented regarding notifications, also some bug fixes. please try it and see if it helps.
also, did you enabled notifications when hw goes offline, in notification widget?
the offline notification works from the app notification widget. practically, the server waits 15 seconds to see if the tcp connection is alive or not between the hw and server. you will receive the hw offline notification on the phone with a 15 second delay. but you have to enable here: