nucleus-ffm / foss_warn

An unofficial open source application to get emergency alerts from https://warnung.bund.de/meldungen.
GNU General Public License v3.0
98 stars 7 forks source link

FOSS Warn cant pull/update in background #30

Closed Stefan538871 closed 2 years ago

Stefan538871 commented 2 years ago

My Smartphone always shows that the updating data doesnt work, because the server is not available. signal-2022-03-02-010141 Everytime I open the app fetching data seems to work. Akku optimization is disabled signal-2022-03-02-010516 I use Lineageos 18.1

If I open the app in the foreground it looks like fetching data does work again as you can see here, since the status changes to "FOSS Warn ist aktive"

any idea if I did something wrong? Or is there a bug? thx

Kelvino9 commented 2 years ago

Got the same issue ever since I switched from Github 0.2.7 to F-Droid 0.2.8

nucleus-ffm commented 2 years ago

This seems to be a bug. I am not sure why this is happening now. For now, version 0.2.7 from Gtihub seems to be the best choice until I fix the bug.

nucleus-ffm commented 2 years ago

So I found the bug, but I haven't found a working solution yet. Maybe a developer here has a tip for me how to fix it?

The bug occurs only in the background task. The exception is thrown when reading the settings:

MissingPluginException(No implementation found for method getAll on channel plugins.flutter.io/shared_preferences)

nucleus-ffm commented 2 years ago

I think I have fixed the bug now. I will test it now and if everything works I will publish it in the next days.

Kelvino9 commented 2 years ago

Latest version on F-Droid (0.29) seems to be fixed and functions properly again. Thanks!

Stefan538871 commented 2 years ago

Just tested it, looks good so far Thx for the fast fix :)