-
-
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
App not responding modal occurs in android 14. #244
Comments
same issue, did you find a solution? |
Any update, Facing same! |
We seem to be facing the same issue, any suggestions? @myzow What did you conclude? |
The problem I discovered is the service type set to "shortService" as recommended in this library's docs. The Android specs are here: https://developer.android.com/develop/background-work/services/fgs/service-types The app will say "App is Not Responding" if the code runs for longer than 3 minutes. In my case, I have an infinite loop scanning an offline database to sync with the server periodically. I switched the service type to "dataSync" and made modifications as recommended here: https://developer.android.com/develop/background-work/services/fgs/service-types#data-sync Now it seems to work without limitations. Only issue I've read is Google will require a video showing the functionality. |
Can confirm it also worked for me by adding dataSync and |
I am using react-native-geolocation-service to fetch location with Background actions . It is working fine in all other android versions but getting the "App not responding modal" in andorid 14 after some time.
The text was updated successfully, but these errors were encountered: