I currently do a lot of my monitoring via MQTT for my solar system etc. I currently use MQTT Alert and set up my alerts to ring my phone at top volume until silenced. But I have missed more than one alert because I don’t think the background agent is always active and it doesn’t necessarily start when I reboot the phone. While the application does “monitor” the MQTT connection, it only makes a short sound if it drops, with no followup until you notice that there was a notification and go back into it to figure out why the connection is down.

Does anyone have foolproof way of getting things like security alerts that will always trigger on the phone, without having to check the phone 10 times a day to be sure the application is on and the connection is active?

  • sugar_in_your_tea@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    5
    ·
    3 days ago

    If you turn off the battery optimization setting, does it get better?

    I was missing a bunch of alerts for Signal because I downloaded it outside the GPlay store (which handles waking up processes better), and I got much more reliable notifications after disabling that setting. It uses a lot more battery though, but maybe that’s worth it for you.

      • sugar_in_your_tea@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        4
        ·
        3 days ago

        Mine is a Pixel running GrapheneOS, and it doesn’t seem to be on your list. My issue is that I’m not using Google Play Services, so I don’t get the benefits that it provides, one of which is managing notifications. So Signal has to manage notifications itself, which means it basically needs to always be running instead of the more typical Android model of being woken up when there’s a notification.

        Or maybe it’s what you linked. Either way, I’d check that and see if it’s an easy fix.

    • WhyJiffie@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 days ago

      I use molly’s unifiedpush edition, with ntfy, and that works for me. ntfy never crashed on me yet.

      also, it’s not signal that handles waking up, but firebase when you get it from the google store, none I think if you install the apk, and unifiedpush if you get molly unifiedpush edition

  • Matty_r@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 days ago

    I have some alerts like that using Pushover. You can set it to treat high priority alerts like an alarm which bypasses things like do not disturb and silence etc

    • ikidd@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      3 days ago

      I can get notification to ntfy, but I’m not sure if the app is certain to blow my phone up until I notice it, which is my goal. Frankly, if I could trigger the Presidential Alert, I would do that.

    • Deebster@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      3 days ago

      I went with ntfy as well - you can set the different levels to alert in different ways and my max priority is set to always ring even if the phone is on silent. Mostly I use max prio as a find-my-phone tool, but there are real alerts that would use it.

    • ikidd@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 days ago

      The application isn’t 100% likely to stay active in the background it seems. I tried to program one myself but there’s a lot of bullshit going on in background apps in Android that I’m not familiar enough with to trust that I can do any better.

      • Ulrich@feddit.org
        link
        fedilink
        English
        arrow-up
        2
        ·
        3 days ago

        Okay so you didn’t miss the notification, you didn’t receive it at all?

  • Lem453@lemmy.ca
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 days ago

    Gotify along with an external email service. I get each notification twice, immediately