-
-
Notifications
You must be signed in to change notification settings - Fork 121
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 (Samsung A14) : service stop after backgrounded it #225
Comments
Hi, |
Yes but like I said before, it's not a problem of react-native-background-actions 4.0.0 |
Are notifications allowed in the Android app settings? |
It's impossible to enable notification in my app on the samsung A14, other apps have the ability to enable it. |
New update : |
Help, same issue! This is my AndroidManifest.xml
and this my snippet:
|
There are some observation:
|
Maybe there are some assumptions how to manage stable work of this background-task? |
If you look at the official docs shortService only runs for 3 minutes. I think it has something to do with that it's not supposed to run longer than that thus causing errors. |
@Dwikavindra I believe you are onto something! I wonder if foregroundServiceType=specialUse would work for longer tasks? |
Hi,
For testing I start a counter when I click to a button on the app.
When I close the app (put it in background), the counter freeze.
When I switch off the screen, and switch back on, the counter continue when expected.
This problem is constated on Samsung A14, but I think is due to Android 14+.
I have a samsung s9 on android 10 and no problem, when I close the app, counter continue normally.
I tested this on expo 49 with react-native-background-actions 3.0.1 and with expo 51 with react-native-background-actions 4.0.0, and both the same experience.
Do anyone know what can I do ?
Thanks
The text was updated successfully, but these errors were encountered: