corona-warn-app / cwa-app-android

Native Android app using the Apple/Google exposure notification API. The CWA development ends on May 31, 2023. You still can warn other users until April 30, 2023. More information:
https://coronawarn.app/en/faq/#ramp_down
Apache License 2.0
2.44k stars 495 forks source link

Exposure checks are not working properly - delays and missing checks #1241

Closed kbobrowski closed 3 years ago

kbobrowski commented 3 years ago

Exposure checks barely working properly for me, please check exposure log below.

System info:

Possible solution could be to allow user to export debug logs so we can see what is going on.

11 September 2020, 11:23 (keys: 2245, matches: 0) 11 September 2020, 11:23 (keys: 4835, matches: 0) 11 September 2020, 11:23 (keys: 3000, matches: 0) 11 September 2020, 11:23 (keys: 3339, matches: 0) 11 September 2020, 11:23 (keys: 5310, matches: 0) 11 September 2020, 11:23 (keys: 6285, matches: 0) 11 September 2020, 11:23 (keys: 6095, matches: 0) 11 September 2020, 11:23 (keys: 6685, matches: 0) 11 September 2020, 11:23 (keys: 4460, matches: 0) 11 September 2020, 11:23 (keys: 2158, matches: 0) 11 September 2020, 11:23 (keys: 4630, matches: 0) 11 September 2020, 11:23 (keys: 4932, matches: 0) 11 September 2020, 11:23 (keys: 6885, matches: 0) 11 September 2020, 11:23 (keys: 7395, matches: 0)

Gap between checks: 1 day 19 h 28 min

13 September 2020, 06:51 (keys: 2245, matches: 0) 13 September 2020, 06:51 (keys: 4835, matches: 0) 13 September 2020, 06:51 (keys: 3000, matches: 0) 13 September 2020, 06:51 (keys: 6285, matches: 0) 13 September 2020, 06:51 (keys: 6095, matches: 0) 13 September 2020, 06:51 (keys: 6685, matches: 0) 13 September 2020, 06:51 (keys: 4460, matches: 0) 13 September 2020, 06:51 (keys: 2158, matches: 0) 13 September 2020, 06:51 (keys: 4630, matches: 0) 13 September 2020, 06:51 (keys: 4932, matches: 0) 13 September 2020, 06:51 (keys: 6885, matches: 0) 13 September 2020, 06:51 (keys: 7395, matches: 0) 13 September 2020, 06:51 (keys: 5310, matches: 0) 13 September 2020, 06:51 (keys: 7762, matches: 0)

Gap between checks: 1 day 12 h 40 min

14 September 2020, 19:31 (keys: 4835, matches: 0) 14 September 2020, 19:31 (keys: 3000, matches: 0) 14 September 2020, 19:31 (keys: 6285, matches: 0) 14 September 2020, 19:31 (keys: 6095, matches: 0) 14 September 2020, 19:31 (keys: 6685, matches: 0) 14 September 2020, 19:31 (keys: 4460, matches: 0) 14 September 2020, 19:31 (keys: 2158, matches: 0) 14 September 2020, 19:31 (keys: 4630, matches: 0) 14 September 2020, 19:31 (keys: 4932, matches: 0) 14 September 2020, 19:31 (keys: 6885, matches: 0) 14 September 2020, 19:31 (keys: 7395, matches: 0) 14 September 2020, 19:31 (keys: 5310, matches: 0) 14 September 2020, 19:31 (keys: 7762, matches: 0) 14 September 2020, 19:31 (keys: 4977, matches: 0)

Gap between checks: 1 day 15 h 46 min

16 September 2020, 11:17 (keys: 6285, matches: 0) 16 September 2020, 11:17 (keys: 6095, matches: 0) 16 September 2020, 11:17 (keys: 6685, matches: 0) 16 September 2020, 11:17 (keys: 4460, matches: 0) 16 September 2020, 11:17 (keys: 2158, matches: 0) 16 September 2020, 11:17 (keys: 4630, matches: 0) 16 September 2020, 11:17 (keys: 4932, matches: 0) 16 September 2020, 11:17 (keys: 6885, matches: 0) 16 September 2020, 11:17 (keys: 7395, matches: 0) 16 September 2020, 11:17 (keys: 5310, matches: 0) 16 September 2020, 11:17 (keys: 7762, matches: 0) 16 September 2020, 11:17 (keys: 4977, matches: 0) 16 September 2020, 11:17 (keys: 5655, matches: 0) 16 September 2020, 11:17 (keys: 9548, matches: 0)

OK

17 September 2020, 02:12 (keys: 6285, matches: 0) 17 September 2020, 02:12 (keys: 6685, matches: 0) 17 September 2020, 02:12 (keys: 4460, matches: 0) 17 September 2020, 02:12 (keys: 2158, matches: 0) 17 September 2020, 02:12 (keys: 4630, matches: 0) 17 September 2020, 02:12 (keys: 4932, matches: 0) 17 September 2020, 02:12 (keys: 6885, matches: 0) 17 September 2020, 02:12 (keys: 7395, matches: 0) 17 September 2020, 02:12 (keys: 5310, matches: 0) 17 September 2020, 02:12 (keys: 7762, matches: 0) 17 September 2020, 02:12 (keys: 4977, matches: 0) 17 September 2020, 02:12 (keys: 5655, matches: 0) 17 September 2020, 02:12 (keys: 9548, matches: 0) 17 September 2020, 02:12 (keys: 10235, matches: 0)

Gap between checks: 2 days 8 h 7 min

19 September 2020, 10:19 (keys: 4460, matches: 0) 19 September 2020, 10:19 (keys: 2158, matches: 0) 19 September 2020, 10:19 (keys: 4630, matches: 0) 19 September 2020, 10:19 (keys: 4932, matches: 0) 19 September 2020, 10:19 (keys: 6885, matches: 0) 19 September 2020, 10:19 (keys: 7395, matches: 0) 19 September 2020, 10:19 (keys: 5310, matches: 0) 19 September 2020, 10:19 (keys: 7762, matches: 0) 19 September 2020, 10:19 (keys: 4977, matches: 0) 19 September 2020, 10:19 (keys: 5655, matches: 0) 19 September 2020, 10:19 (keys: 9548, matches: 0) 19 September 2020, 10:19 (keys: 10235, matches: 0) 19 September 2020, 10:19 (keys: 11165, matches: 0) 19 September 2020, 10:19 (keys: 10369, matches: 0)

OK

20 September 2020, 02:18 (keys: 2158, matches: 0) 20 September 2020, 02:18 (keys: 4630, matches: 0) 20 September 2020, 02:18 (keys: 4932, matches: 0) 20 September 2020, 02:18 (keys: 6885, matches: 0) 20 September 2020, 02:18 (keys: 7395, matches: 0) 20 September 2020, 02:18 (keys: 5310, matches: 0) 20 September 2020, 02:18 (keys: 7762, matches: 0) 20 September 2020, 02:18 (keys: 4977, matches: 0) 20 September 2020, 02:18 (keys: 5655, matches: 0) 20 September 2020, 02:18 (keys: 9548, matches: 0) 20 September 2020, 02:18 (keys: 10235, matches: 0) 20 September 2020, 02:18 (keys: 11165, matches: 0) 20 September 2020, 02:18 (keys: 10369, matches: 0) 20 September 2020, 02:18 (keys: 5290, matches: 0)

Gap between checks: 2 days 3 min

22 September 2020, 02:21 (keys: 4932, matches: 0) 22 September 2020, 02:21 (keys: 6885, matches: 0) 22 September 2020, 02:21 (keys: 7395, matches: 0) 22 September 2020, 02:21 (keys: 5310, matches: 0) 22 September 2020, 02:21 (keys: 7762, matches: 0) 22 September 2020, 02:21 (keys: 4977, matches: 0) 22 September 2020, 02:21 (keys: 5655, matches: 0) 22 September 2020, 02:21 (keys: 9548, matches: 0) 22 September 2020, 02:21 (keys: 10235, matches: 0) 22 September 2020, 02:21 (keys: 11165, matches: 0) 22 September 2020, 02:21 (keys: 10369, matches: 0) 22 September 2020, 02:21 (keys: 5290, matches: 0) 22 September 2020, 02:21 (keys: 3250, matches: 0) 22 September 2020, 02:21 (keys: 8390, matches: 0)

Gap between checks: 1 day 23 hours

24 September 2020, 01:21 (keys: 7395, matches: 0) 24 September 2020, 01:21 (keys: 5310, matches: 0) 24 September 2020, 01:21 (keys: 7762, matches: 0) 24 September 2020, 01:21 (keys: 4977, matches: 0) 24 September 2020, 01:21 (keys: 5655, matches: 0) 24 September 2020, 01:21 (keys: 9548, matches: 0) 24 September 2020, 01:21 (keys: 10235, matches: 0) 24 September 2020, 01:21 (keys: 11165, matches: 0) 24 September 2020, 01:21 (keys: 10369, matches: 0) 24 September 2020, 01:21 (keys: 5290, matches: 0) 24 September 2020, 01:21 (keys: 3250, matches: 0) 24 September 2020, 01:21 (keys: 8390, matches: 0) 24 September 2020, 01:21 (keys: 9405, matches: 0)

25 September 2020, 01:10 (keys: 5310, matches: 0)

Missing 13 checks

26 September 2020, 03:10 (keys: 5310, matches: 0) 26 September 2020, 03:10 (keys: 4977, matches: 0) 26 September 2020, 03:10 (keys: 5655, matches: 0) 26 September 2020, 03:10 (keys: 9548, matches: 0) 26 September 2020, 03:10 (keys: 10235, matches: 0) 26 September 2020, 03:10 (keys: 11165, matches: 0) 26 September 2020, 03:10 (keys: 10369, matches: 0) 26 September 2020, 03:10 (keys: 5290, matches: 0) 26 September 2020, 03:10 (keys: 3250, matches: 0) 26 September 2020, 03:10 (keys: 8390, matches: 0) 26 September 2020, 03:10 (keys: 9405, matches: 0) 26 September 2020, 03:10 (keys: 13539, matches: 0) 26 September 2020, 03:10 (keys: 12229, matches: 0) 26 September 2020, 03:10 (keys: 12457, matches: 0)

Gap between checks: 1 day 10 hours 40 min

27 September 2020, 13:50 (keys: 4977, matches: 0) 27 September 2020, 13:50 (keys: 5655, matches: 0) 27 September 2020, 13:50 (keys: 9548, matches: 0) 27 September 2020, 13:50 (keys: 10235, matches: 0) 27 September 2020, 13:50 (keys: 11165, matches: 0) 27 September 2020, 13:50 (keys: 10369, matches: 0) 27 September 2020, 13:50 (keys: 5290, matches: 0) 27 September 2020, 13:50 (keys: 3250, matches: 0) 27 September 2020, 13:50 (keys: 8390, matches: 0) 27 September 2020, 13:50 (keys: 9405, matches: 0) 27 September 2020, 13:52 (keys: 13539, matches: 0) 27 September 2020, 13:52 (keys: 12229, matches: 0) 27 September 2020, 13:52 (keys: 12457, matches: 0) 27 September 2020, 13:52 (keys: 9593, matches: 0)


Internal Tracking ID: EXPOSUREAPP-2899

heinezen commented 3 years ago

@kbobrowski Thanks for the report. There is a similar issue on iOS https://github.com/corona-warn-app/cwa-app-ios/issues/916. Can you check if this is similar to what you are experiencing?

Edit: This might be the same issue as here: https://github.com/corona-warn-app/cwa-app-android/issues/933


Corona-Warn-App Open Source Team

kbobrowski commented 3 years ago

@heinezen yes it may be the same as https://github.com/corona-warn-app/cwa-app-android/issues/933

heinezen commented 3 years ago

@kbobrowski #933 was adressed in an update by Huawei themselves (see @vaubaehn's comment https://github.com/corona-warn-app/cwa-app-android/issues/933#issuecomment-693366148).

Since your phone is from a different manufacturer, I have created a new Jira ticket for this issue (EXPOSUREAPP-2899). Status updates should find their way here this way.

Thanks again, CH


Corona-Warn-App Open Source Team

daimpi commented 3 years ago

@heinezen I would suggest merging those issues into #933 in order to track it in one central place here on Github (maybe copy @kbobrowski's OP over).

heinezen commented 3 years ago

@daimpi I've added a link to #933 .


Corona-Warn-App Open Source Team

svengabr commented 3 years ago

🔥 Hot Topic Update 🔥

We are discussing this issue on regular basis as its currently one of our high priority tasks.

The latest feedback is:

Developer Notes:

Subtask #1 & #2 (Dev / DeviceTests) have shown that the use of POC/ForegroundService is clearly recommended, especially for problematic devices. The usage improves background reliability even for the "worst devices" (like Huawei P20). Different testscenarios have been executed on 7 different devices. To have higher guarantees more device test from all manufactures would be neccessary, but the results are sufficient in principle.

The usage of ForegroundServices wakes the CWA App and gives higher priorization to the CWA BackgroundWorker, what can be desginated as welcome.

Note 1: The usage of ForegroundServices requires a short notification (mandatory), but only as long as the backroundjob (key retrieval) is done.

In every day life this means a short notification will appear (and disappear after 1-4 seconds automatically) approximately 4-5 times a day (on current code base).

This notification is not essentially a disadvantage and can be used to keep the App-User updated (e.g. "Daten werden aktualisiert").

Note 2: An example (picture) how this notification could look like is attached in the comments (to be discussed with UI/UX team).

Best regards, SG

Corona-Warn-App Open Source Team

svengabr commented 3 years ago

Could you please update the app to the latest version 1.5 and check if the problems are gone for you?

dsarkar commented 3 years ago

Dear community,

In order to follow up and monitor the issue: Are there any new reports regarding this issue with the actual CWA version? See also https://github.com/corona-warn-app/cwa-app-android/issues/933.

Best wishes, DS

Corona-Warn-App Open Source Team

dsarkar commented 3 years ago

Dear @kbobrowski, dear community

Thanks for reporting. This issue is considered fixed with the actual CWA version 1.7.1. We will close this issue now. However, do not hesitate to re-opening or creating a new issue if necessary. Best, DS.


Corona-Warn-App Open Source Team