Cwa-app-ios: My app is currently updating everytime I open it, Is this intended or not?

Created on 16 Nov 2020  路  15Comments  路  Source: corona-warn-app/cwa-app-ios

Avoid duplicates

  • [ ] Bug is not mentioned in the FAQ
  • [ ] Bug is not already reported in another issue

Describe the bug

Before the app was updated every 24 hours, but now when ever I open app it downloads the keys to sync.
I am not sure if this is intended.

Expected behaviour

App should only update itself every 24 hours

Steps to reproduce the issue

Sync the app, close the app, wait for a minute to pass, open the app, it syncs again.

Technical details

  • iOS Version: 14.2
  • Device: iPhone 11 Pro Max

Possible Fix

Additional context

bug duplicate

Most helpful comment

@cricketsamya

The duplicate entrys are tracked here: https://github.com/corona-warn-app/cwa-app-ios/issues/1505
All this will be heavily improved (or rather completely solved) with the 1.7.0 release this week 馃憤
The downloaded Data also don't take up any disk space since the files are cached based on the Hashes.

But yeah, kinda crazy to see all these updates 馃槄

All 15 comments

Now app is not updating everytime I open it.!

@cricketsamya
This is intended with 1.6.1 (for more details see: https://github.com/corona-warn-app/cwa-app-ios/issues/1514#issuecomment-727602796)

Cool.. Sorry for duplicate

I still don't understand this behavior. Sometimes it does the update every time I open it and then suddenly it stops and does not update for 24h. (logs in #1522).

Me neither but they say its intended! 馃槄

@danielvonmitschke @cricketsamya The problem is that the App can't load the App config (please don't ask me why 馃槄) and to verify the result of the last check they do another one (@thomasaugsten stated this here:

This behavior is in 1.6.1 intended because we cannot load the configuration of the app. After a successful load of the configuration we do the exposure check again to ensure the result based on the latest config. But we will improve this in the future.

)

I think this only happens if the App wasn't opened for a long time or if the App was opened without internet connection

Hahah I eagerly wait everyday to complete 24 hours.. 馃槄 But from my experience it happens randomly not always. Would be amazing if you guys can support force sync.

@cricketsamya

There are different approaches
a) activated background refresh:
The App will (try) to do a check every 24h in the background, if the App gets opened manually when 24h are over and no check has happened yet, a check will immediately happen.

b) deactivated background refresh:
You will have to open the App every day when the last check was min. 24h ago.

With 1.7.0, which will be released next week, the frequency of checks will be increased to 6 times a day -> all 4h.

@cricketsamya

There are different approaches
a) activated background refresh:
The App will (try) to do a check every 24h in the background, if the App gets opened manually when 24h are over and no check has happened yet, a check will immediately happen.

b) deactivated background refresh:
You will have to open the App every day when the last check was min. 24h ago.

With 1.7.0, which will be released next week, the frequency of checks will be increased to 6 times a day -> all 4h.

Amazing.. frequency checks happens on the app side? Isnt that app config? 馃檭

@cricketsamya
I don't fully understand what you mean 馃槄馃檪

Why need a app release? Sever side config, can be downloaded in app right??

@cricketsamya

The App's config can be found here: https://github.com/corona-warn-app/cwa-server/tree/master/services/distribution/src/main/resources/master-config.
So as you can see there are only very few (but the most important) things saved in and no features, etc., at all.
That's why the App needs an update to do more frequent checke. (h/t @daimpi)

image

Look how many times the app refreshes! 馃お

@cricketsamya

The duplicate entrys are tracked here: https://github.com/corona-warn-app/cwa-app-ios/issues/1505
All this will be heavily improved (or rather completely solved) with the 1.7.0 release this week 馃憤
The downloaded Data also don't take up any disk space since the files are cached based on the Hashes.

But yeah, kinda crazy to see all these updates 馃槄

@cricketsamya and community, Thanks for contributing here. This issue is resolved in CWA version 1.7.1.
Best wishes,
DS


Corona-Warn-App Open Source Team

Was this page helpful?
0 / 5 - 0 ratings