nightscout / nightguard

iOS and WatchOS Client for the Nightscout CGM System
GNU Affero General Public License v3.0
243 stars 158 forks source link

NIghtguard defaults to 'snoozed for 1min' and so no alarms? #275

Closed bmcnightscout closed 10 months ago

bmcnightscout commented 10 months ago

Hi there. New user so may be my mistake. I have the alarms configured, alert notifications set on and background app refresh also on for Nightguard

The problem is that 'Snoozed for 1min' seems to be default on when I am not using the App, so when a low/high event happens I don't get alarms unless I am in the app. I can turn the snooze off, but as soon as I exit the app and go back in, it resets to 'Snoozed for 1min'.

Am I doing something wrong is my expectation that I would get alarms when not actively in the app wrong (seem's kind of pointless...)

Using iPhone 14 Pro

bmcnightscout commented 10 months ago

See video

dhermanns commented 10 months ago

Hi! The 1min snooze ist just activated when you open the app. Otherwise you could get an immediate alert which could be disturbing.

Read about background updates in the issues here. If the app isn't in foreground this is limited basically to new values every 10-20 minutes. And therefore push notifications with alerts every 10-20 minutes, too.

So for the night, keep the app in foreground to get immediate alerts.

bmcnightscout commented 10 months ago

Thanks for the reply, so if I understand what you're saying:

Correct?

As an aside, we're coming from dexcom/dexcom follow to a new setup (new pump). What prevents something like Nightguard doing the immediate alerts when the app is in background, as Dexcom does? (not a criticism, the app is great, just curious :) )

dhermanns commented 10 months ago

I don't know what dexcom does. Would assume they are sending immediate push notifications. For this to be possible, your backend would need a Apple qualification for it, that you don't have.

So nightguard can only send local notifications, which are limited from apple to 75 a day.

bmcnightscout commented 10 months ago

Makes sense. Last question - would the push notifications be limited by having nightguard hitting the same nightscout app on 2 devices? My wife and I have it on both our phones, set up exactly the same and while she got a push notification for a high alert that occurred earlier today, I didn't?

dhermanns commented 10 months ago

On every device, you have your own limits. Apple times the pushes depending on your behavior and app usage.

What is very important is: Add the nightguard widget to your lock screen. That will improve your update behavior.

bmcnightscout commented 10 months ago

Thanks again, I have done that (very useful) and we left the nightguard in foreground mode and it worked perfectly last night. I am still a little confused by the push notification. See this example - BGL was in range at the time (see lock screen) and not sure what this push is trying to say . My wife - who is using night guard on her iOS device with apparently all the same settings - is not getting these. They've been appearing every 30 minute or so for me - they seem to be showing the variance between readings? We haven't had a low BGL event for 24 hours, and the last high was 12 hours.

20240108_022953000_iOS

dhermanns commented 10 months ago

Have a look at #274 and try the TestFlight version. Looks like a bug to me in the current release.

bmcnightscout commented 10 months ago

OK, I'll give TestFlight a go. For info, seems to be mostly coming up with 0.3, but have also seen 0.1, 0.2 and 0.4

bmcnightscout commented 10 months ago

Still getting the notifications on the testflight version, although its changed from mostly being 0.3 to now 0.4

dhermanns commented 10 months ago

Is it still the delta of the two latest bg values?

bmcnightscout commented 10 months ago

Actually, last few have been 0.3 again. I don't think it is the delta, the last couple of hours most changes have been 0, 0.1, 0.2 so that must have been a coincidence.

dhermanns commented 10 months ago

Interesting - maybe a wrong mmol to mgdl conversion then. Closing this in favor of #275.