JohanDegraeve / xdripswift

xdrip for iOS, written in Swift
GNU General Public License v3.0
327 stars 320 forks source link

4.11.0 no longer keeps the screen active when scanning a new sensor #418

Open chrisieboi opened 1 year ago

chrisieboi commented 1 year ago

Hi,

Since upgrading to 4.11.0 the scanning of new Libre2 sensors works better and worse at the same time.

Description The scanning works better (retries when the NFC scan does not work properly) but after scanning the sensor initially, the iPhone will attempt to lock it's screen (After the prompt asking you to not lock the phone during the scanning process).

Issue I believe this used to be an automated process in which the screen would not lock during the scanning process, but now that seems to have stopped working. I also believe that having the iPhone lock during this process breaks the pairing process. After unlocking the phone the sensor will not finish pairing.

Workaround Constantly monitoring the phone and keeping it alive with screen presses until it is paired seems to be the workaround.

Bartlomiejsz commented 1 year ago

Hello @chrisieboi, how long did it take for you to get finally connected? I was trying for ~hour and it is still stuck on Scanning stage

chrisieboi commented 1 year ago

@Bartlomiejsz It used to be a couple seconds, but since this update it seems to be 10 minutes-ish. Do note that you must absolutely keep the screen unlocked by tapping it before it locks, or else it will stop scanning no matter how long you leave it after unlocking.

Bartlomiejsz commented 1 year ago

@chrisieboi thank you for the answer, I tried turn off the auto screen lock and then waited for much longer but didn't work 😒 I found there is one additional issue, once I use the Scan button it is not possible to use Stop scanning - this button seems to not be clickable. I was wondering if its only my issue or is the screen freezing in this case for some reason

Best regards