Rapsssito / react-native-background-actions

React Native background service library for running background tasks forever in Android & iOS.
MIT License
818 stars 117 forks source link

Android 14 : Background Job #216

Closed Jihoon-SHIN closed 5 months ago

Jihoon-SHIN commented 8 months ago

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 commented 8 months ago

See this solution: https://github.com/Rapsssito/react-native-background-actions/issues/200#issuecomment-1895310494

Jihoon-SHIN commented 7 months ago

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 commented 7 months ago

any luck?

github-actions[bot] commented 5 months ago

:tada: This issue has been resolved in version 4.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: