JohanDegraeve / xdripswift

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

xdripswift no longer runs in background #390

Open RempageR1 opened 2 years ago

RempageR1 commented 2 years ago

Hi,

Lately (perhaps IOS16), Xdrip doesn't run in the background anymore. An example is below, where the app stops processing at 04:17 and only wakes up when I swipe up, and select the running Xdrip in the list of open applications:

2022-10-05 04:17:25.9610 4.10.5 4180 NightScoutUploadManager there are 0 treatments to be updated 2022-10-05 04:17:25.9610 4.10.5 4180 NightScoutUploadManager calling getLatestTreatmentsNSResponses 2022-10-05 04:17:25.9610 4.10.5 4180 NightScoutUploadManager in getLatestTreatmentsNSResponses 2022-10-05 04:17:25.9620 4.10.5 4180 NightScoutUploadManager calling dataTask.resume 2022-10-05 04:17:26.4180 4.10.5 4180 NightScoutUploadManager 39 treatments downloaded 2022-10-05 04:17:26.4340 4.10.5 4180 NightScoutUploadManager 0 new treatmentEntries created 2022-10-05 04:17:26.4340 4.10.5 4180 NightScoutUploadManager 0 treatmentEntries found in response which were not yet marked as uploaded 2022-10-05 04:17:26.4350 4.10.5 4180 NightScoutUploadManager 0 treatmentEntries found that were updated at NS and updated locally 2022-10-05 04:17:26.4350 4.10.5 4180 NightScoutUploadManager result = success - 0 treatment entries locally stored or updated 2022-10-05 04:17:26.4360 4.10.5 4180 NightScoutUploadManager there are 0 treatments to be deleted 2022-10-05 04:17:27.3610 4.10.5 4180 GlucoseChartManager in cleanUpMemory 2022-10-05 04:17:27.3610 4.10.5 4180 NightScoutFollowManager in eventhandler checking if audioplayer exists 2022-10-05 04:17:27.3640 4.10.5 4180 RootView screen lock / keep-awake disabled 2022-10-05 04:17:27.3650 4.10.5 4180 RootView Application did enter background 2022-10-05 18:25:27.5670 4.10.5 4180 NightScoutFollowManager in download 2022-10-05 18:25:27.5730 4.10.5 4180 NightScoutFollowManager setting nightScoutSyncTreatmentsRequired to true, this will also initiate a treatments sync 2022-10-05 18:25:27.5760 4.10.5 4180 NightScoutFollowManager in eventhandler checking if audioplayer exists 2022-10-05 18:25:27.5980 4.10.5 4180 NightScoutUploadManager in syncTreatmentsWithNightScout 2022-10-05 18:25:27.5980 4.10.5 4180 NightScoutUploadManager calling uploadTreatmentsToNightScout 2022-10-05 18:25:27.5990 4.10.5 4180 NightScoutUploadManager in uploadTreatmentsToNightScout 2022-10-05 18:25:27.5990 4.10.5 4180 NightScoutUploadManager no treatments to upload 2022-10-05 18:25:27.6000 4.10.5 4180 NightScoutUploadManager result = success - 0 treatment entries locally stored or updated 2022-10-05 18:25:27.6340 4.10.5 4180 NightScoutFollowManager in download, calling task.resume 2022-10-05 18:25:27.6380 4.10.5 4180 NightScoutUploadManager in syncTreatmentsWithNightScout but previous sync still running. Sync will be started after finishing the previous sync 2022-10-05 18:25:27.6420 4.10.5 4180 NightScoutUploadManager in syncTreatmentsWithNightScout but previous sync still running. Sync will be started after finishing the previous sync 2022-10-05 18:25:27.6420 4.10.5 4180 RootView Application will enter foreground 2022-10-05 18:25:27.6500 4.10.5 4180 NightScoutUploadManager there are 0 treatments to be updated 2022-10-05 18:25:27.6510 4.10.5 4180 NightScoutUploadManager calling getLatestTreatmentsNSResponses

This is on an iPhone 11 running IOS 16.0, used as a NightScout follower.

If you need any additional information please let me know.

Thanks!