The green risk indicator box in the app reads "-5 von 14 Tagen aktiv" (-5 of 14 days active).
The number of days that the app has been active cannot be below zero.
Internal Tracking ID: EXPOSUREAPP-1844
[Update:]
When checking existing issues, i was searching for other entries that mentioned negative numbers.
Now I just found this entry in the FAQ: https://www.coronawarn.app/en/faq/#days_active_Android
If someone can confirm that this is the same problem, the issue can be closed i guess.
The issue #796 linked in the FAQ deals with a rounding effect which causes the days counter to increase unexpectedly slow.
According to my understanding of the algorithm, I think this rounding effect cannot cause the number to become negative, so I recommend not to close this issue yet and give the maintainers a chance to assess it.
Thanks for reporting the issue. The value turning negative really seems to be a different bug than just a rounding error and should not really happen. The team will have a look.
@1ukast thank you for your input!
I tried to reproduce this issue, but could not see negative value.
Please, kindly share some more details:
1) Did you switch off "Risiko-Ermittlung", bluetooth and GPS after on-boarding process? Or before application main screen was shown?
3) Did you kill the application after first start? Or may be you just have used "Close all apps" button.
2) Did you turn on all the above before application start on 5th of July?
Thank you!
Best regards,
Alex
Unfortunately, I do not remember every detail.
But yes, I think I started the app at least once when bluetooth and GPS was disabled.
I often close all apps with the "Alle schlie脽en" button. But I have not killed the application with the "Stopp erzwingen" button in the system settings or something similar.
If i remember correctly, I was not connected to any network when I opened the app yesterday (July 5th) after this long period without using the app. Since the application was complaining about a missing network connection, I was enabling mobile data then.
Is there any way that I can help you by reading out some data from my application?
Should I try if the bug persists after a reboot of the system or do I risk loosing information that could be relevant to identify/fix the bug?
Best regards.
Hi @1ukast
A reboot of you phone will not cause a loss of data in the app, so you can try that one. The only thing that you only should do as a last solution is reinstalling the app, since this will delete the tracing data if that is the only tracing app installed on your device (e.g. if you have installed SwissCovid or Immuni).
Have you manually changed the device date & time at some point in time?
Thanks,
Philipp
Edit: just read your additional info that you never changed your time settings. We will look into the issue but for the time being we cannot identify any steps to reproduce your issue/how this can happen with the current calculation logic.
Can you also please give an update what your current number of days is?
Hi,
my current number of days is still -5 of 14.
I rebooted the device today and it didn't change anything.
As written above, I have not changed any date&time settings before the error occured.
However, just now I was trying to play with setting different dates to see the result:
Setting it to days in the past:
Until this point, the numbers above were reproducable when changing the date back and forth. Then I tried days in the future:
From now on, I can't get any negative numbers anymore by changing the date.
[Edit:] Obviously my current number is not -5 anymore as written in the first line. But it was -5 before playing with the date settings. Now it is 14/14.
Hi,
I encountered the same problem when switching to and back from the SwissCovid app.
Currently the counter shows -35 out of the last 14 days.
This roughly fits with decrementing one for every day that the app was inactive (due to usage of the SwissCovid app).
Before the switch, the app was active for longer than 14 days and the counter was behaving normally.
Updating the app, restarting or switching back and forth between SwissCovid and Corona Warn does not change anything about the counter (It might increment by 1/day again if i switch back to Corona Warn).
Currently I expect it to keep decrementing with every day I keep using the SwissCovid app -> I will give an update on this.
Mobile device: Samsung SM-G986B/DS
Android version: 10
App Version 1.2.1
Best Regards.

Same problem here. My usage so far:
-1 10 days laterHi all,
thanks for your details and your updates. With your input we managed to identified the issue and will fix it in an upcoming version.
Technical background: We are storing the time intervals (point in time when you deactivated it _from_ and point in time when you activated it _to_) of the time when tracing is deactivated to calculate the tracing time. More details about the calculation can be found here: https://github.com/corona-warn-app/cwa-app-android/issues/796#issuecomment-652381709
We only delete an interval when the point in time of to is no longer in the past 14 days. This leads to an issue with periods where the app is deactivated for a long amount of time and the from timestamp is no longer in the last 14 days but the to timestamp is still in that last 14 days time period. In that case we take the complete duration of the deactivated time instead of the corrected duration (from should be max the point in time --> today - 14 days).
This leads to the issue that when tracing is deactivated for example for 20 days, we calculate the active tracing times like this: 14 possible days - 20 inactive days = - 6.
Most helpful comment
Hi all,
thanks for your details and your updates. With your input we managed to identified the issue and will fix it in an upcoming version.
Technical background: We are storing the time intervals (point in time when you deactivated it _from_ and point in time when you activated it _to_) of the time when tracing is deactivated to calculate the tracing time. More details about the calculation can be found here: https://github.com/corona-warn-app/cwa-app-android/issues/796#issuecomment-652381709
We only delete an interval when the point in time of to is no longer in the past 14 days. This leads to an issue with periods where the app is deactivated for a long amount of time and the from timestamp is no longer in the last 14 days but the to timestamp is still in that last 14 days time period. In that case we take the complete duration of the deactivated time instead of the corrected duration (from should be max the point in time --> today - 14 days).
This leads to the issue that when tracing is deactivated for example for 20 days, we calculate the active tracing times like this: 14 possible days - 20 inactive days = - 6.