Add plyer for mobile support #4740
-
|
Add plyer for mobile support like kivy |
Beta Was this translation helpful? Give feedback.
Answered by
ndonkoHenri
Jun 19, 2026
Replies: 1 comment
-
|
plyer's mobile backends are written for python-for-android/kivy-ios, not Flet's Recommendation: rather than using |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ndonkoHenri
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
plyer's mobile backends are written for python-for-android/kivy-ios, not Flet's
serious_pythonruntime. If you add it to your app dependencies, plyer installs and imports fine, but its device-feature facades won't work. For it to work, its Android/iOS backends would need to be ported to use Flet's Activity/Context instead of kivy's.Recommendation: rather than using
plyer, usepyjnius/pyobjusdirectly, as shown in this guide. Let know if you face issues with it.