Skip to content
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 #119

Open
MrErkinjon opened this issue Feb 27, 2024 · 4 comments
Open

Android 14 #119

MrErkinjon opened this issue Feb 27, 2024 · 4 comments

Comments

@MrErkinjon
Copy link

BackgroundLocator 2 2.0.6 version ishlatganman
Android 14da chiqyapdi
Caused by: android.app.MissingForegroundServiceTypeException: Starting FGS without a type  callerApp=ProcessRecord{4bdb296 11745:uz.example/u0a103} targetSDK=34

@SNhenil
Copy link

SNhenil commented Mar 11, 2024

@stevehayles
Copy link

stevehayles commented May 20, 2024

Have a look at https://developer.android.com/about/versions/14/changes/fgs-types-required.

My fork at https://github.com/stevehayles/background_locator_fixed has the changes needed in the master branch to resolve this. I have some other differences like reverting the Google Play Services version to 20 but if you look in at the IsolateHolderService.kt file it has the fixes. You will need to have a compileSdkVersion of 34

@fahmyabada
Copy link

@stevehayles i test your fork and not work after updates
add to that when app had permission location and package running and app became in background
and go to setting and close permission manually would be see crash for app
this package not listen if app close permission or not to close service until open again

@stevehayles
Copy link

Hi, I cannot comment on your implementation, the repo shows what changes are required to update the library for Android 14.

It's not a pull request, for me it resolves the issue and I was simply offering some guidance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants