Metadata-Version: 2.4
Name: flet-android-background
Version: 0.0.1
Summary: Experimental foreground tasks for Flet on Android
Project-URL: Homepage, https://github.com/alex-stoica/flet-android-background
Project-URL: Repository, https://github.com/alex-stoica/flet-android-background
Project-URL: Issues, https://github.com/alex-stoica/flet-android-background/issues
Author-email: Alex Stoica <alexstoica@protonmail.com>
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 3 - Alpha
Requires-Python: >=3.11
Requires-Dist: flet==1.0.3
Description-Content-Type: text/markdown

# flet-android-background

Experimental Flet Android tasks; one owns the foreground service.
Locking permits continued execution; Android restrictions still apply.
Dismissal or runtime loss stops the service. Process death has no recovery.

Install the wheel with pip. Add `BackgroundTask` to your Flet app, then
`await task.start(work)` or `await task.stop()`.

Before building the generated Flutter project:

```python
from flet_android_background.android import configure_android_project

configure_android_project(path, service_type="dataSync")
```

Supported types: `dataSync`, `shortService`, `specialUse`. The latter requires
an app-specific `subtype` explanation. Android time limits apply.
