Metadata-Version: 2.4
Name: flet-android-background
Version: 0.0.4
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<2.0.0,>=0.82.0
Description-Content-Type: text/markdown

# flet-android-background

Experimental; no process-death recovery. Pip install.

Create `BackgroundTask` per page; set `page.on_close = task.on_session_close`.
Use `await task.start(work, enable_wifi_lock=True)` and `await task.stop()`.
WifiLock: default off; released on exit. Android 14+: foreground/screen-on only;
Power policies apply. `WAKE_LOCK` bundled.

Before building:

```python
from flet_android_background.android import configure_android_project

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

Types: `dataSync`, `shortService`, `specialUse` (requires `subtype`). Time limits apply.
