Digitaler-Impfnachweis / covpass-android

The official CovPass(-Check) Android apps and SDK.
https://digitaler-impfnachweis-app.de
Apache License 2.0
183 stars 59 forks source link

[covpass-sdk] Does the SDK automatically refresh the required information? #167

Closed luzianscherrer closed 2 years ago

luzianscherrer commented 2 years ago

Avoid duplicates

Your Question

When running in a kiosk mode application that is always on, does the SDK automatically periodically refresh the required information (dsc list, vailidation rules) or does one have to implement that part? In case it has to be implemented by the user of the SDK, is there any example code available?

pucherd commented 2 years ago

Hello @luzianscherrer, The SDK is not refreshing the required information automatically (dsc list, rules, ..) but we already have helper functions which could be called from the host apps.

For example: https://github.com/Digitaler-Impfnachweis/covpass-android/blob/20faa2bc04f4296d2a220d5676e964272ad3092b/common-app/src/main/java/de/rki/covpass/commonapp/BackgroundUpdateViewModel.kt

oliver-steinbrecher commented 2 years ago

@luzianscherrer Did the answer help ?

luzianscherrer commented 2 years ago

Yes, thank you. An example would of course be helpful but I think I can manage to use it now.