-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
Task stops working after 3 minutes on android 14 #247
Comments
I am also facing the same issue, I have changed to foregroundServiceType, it's working for the first time but not everytime. Did you found any solutions @Beckmann0o ? |
same issue here 😕 |
Can you show your adb logs? I think you can try change your fouregroundServiceType to syncData to take longer task |
Hello bro, I was able to make it run continuously by adding foreground type in the Android manifest, the problem is that when the screen is turned off for several hours the OS kills the service. Did you have any progress? I leave how to configure the manifest: |
Hello, I already have it configured as follows: It works fine as long as the screen does not remain off for several hours, at which point the OS kills my service. |
Hello, I changed the service type in the Android manifest and got it to work continuously but when the screen is off for several hours the OS kills the service, I am trying to solve that problem. I'll give you my current configuration in the manifest for the type of service.
|
@Beckmann0o @devtyty @chowdhury-abhishek @carozo I tried the example from the library and app just crashes. but it works with older versions of android. But i am unable to get it working with android 14. Please help! I have a issue posted in #251 |
Hi @chowdhury-abhishek @carozo @Beckmann0o @devtyty While the app is in the background, the microphone isn't working. However, it functions properly when the app is in the foreground, where both camera and microphone permissions are granted. how can i solve this ? I’m facing an issue where the microphone stops working when the app is in the background, even though the camera and microphone permissions are correctly granted when the app is in the background and it functions properly when the app is in foreground. Can you please assist in resolving this? It would be greatly appreciated if someone could help or provide any guidance on how to fix this behavior. Thanks in advance!
|
Do you have try set forgroundServiceType for "camera | microphone"? |
@devtyty Yes, I have tried the app, but it keeps crashing on samsung and moto devices
|
Can you show adb logs crash? I think it maybe missing some permissions. You must be make sure request permission audio before start foreground service. |
@devtyty Thanks for your response regarding this issue; the error I am getting is Fatal Exception: java.lang.RuntimeException and the path where the code is added is node_modules\react-native-background-actions\android\src\main\AndroidManifest.xml
|
I use this but if i change anything other than shortservice my app get crashed when background service is starting. I m using background service for continuos location tracking |
@princekasundra is there any alternative that we can use ? |
I m still searching that, if any one finds please help. |
Sure |
Any one faces same problem for location tracking using this lib??? |
@princekasundra @vishalyad16 I am also facing the same issue , have you found any solution. I also have to do location tracking |
@devtyty I have fixed the crash issue, but there is still an issue with the microphone.
|
Hi guys, I'm trying to set up a task that can be done every 30 seconds, the idea is to run constantly. The problem is that in versions prior to Android 14 it works fine, but in Android 14 it works for 3 minutes and the application stops working. I think it may be because of the declared service type android:foregroundServiceType="shortService", maybe if I change the service type the task could run for longer, did anyone have the same problem?
Thank you very much!
The text was updated successfully, but these errors were encountered: