Skip to main content

Send a webhook when phone goes offline and when comes back online (after it being offline)

Copy from email:

“I think if you are listening and checking for heartbeat (which you probably do in order to send the offline email), then you can set status of the phone in the DB to 0 when phone goes offline “WENT_OFFLINE”.

Then when next heartbeat happens you can check if the phone previous status was 0 and if it is, trigger the “BACK_ONLINE” event and set the status to 1 in order for the next heartbeat to not trigger this event.

To be honest, WENT_OFFLINE event would be really enough for me in this moment, but it will be really useful to know when the phone comes back online again as well :)”

Looking forward to this. Thank you for your consideration. Cheers

Status: Completed2 comments

Log in to comment and vote

Comments2

  • Acho Arnold

    Team•

    Feb 25, 2024

    Done

    • Chris Petrevsky

      •

      Feb 26, 2024

      Thanks a bunch for this feature. This is great!