-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
webview - flask server crashes immediately #739
Comments
I had problems using debug=True, but I can't remember what happened exactly. Could you try disabling that to see if it works? You could also remove the host argument just in case, but I don't know if that could be relevant. |
Also, for what it's worth the webview bootstrap should automatically include the INTERNET permission so you can leave that out if you like. |
@inclement Indeed, removal of |
Great. I don't think this problem is something p4a can fix (since it seems to relate to flask's use of a subprocess, which won't work on android), so I'll close this issue. |
I've added a note in the doc about it, for what that's worth. |
I've used buildozer to create a ,,hello world'' app using a webview and flask. Unfortunately, it crashes right away with error
ERR_CONNECTION_RESET
, and once I press a link tohttp://127.0.0.1:5000/
, the error changes toERR_CONNECTION_REFUSED
.adb logcat: http://pastebin.com/W6rs1bB6
main.py:
minimal buildozer.spec:
PS: the apk weight is only 5,5mb, what is quite nice.
The text was updated successfully, but these errors were encountered: