flet-dev / flet

Flet enables developers to easily build realtime web, mobile and desktop apps in Python. No frontend experience required.
https://flet.dev
Apache License 2.0
11.41k stars 445 forks source link

Can not open project on iOS Flet app after scanning the QR code from termianl #2108

Closed aurosevic closed 11 months ago

aurosevic commented 11 months ago

Description

Just like before I would start the Flet development server on desktop and scan the given QR code with phone, but now I couldn't get the app running on iOS.

I am getting the following error message: IMG_6797

I was not doing anything new in comparison to running it before. The only thing that has changed is that iOS Flet app has been updated to use Flet SDK 0.12.2, which is exactly the Flet version in venv from which I'm trying to run the app.

Here's the terminal output: (venv) andrija@multiverse:~/PycharmProjects/finance-buddy$ flet --version 0.12.2

I've tried copying the server url and pasting it to iOS app, and that worked. This indicates that there most likely might be a problem with QR code.

Code example to reproduce the issue:

flet run app.py --ios

Describe the results you received:

Describe the results you expected:

Additional information you deem important (e.g. issue happens only occasionally):

Flet version (pip show flet):

0.12.2

Operating system:

Desktop: KDE Neon 5.27 Mobile: iPhone 13 Pro Max, iOS 17.1.1

Additional environment details:

ndonkoHenri commented 11 months ago

Can you instead try to manually give the link from the terminal into the app?

aurosevic commented 11 months ago

Yes I can, I wrote that. That's why I said it is most likely a problem with QR code.

Plumpplump commented 11 months ago

Same problem in Android too.

FeodorFitsner commented 11 months ago

Thank you for reporting that! We can confirm the issue and working on the fix. Hopefully, an update will be approved by Monday.

aurosevic commented 11 months ago

It's fixed, thanks!

shefa commented 11 months ago

It's not fixed for android it seems, I think it's a problem with the https://android.flet.dev/ website or the flet://flet-host handler

let's say my app is runing on name.com if I go to android flet app and manually add the address http://name.com it works. previously, I could go to https://android.flet.dev/name.com and it would redirect or open the link flet://flet-host/http%3A%2F%2Fname.com which would then add the project in my android flet app automatically.

Currently, the website works the same, but the link flet://flet-host/http%3A%2F%2Fname.com is not recognized by the flet app - it shows this error <urlopen error unknown url type: flet>

FeodorFitsner commented 11 months ago

We are still working on an update for Android. Sorry for the delay guys!

FeodorFitsner commented 11 months ago

Android app has been updated. It should be fixed now.