Testing on Mobile

Start building awesome mobile apps in Python using just your computer and mobile phone!

Important

Install the Flet iOS app on your iOS device. You will be using this app to see how your Flet project is working on iPhone or iPad.

Get it on App Store

View on App Store

Run the following command to start Flet development server with your app:

uv run flet run --ios [script]  # (1)!
  1. flet run starts your app in hot reload mode. More info here.
flet run --ios [script]  # (1)!
  1. flet run starts your app in hot reload mode. More info here.
poetry run flet run --ios [script]  # (1)!
  1. flet run starts your app in hot reload mode. More info here.

Install the Flet Android app on your Android device. You will be using this app to see how your Flet project is working on Android device.

Get it on Google Play

View on PlayStore

Run the following command to start Flet development server with your app:

uv run flet run --android [script]  # (1)!
  1. flet run starts your app in hot reload mode. More info here.
flet run --android [script]  # (1)!
  1. flet run starts your app in hot reload mode. More info here.
poetry run flet run --android [script]  # (1)!
  1. flet run starts your app in hot reload mode. More info here.

A QR code with encoded project URL will be displayed in the terminal:

app-qr-code

Open Camera app on your Android device, point to QR code you got and click URL to open it in Flet app.

Try updating your [script] - the app will be instantly refreshed on your Android device.

To return to "Home" tab either:

  • Long-press anywhere on the screen with 3 fingers or
  • Shake your Android device.

You can also "manually" add a new project by clicking "+" floating action button in the app and typing in its URL.

Examples

  • Below is a URL to a "Counter" Flet app that we hosted for testing purposes:
    https://flet-counter-test-ios.fly.dev
    
  • The "Gallery" tab of the app has some more examples that you can try out.
  • Explore Flet examples for even more examples.