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

Android 14 : Background Job #216

Open
Jihoon-SHIN opened this issue Mar 23, 2024 · 3 comments
Open

Android 14 : Background Job #216

Jihoon-SHIN opened this issue Mar 23, 2024 · 3 comments

Comments

@Jihoon-SHIN
Copy link

Before android 14 or 13 ,

foregroundService worked well in background, but not work now.

I need to send user's location 4-5 times in a minutes ( every 10~20sec)
Is there any good way ?

I had plan to use WorkManager, however workmanager interval minimum value is 15 minutes.

Help me plz.. :(

@JefersonNSoares
Copy link

See this solution: #200 (comment)

@Jihoon-SHIN
Copy link
Author

JefersonNSoares

thanks but, i already try this. 🥲

When I register a Job that makes an API request every 20 seconds using foreground service and enter the background, it only runs once for the first time.

I think schedule task is not working in the background on android 14.

@gokul-sirpi
Copy link

any luck?

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

No branches or pull requests

3 participants