* lower the number of readings to send to live activity to stay under 4kB
* change some widget attributes to be computed on demand
* change private widget attributes naming convention to match others
Live Activities have maximum payload size of 4kB.
At least Libre 2 EU produces so many values that they cannot be pushed to Live Activity unfiltered,
causing Live Activity start to fail with error: Payload maximum size exceeded.
Fix by downsampling (just pick every nth reading) to maximum of 100 readings.
The threshold value is got by trial and error, then tuning it down a bit to leave some room for different length strings.
- instructions will be specific to the heartbeat type being added
- change alert title for heartbeat to "Device Name" instead of "Transmitter ID" to avoid confusion
Live Activities have maximum payload size of 4kB.
At least Libre 2 EU produces so many values that they cannot be pushed to Live Activity unfiltered,
causing Live Activity start to fail with error: Payload maximum size exceeded.
Fix by downsampling (just pick every nth reading) to maximum of 100 readings.
The threshold value is got by trial and error, then tuning it down a bit to leave some room for different length strings.
* Add new xDrip Widget Extension bundle ID
* Change bundle ID and target for Watch Complication Extension
* Change bundle ID and target for Watch App
* Change bundle ID and target for Widget Extension
* Resolve packages
* Update Testflight.md
Not tested by me!
Co-Authored-By: bjornoleh <63544115+bjornoleh@users.noreply.github.com>
Co-Authored-By: Liroy van Hoewijk <4643445+liroyvh@users.noreply.github.com>
Expired Dexcom G7 transmitters usually stay 'paired' for a while, because the user doesn't delete them in the iOS bluetooth settings.
This changes makes sure that xDrip4iOS will not connected to those devices. It sets a timer waiting for an authentication response, if that's not received then it disconnects, forgets the devices and scans for a new one
- it *should* be disabled for KeepAliveType == .disabled as it will not actually run when the app is sleeping in the background until the app is re-opened
was previously activated in the iOS app via dev settings and passed to the watch state, but now just handled by the Watch app. Can be activated/deactivated by tapping 5 times the glucose chart.
using WKInterfaceDevice.current().screenBounds.size the chart size is modified together with text sizes in all views in order to make sure the view renders nicely in small watches
using WKInterfaceDevice.current().screenBounds.size the chart size is modified together with text sizes in all views in order to make sure the view renders nicely in small watches