Closed teolemon closed 2 years ago
cf. https://github.com/openfoodfacts/smooth-app/issues/41#issuecomment-841797727
The very first init of the app, for importance preferences we'll use the English version from the asset folder (we cannot store all languages in the assets), while async'ly downloading the "French version" and refreshing when done. Without internet connection, we're stuck with the English version. With internet connection, we probably should wait until that meta-data is downloaded.
Suggestion: make it explicit in the onboarding that we need to init the app using internet (additional "localized init" phase?), and in that internet/init phase we could download the sample product and the localized metadata.
That being said, I'm not sure if what I've just said applies exactly with that specific issue. But it should be dealt with, too.
Suggestion: make it explicit in the onboarding that we need to init the app using internet (additional "localized init" phase?), and in that internet/init phase we could download the sample product and the localized metadata.
@teolemon ping: either we have an app with potentially default values in English, or we take time to download localized data. And if we take time and use the internet it's probably better to tell so to the user, isn't it?
So I talked to Stephane about this last week, this was the plan
barcode=example
(we can already do this now). Working on the subject, and so far so good...
Et voilà :
I rely on the 'example' barcode. 90% of the job is done. Still some refactoring to do, and coding on off-dart.
Fixed by #986.
What
Potential causes
Part of
561
Screenshots