Setting up pyproject.toml for flet foreground servis (Pyjnius) #5227
Unanswered
peterkacmarik
asked this question in
Q&A
Replies: 1 comment
-
Did you figure this one out? On MacOS, to get a custom field into the Info.plist, I used the below in the toml file:
If you use that "info" tag, does it generate an entry for Android? Apologies, I'm not a mobile dev - so no idea how they work, but thought that maybe the interface to it might be similar. I struggled to figure it out on MacOS as there isn't much documentation on it. example toml file: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I need help with setting up the pyproject.toml file for the foreground service.
In what format should I write android permission and android services in pyproject.toml so that the data is written to the AndroidManifes.xml file?
For android permission, I write in the pyproject file:
[tool.flet.android.permission]
"android.permission.FOREGROUND_SERVICE" = true
"android.permission.WAKE_LOCK" = true
"android.permission.FOREGROUND_SERVICE_SPECIAL_USE" = true
How to write the required android services to the pyproject file, for example:
<service android:name=".StopwatchService" android:foregroundServiceType="specialUse" android:exported="false"/>
Thanks for your help.
Beta Was this translation helpful? Give feedback.
All reactions