Cwa-app-ios: History got lost after 14 days

Created on 30 Jun 2020  Â·  30Comments  Â·  Source: corona-warn-app/cwa-app-ios

Hello, this morning I reached the level of 14 days using the corona warn app on iPhone.
I was surprised that I saw the risk state "Unbekanntes Risiko". The app indicates, that I am not using the app long enough to receive a risk state.

Yesterday evening I shortly deactivated the "Risiko-Ermittlung". Maybe this has an impact.

Regards
Karsten Schiller

bug community in progress

Most helpful comment

Bug fixed - tests written - PR opened (#807 – still in draft to iron out the rough edges).

All 30 comments

Hi @karstenschiller ,
Thanks for reporting this bug. Could you please tell us more detail, for example:

  1. How long did you disable the "Risiko-Ermittlung"?
  2. Do you disable it in the app or in the system setting?
    Thanks.

Hi, to switch of "Risiko-Ermittlung" I used the switch within the app. I went back to the main screen. There I saw the status, that "Risiko-Ermittlung" was inactive. After that I activated it again within the app. So the deactivation phase was <=1 min.

Some hours later I still saw on the main screen that the app was collecting data 13/14 days but the last update/sync ("Aktualisiert") was before the point in time, when I deactivated "Risiko-Ermittlung"

Most likely the loss of historical data appeared after the 14 day level was reached.

Hi, to switch of "Risiko-Ermittlung" I used the switch within the app. I went back to the main screen. There I saw the status, that "Risiko-Ermittlung" was inactive. After that I activated it again within the app. So the deactivation phase was <=1 min.

Some hours later I still saw on the main screen that the app was collecting data 13/14 days but the last update/sync ("Aktualisiert") was before the point in time, when I deactivated "Risiko-Ermittlung"

Most likely the loss of historical data appeared after the 14 day level was reached.

Hi @karstenschiller ,
Thanks very much. cc @inf2381

Hi, same problem here and I have not deactivated anything yesterday. Counter just went down to 0.

CB59BFF0-DD45-494D-918D-FF5B224D388F

Bug fixed - tests written - PR opened (#807 – still in draft to iron out the rough edges).

Same here. Counter is back to 0 days, I had not deactivated tracking. Question: what is the impact? Will checks still work? Does this have an impact on the reliability of the app?

Similar problem here. Today my counter went from 14/14 days down to 9/14 days. Tracking switch was on the whole time. I just opened the app again after a few hours.

The same problem also happens on android devices.

The same problem also happens on android devices.

Hi @KarstenSchiller ,
Thanks again for your test on Android. Could you please share more information for our Android devs?
cc @jakobmoellersap @harambasicluka

It is not a 100% problem:
On the smartphone of my wife we see the grey risk status on the main screen only for around 1s after starting the app. After that, I see 14/14 days in green.

On a Samsung tablet I see in grey "Unbekanntes Risiko" (not sure since when). The app was installed on June 16th. I did not open the app between ~June 20th and today.
On this device I meanwhile received an error message (Ursache: 2) which indicates a lack of memory. The details show an exception "NotEnoughSpaceOnDive" and some more problems. I'll delete some apps and test again.

After deleting some other apps "corona warn" seems to work fine: "13 von 14 Tagen aktiv" / "Aktualisiert: Heute, 20.15".
I'll send an update tomorrow evening in case of a problem after 14 days.

Same here, history reset after 14 days, did not touch app or settings (iOS 13.5.1, iPhone XR)

6604FB08-D5CB-420F-96FF-DF6FE8315DC6

Mine went from 14/14 and “Niedriges Risiko” to 10/14 (“Niedriges Risiko), last updated 18:44 as expected.

My wife’s app went from 9/14 (“Niedriges Risiko) to 0/14 and had to tap through the introduction of the app again which is now showing “Risiko unbekannt”.

Neither of us changed any settings but I know she’s had airplane mode activated last night.

Observation: on my private iPhone, everything still works. Shows 14/14 days, check was done half an hour ago.

On my work iPhone I get the „not enough data“ error and 0/14 days since the check ran today.

Main difference: I open the app at least once daily on my private phone, but not every day on my work phone. Maybe that’s part of the reason why it fails. I guess the app does some „stuff“ when you open it and that should be done daily. If there’s too nicht time between the app being run, this happens. It’s just a guess, though.

I didn’t switch off anything. Yesterday it was 13/14 and today it dropped to 7/14 with no reason... or I just don’t understand the reason...

Didn’t switch off anything, too, and am down to 4 days, but installed on day one and had reached 14th day today. How can I help you with this issue?
8F8E06F4-1D28-4DC6-8C00-534E4D97F00C

Having the same issue. Never deactivated anything.
Did the app pruned the history or is it just a visual bug?

Observation: on my private iPhone, everything still works. Shows 14/14 days, check was done half an hour ago.

On my work iPhone I get the „not enough data“ error and 0/14 days since the check ran today.

Main difference: I open the app at least once daily on my private phone, but not every day on my work phone. Maybe that’s part of the reason why it fails. I guess the app does some „stuff“ when you open it and that should be done daily. If there’s too nicht time between the app being run, this happens. It’s just a guess, though.

At least for me, that‘s not the issue.
Installed day one and I opened the app at least once a day. Still now down to 7/14.

Same problem here (iPhone7/ Softwareversion 13.5.1)
After showing me „14 von 14 Tagen aktiv“ it‘s like that
8D9DC63A-A1C8-4BB4-9944-BF318A14D75F
But I can still find the „Kontaktprotokoll“ on my phone:
3EAF02C4-9705-40D4-ADA7-EAE05B66AB79
7EDF7B97-CF74-4FED-8829-B77EB7D08AA2

Dear app users,
The hot fix is available at App Store now. Please update your app.
Thank you very much for your support.

Downloaded the update just now, but nothing changed - it still says 7/14 days saved instead of 14. Does that mean my exposure checks from before 24 June have been permanently lost?

The update didn’t bring back my lost days, too.

Update installed. Still says 0/14 days. Will this fix itself when the app does its first check?image image

Yes, the update is not able to fix counters that jumped back to 7 days (or any other values), but will only prevent that from happening in the future. Your contact events are, however, NOT affected by that, since they are not stored by the app but the exposure notification framework.

Ok. So I just have to wait at least 24 hours from now? And hope it’ll do the check sometime? I cannot force it to manually update and I also cannot predict when it will do the check. So for the next 24 hours i will not now about possible risks, correct?

Events saved in the exposure notification framework would be visible in my device’s settings as “exposure checks”, right? Because those only go back to 24 June (7 days) for me, just like the counter in the app - even though I’ve had it installed for 15 days now, which is what sparked my concern about contact events being lost in the first place.

Because those only go back to 24 June (7 days) for me

That is correct. The first „infected“ keys were distributed to the app a week ago. So perfectly normal.

Because those only go back to 24 June (7 days) for me

That is correct. The first „infected“ keys were distributed to the app a week ago. So perfectly normal.

Makes sense, thanks!

Update from my side: my app is back to „normal“ though it „lost“ 14 days. But risk calculation seems to work again and I am relieved to see that.

Thank you to the team for fixing this nasty, but ultimately not severe bug in 24 hours! !image

Since the bug was fixed with a previous hotfix, we'll close the issue accordingly. If you experience it again with latest app and iOS version, please open a new, dedicated issue for that

Was this page helpful?
0 / 5 - 0 ratings