Faifly / xDrip

Port from Nightscout xDrip+ to iOS
MIT License
27 stars 5 forks source link

Suggestion: lower sound frequency and/or employ BT-wakeup #349

Open LiroyvH opened 3 years ago

LiroyvH commented 3 years ago

It looks like you're employing the "play sound to keep-alive" method. However, this triggers so often that it leads to generic sound issues such as alternating keyboard noises and slightly raises the battery usage. Lowering the frequency to once per ~5 seconds should typically be ample to keep the app from suspending.

Would advise only playing sound in follower mode, but in Master mode employ Apple's method to wake an app up from sleep upon getting a Bluetooth signal from the peripheral.