Testing on Mobile
**Overview**
Allows building and testing Flet applications directly on iOS and Android devices using Python. The process involves installing a Flet client app on the mobile device and running the Flet development server on the computer.
**Current Status**
An updated Flet app supporting API 0.80.0 is under development. The current App Store and Google Play versions support Flet 0.28.3.
**Requirements**
**iOS Setup**
1. **Install Flet App**: Install the Flet iOS app from the [App Store](https://apps.apple.com/app/flet/id1624979699).
2. **Run Development Server**:
* Using uv: uv run flet run --ios [script]
* Directly: flet run --ios [script]
* Using poetry: poetry run flet run --ios [script]
* [script] refers to your main Python application file.
**Android Setup**
1. **Install Flet App**: Install the Flet Android app from the [Google Play Store](https://play.google.com/store/apps/details?id=com.appveyor.flet).
2. **Run Development Server**:
* Using uv: uv run flet run --android [script]
* Directly: flet run --android [script]
* Using poetry: poetry run flet run --android [script]
* [script] refers to your main Python application file.
3. **Connect Device**:
* A QR code with the project URL will be displayed in the terminal.
* Open the device's Camera app, scan the QR code, and click the URL to open it in the Flet app.
* Alternatively, manually add the project URL by clicking the '+' button in the Flet app.
**Development Workflow**
flet run command starts the app in hot reload mode, automatically refreshing the app on the device when code changes are detected.**Examples**
https://flet-counter-test-ios.fly.dev (for testing on iOS).