Skip to content

Commit 9ebb1af

Browse files
authored
Merge pull request #851 from gestrich/remote-notification-errors
Improve remote troubleshooting notes
2 parents e9966d4 + 30bab2e commit 9ebb1af

File tree

1 file changed

+56
-63
lines changed

1 file changed

+56
-63
lines changed

docs/nightscout/remote-errors.md

Lines changed: 56 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* This is a&nbsp;_<span translate="no">Loop</span>_&nbsp;and/or *Nightscout* issue, not related to remote configuration
44
* Review the [LoopDocs: *Nightscout* with&nbsp;_<span translate="no">Loop</span>_](update-user.md) page
55
* Check out links on the [LoopDocs: *Nightscout* Troubleshooting](troubleshoot.md) page
6-
* Make sure Looper's phone is connected to the internet so it can upload to *Nightscout*
6+
* Make sure the Looper's phone is connected to the internet so it can upload to *Nightscout*
77

88
## Remote Commands Stopped Working
99

@@ -18,9 +18,9 @@ If you are using LoopCaregiver, try the remote command directly from Nightscout
1818

1919
### *Nightscout* Config and *Loop* Build Method
2020

21-
Ensure your *Nightscout* version is at least version 14.2.6.
21+
Ensure your *Nightscout* version is at least 14.2.6.
2222

23-
Verify that you performed all the [Remote Configuration](remote-config.md) steps for the *Nightscout* site including sending an override from the&nbsp;_<span translate="no">Loop</span>_&nbsp;phone to *Nightscout*.
23+
Verify that you performed all the [Remote Configuration](remote-config.md) steps for the *Nightscout* site, including sending an override from the&nbsp;_<span translate="no">Loop</span>_&nbsp;phone to *Nightscout*.
2424

2525
#### BadDeviceToken
2626

@@ -35,7 +35,7 @@ If you attempt to issue a command from *Nightscout* Careportal; after you hit su
3535
Error: APNs delivery failed: BadDeviceToken
3636
```
3737

38-
If you attempt to issue a command using *Loop Caregiver* ; after you authenticate the command, you will see the error message listed below and shown in the screenshot.
38+
If you attempt to issue a command using *Loop Caregiver*; after you authenticate the command, you will see the error message listed below and shown in the screenshot.
3939

4040
```
4141
HTTP Error
@@ -54,19 +54,19 @@ If you added this Build-Time Flag: `REMOTE_OVERRIDES_DISABLED`
5454

5555
You will not see any errors, but nothing will happen when you issue any kind of remote command.
5656

57-
**Solution**: Remove `REMOTE_OVERRIDES_DISABLED` from `LoopConfigOverride.xcconfig` file and rebuild the&nbsp;_<span translate="no">Loop</span>_&nbsp;app.
57+
**Solution**: Remove `REMOTE_OVERRIDES_DISABLED` from `LoopConfigOverride.xcconfig` file and rebuild the&nbsp;_<span translate="no">Loop</span>_&nbsp;app.
5858

5959
### Incorrect Password (OTP) Error
6060

61-
The references to Caregiver below is the person sending the commands. There are specific *Loop Caregiver* app insructions that you modify for your authenticator. You must have the&nbsp;_<span translate="no">Loop</span>_&nbsp;phone with you to troubleshoot this problem.
61+
The references to ‘caregiver’ below refer to the person sending the commands. You must have the&nbsp;_<span translate="no">Loop</span>_&nbsp;phone with you to troubleshoot this problem.
6262

63-
* The Apple clock should be set to automatic on both the Looper's phone and Caregiver’s device.
63+
* The Apple clock should be set to automatic on both the Looper's phone and the caregiver’s device.
6464
* If the clock is incorrect, even slightly, remote commands will fail.
65-
* Check if One-Time Passwords (OTP) align between Caregiver and&nbsp;_<span translate="no">Loop</span>_.
65+
* Check if One-Time Passwords (OTP) align between *Loop Caregiver* and&nbsp;_<span translate="no">Loop</span>_.
6666
* In&nbsp;_<span translate="no">Loop</span>_: Settings -> Services -> *Nightscout*
67-
* In *Loop Caregiver* : Settings -> Tap on Loopers Name
67+
* In *Loop Caregiver* : Settings -> Tap on Looper's Name
6868
* Observe the 6-digit OTP as they change
69-
* If the OTP don't match, you can reset it:
69+
* If the OTPs don't match, you can reset it:
7070
* **Warning**: If there are multiple devices (or people) sending remote commands, this procedure **resets the OTP for all**
7171
* _<span translate="no">Loop</span>_: Settings -> Services -> *Nightscout* -> One-Time Password -> Tap Reload button
7272
* The QR code is different as soon as you hit `Reload`
@@ -77,71 +77,64 @@ The references to Caregiver below is the person sending the commands. There are
7777

7878
## Undelivered or Expired Commands
7979

80-
Apple Push Notifications will often not make it to an app, either due to your settings or intentional limitations by Apple. This error can appear in various forms:
81-
82-
* Push notification banner never shows on Looper’s device.
83-
* Push notification banner shows but nothing happens in&nbsp;_<span translate="no">Loop</span>_ (no error or success message afterwards)
84-
* Error message shows that Password (OTP) is expired
85-
86-
While&nbsp;_<span translate="no">Loop</span>_&nbsp;does not have control over Push Notification timely delivery, there are things that can be done to mitigate these issues. Note that rebuilding&nbsp;_<span translate="no">Loop</span>_, *Loop Caregiver* or *Nightscout* is generally not going to help.
87-
88-
Check these settings on the Looper’s device, not the Caregivers. Several of these are related to Apple suppressing notifications.
89-
90-
* Notifications
91-
* Settings -> Notifications ->&nbsp;_<span translate="no">Loop</span>_
92-
* Turn on “Allow Notifications”
93-
* Turn on “Time Sensitive Notifications”
94-
* Focus Modes
95-
* For all focus modes (ex: Do Not Disturb, Sleep), make sure&nbsp;_<span translate="no">Loop</span>_&nbsp;is listed as an app allowing Notifications.
96-
* To Adjust
97-
* Settings -> Focus
98-
* Select the focus mode (ex: Do Not Disturb, Sleep)
99-
* Under “Allow Notifications, tap “Apps”
100-
* Add “&nbsp;_<span translate="no">Loop</span>_&nbsp;” to the list.
101-
* Turn on “Time Sensitive Notifications”.
102-
* Background App Refresh
103-
* Settings -> General -> Background App Refresh
104-
* Select “On” up top
105-
* Activate&nbsp;_<span translate="no">Loop</span>_&nbsp;toggle in list
106-
* Lower Power Mode
107-
* Turn off if able
108-
109-
Some other things to try on the Looper’s phone:
110-
111-
* Reboot phone
112-
* This sometimes resets Apple’s push notification limit.
113-
* Try wifi instead of cellular, if able
114-
* Apple may not deliver notifications on cellular as often as wifi.
115-
* Charge the phone
116-
* If the battery is low, iOS may not deliver notifications to save battery life.
117-
* Limit the number of&nbsp;_<span translate="no">Loop</span>_&nbsp;commands you send in a short period. Apple may throttle notifications if too many are received. (i.e. no more than 1 or 2 per hour may help).
118-
* Consider disabling “spammy” notifications from other apps. This is only a theory, but it is possible that other apps can cause the system to throttle all notifications, including&nbsp;_<span translate="no">Loop</span>_.
119-
* Wait 24 hours or so as it often just takes time for the push notification limits to “reset”.
120-
* iOS 15.3.x: Note there are reports of Remote notifications not being received to the Loopers device for iOS version 15.3 and 15.3.1. This is fixed in iOS version 15.4.
80+
Apple push notifications may not always reach your app due to various settings or Apple's intentional limitations. This issue can manifest in several ways:
81+
82+
* The push notification banner never appears on the Looper’s device.
83+
* The push notification banner appears, but nothing happens in&nbsp;_<span translate="no">Loop</span>_&nbsp;(no error or success message afterward).
84+
* An error message in *Nightscout* or *Loop Caregiver* indicates the Password (OTP) is expired.
85+
86+
While&nbsp;_<span translate="no">Loop</span>_&nbsp;cannot control the timely delivery of push notifications, there are several steps you can take to mitigate these issues. Note that rebuilding&nbsp;_<span translate="no">Loop</span>_&nbsp;or *Loop Caregiver* generally will not resolve the problem.
87+
88+
Check these items on the Looper’s phone, not the caregiver's.
89+
90+
1. Reboot the phone.
91+
1. Wait 24 hours as it often takes time for the push notification limits to reset.
92+
1. Limit the number of&nbsp;_<span translate="no">Loop</span>_&nbsp;commands you send in a short period.
93+
* Apple may throttle notifications if too many are received.
94+
* Sending no more than 1 or 2 per hour may help.
95+
1. Disable notifications from other apps.
96+
* It is possible that other apps can cause the system to throttle all notifications, including&nbsp;_<span translate="no">Loop</span>_.
97+
1. Enable Time Sensitive Notifications:
98+
* Apple Settings -> Notifications ->&nbsp;_<span translate="no">Loop</span>_.
99+
* Turn on “Allow Notifications”.
100+
* Turn on “Time Sensitive Notifications”.
101+
1. Upgrade *Nightscout*:
102+
* *Nightscout* version 15.0 (released late 2023) and greater supports time sensitive notifications.
103+
* This can help iOS to deliver remote notifications faster.
104+
1. Adjust Focus Modes:
105+
* For all focus modes, make sure&nbsp;_<span translate="no">Loop</span>_&nbsp;is listed as an app allowing Notifications.
106+
* Apple Settings -> Focus
107+
* Select the focus mode (e.g., Do Not Disturb, Sleep).
108+
* Under “Allow Notifications,” tap “Choose Apps”.
109+
* Add&nbsp;_<span translate="no">Loop</span>_&nbsp;to the list.
110+
1. Turn on Background App Refresh:
111+
* Apple Settings -> General -> Background App Refresh
112+
* Select “On” at the top.
113+
* Activate the&nbsp;_<span translate="no">Loop</span>_&nbsp;toggle in the list.
114+
1. Try using Wi-Fi instead of cellular if possible:
115+
* Apple may not deliver notifications on cellular as often as on Wi-Fi.
116+
1. Charge the phone:
117+
* If the battery is low, iOS may not deliver notifications to save battery life (e.g., while on Low Power mode).
121118

122119
## How to Ask for Help
123120

124121
This is helpful information to share when requested by helpers. If you are not using *Loop Caregiver*, review the response seen on the *Nightscout* site.
125122

126-
1. Activate an override _from within&nbsp;_<span translate="no">Loop</span>_ _. Does *Nightscout* show the active override?
127-
1. Activate an override _from *Nightscout* _. Does it change the active override in&nbsp;_<span translate="no">Loop</span>_?
123+
1. Activate an override from within&nbsp;_<span translate="no">Loop</span>_. Does *Nightscout* show the active override?
124+
1. Activate an override from *Nightscout*. Does it change the active override in&nbsp;_<span translate="no">Loop</span>_?
128125
1. Do errors show in *Loop Caregiver* or *Nightscout* Careportal when you send a remote command?
129-
* Share screenshots of error if any
130-
1. Do errors show in iOS Notifications on the Looper’s device?
131-
* Check their Notification history in iOS by swiping down
132-
* Share screenshots of errors if any
126+
* In both *Nightscout* and *Caregiver*, you can tap on an error to read specific error details.
127+
* Share screenshots of errors
133128
1. What&nbsp;_<span translate="no">Loop</span>_&nbsp;version are you using? Released (main) or development (dev)? Approximately when did you update last?
134-
* The minimum version that support remote bolus and carbs is&nbsp;_<span translate="no">Loop</span>_&nbsp;3
129+
* The minimum version that supports remote bolus and carbs is&nbsp;_<span translate="no">Loop</span>_.
135130
1. What iOS version is being used on the Looper’s device?
136-
* Note that iOS 15.3.x had notification issues
137-
* Update to a newer version
138131
1. How did you build&nbsp;_<span translate="no">Loop</span>_?
139-
* Build with Xcode to device (typical)?
140-
* Using AppCenter or Diawai? A special environment variable must be set LOOP_PUSH_SERVER_ENVIRONMENT=production
132+
* Web browser using GitHub Actions?
133+
* Xcode?
134+
* AppCenter or Diawi? A special environment variable must be set: `LOOP_PUSH_SERVER_ENVIRONMENT=production`
141135

142136
Mention which troubleshooting steps you have completed so we know whether to ask about these again.
143137

144-
145138
## Other Errors
146139

147140
Once you've set up remote commands, you may encounter errors when trying to run them via *Nightscout* or iOS Shortcuts. Below are the most common and typical solutions.

0 commit comments

Comments
 (0)