Skip to content
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

docs: update installation guide android section #236

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

BagasNS
Copy link

@BagasNS BagasNS commented Jul 29, 2024

since this library want to make forever running background tasks, it is not possible to use android:foregroundServiceType="shortService" since it will be killed after 3 minutes. refer to this Android Documentation. so we use android:foregroundServiceType="dataSync" instead.

This PR will close #228

…roundServiceType

since this library want to make forever running background tasks, it is not possible to use `android:foregroundServiceType="shortService"` since it will be killed after 3 minutes. refer to this [Android Documentation](https://developer.android.com/about/versions/14/changes/fgs-types-required#short-service). so we use `android:foregroundServiceType="dataSync"` instead.
@AyyazAnjum
Copy link

since this library want to make forever running background tasks, it is not possible to use android:foregroundServiceType="shortService" since it will be killed after 3 minutes. refer to this Android Documentation. so we use android:foregroundServiceType="dataSync" instead.

This PR will close #228

i am using dataSync but my background task that is simply just a console log iterration is stoping after 30 secs on android 12+ but task is working fine for android below 12 like android x i have tested

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Documentation Android Section not clearly describe impact foregroundServiceType=shortService
2 participants