Skip to content

Issues with FlutterBackgroundManager and latest version of Flutter (3.29.0) #86

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

Open
RajaShanmugamJM opened this issue Feb 25, 2025 · 9 comments

Comments

@RajaShanmugamJM
Copy link

Image

Issue started appearing after upgrading to latest flutter version.
Ref: fluttercommunity/flutter_workmanager#588

@Jeferson505
Copy link
Contributor

Hello, guys!

I'm encountering the same error and attempted to resolve it without success. However, I found some useful information that may help.

The issue stems from a breaking change in Flutter 3.29.0. Specifically, the removal of v1 Android embedding Java APIs. The Flutter team has documented this change here:

Flutter Breaking Change - Removal of v1 Android embedding Java APIs .

I followed the steps outlined in the Plugin Authors section but was unable to resolve the issue. Hopefully, someone here has better luck.

@vanlooverenkoen
@ikbendewilliam
@jeroentrappers
@DimmyMaenhout
@jorre127
@virtualmarc
@ashwin-dailype
@JasperVercammen
@NicolaVerbeeck
@resfandiari
@RajaShanmugamJM

@Kimsoer
Copy link

Kimsoer commented Mar 8, 2025

Hello sir, i got the same issue, how to solve it

@Kimsoer
Copy link

Kimsoer commented Mar 8, 2025

Image

@ikbendewilliam
Copy link
Contributor

Hi, did you try with 3.27? Does that work? I've recently updated the dependencies to support that version. If you are upgrading from an older version, you may need to clean your gradle.

@Jeferson505
Copy link
Contributor

@ikbendewilliam I tested with Flutter 3.27, and it works as expected. However, the breaking changes introduced in Flutter 3.29 require some updates. Specifically, the deprecated Java API usage needs to be removed. You can find the relevant information for this update in the Flutter post on breaking changes I referenced in my previous comment.

It's crucial that this plugin is compatible with the latest Flutter version.

I’ll try to work on a solution today and will provide updates as I progress. If you get a chance, it would be great if you could also take a look and try to tackle it from your side.

@SniffersDev
Copy link

Hi guy's, any update on this?

@ikbendewilliam
Copy link
Contributor

Internally we are staying on 3.24 as both 3.27 and 3.29 have many issues imo. We are updating packages, but it is slow until we are confident we have no more issues with the latest Flutter version and can update our projects.
flutter/flutter#165052
flutter/flutter#163429
flutter/flutter#162521
and many more

However, we are certainly open for PR's if you deem this crucial

@alasaleh10
Copy link

i have same problem
what solution

@RekanAnwar
Copy link

Use my fork for temporary solution.

https://github.com/RekanAnwar/flutter-background-location-tracker.git

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

7 participants