Skip to content

Receiving InfectionStatus .exposed after calling resetInfectionStatus #253

@alopezh

Description

@alopezh

Once a device has received the InfectionStatus .exposed we are trying to bring it back to .healthy status by calling the sdk function DP3TTracing.resetInfectionStatus()

Initially the device goes back to .healthy but after the app is closed and the sdk is initiallized again. func DP3TTracingStateChanged(_ state: TracingState) get the InfectionStatus .exposed with the same date as before.

This is a sumamry of the related logs:

2021-05-13T08:27:41+0200 debug ExpositionUseCase : New Tracing State --->
2021-05-13T08:27:41+0200 debug ExpositionUseCase : Status: exposed(days: [DP3TSDK.ExposureDay(identifier: BCEF6CC3-025B-4657-AFCB-8AAC9A1F9E49, exposedDate: 2021-05-12 00:00:00 +0000, reportDate: 2021-05-13 02:19:44 +0000, isDeleted: false)])
2021-05-13T08:27:41+0200 debug ExpositionUseCase : lastSync: Optional(2021-05-13 06:27:41 +0000)
2021-05-13T08:27:41+0200 debug ExpositionUseCase : tracingState active
2021-05-13T08:27:41+0200 debug ExpositionUseCase : <---
...
2021-05-13T08:27:41+0200 debug ExpositionCheckUseCase : Exposition outdated -->  resetInfectionStatus called
...
2021-05-13T08:27:41+0200 debug ExpositionUseCase : New Tracing State --->
2021-05-13T08:27:41+0200 debug ExpositionUseCase : Status: healthy
2021-05-13T08:27:41+0200 debug ExpositionUseCase : lastSync: Optional(2021-05-13 06:27:41 +0000)
2021-05-13T08:27:41+0200 debug ExpositionUseCase : tracingState active
2021-05-13T08:27:41+0200 debug ExpositionUseCase : <---
...
2021-05-13T09:25:17+0200 debug SetupUseCase : [DP3TSDK] retreiving status from SDK
2021-05-13T09:25:17+0200 debug SetupUseCase : [exposureNotificationTracer] calling ENMananger.setExposureNotificationEnabled true
2021-05-13T09:25:19+0200 debug SetupUseCase : didScheduleBackgrounTask
2021-05-13T09:25:21+0200 debug SetupUseCase : [exposureNotificationTracer] calling ENMananger.activate
...
2021-05-13T09:25:21+0200 debug ExpositionUseCase : New Tracing State --->
2021-05-13T09:25:21+0200 debug ExpositionUseCase : Status: exposed(days: [DP3TSDK.ExposureDay(identifier: BCEF6CC3-025B-4657-AFCB-8AAC9A1F9E49, exposedDate: 2021-05-12 00:00:00 +0000, reportDate: 2021-05-13 02:19:44 +0000, isDeleted: false)])
2021-05-13T09:25:21+0200 debug ExpositionUseCase : lastSync: Optional(2021-05-13 06:27:41 +0000)
2021-05-13T09:25:21+0200 debug ExpositionUseCase : tracingState active
2021-05-13T09:25:21+0200 debug ExpositionUseCase : <---

Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions