App not responding modal occurs in android 14.
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.
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.
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
Can confirm it also worked for me by adding dataSync and <uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC"/> 🥳