-
Notifications
You must be signed in to change notification settings - Fork 875
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Flower Android Version #2429
Conversation
Added WorkManager library to allow the FL process to run in the background.
Updated protobuf gradle files and added dependency on workManager
This reverts commit 2054036.
Thanks for creating the pull request, looks good to me! The added feature code looks clean and the android manifest is also updated accordingly. 1 small change request: Can you update the readme to include this info regarding background task? |
Added brief description on background thread.
Thanks for the PR @Shaz-hash, this is a great update. I resolved all of the trivial suggestions, there are now only two comments left to be resolved. |
-Removed unnecessary string variable -Renamed MyWorker to FlowerWorker
Description
In this contribution we have created an updated version of Android Example that will launch a reliable and persistent background thread to allow devices to contribute to federated learning(FL) for longer periods of time.
Unlike pervious android example which required the app to be on foreground and on display, this version is free from all these limitations (thread will execute even when app is removed from background task tray or when device is in sleep mode).
This background thread is established via WorkManager library of Android thus will run comfortably on Android Versions from 8 to 13.
Added Features
Note