flutter_background_geolocation_firebase icon indicating copy to clipboard operation
flutter_background_geolocation_firebase copied to clipboard

The plugin `background_geolocation_firebase` uses a deprecated version of the Android embedding.

Open JinKun-Yong opened this issue 4 years ago • 9 comments

Unable to call flutter pub get with background_geolocation_firebase: ^0.2.0

The plugin `background_geolocation_firebase` uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.

Here's my flutter doctor:

Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 2.5.0, on macOS 11.2.1 20D74 darwin-x64, locale en-GB) [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2) [✓] Xcode - develop for iOS and macOS [✓] Chrome - develop for the web [✓] Android Studio (version 4.1) [✓] VS Code (version 1.60.1) [✓] Connected device (2 available)

• No issues found!

JinKun-Yong avatar Sep 21 '21 06:09 JinKun-Yong

I see. It will be upgraded and released soon.

christocracy avatar Sep 21 '21 15:09 christocracy

Try installing from branch plugin-v2.

pubspec.yaml

dependencies:
  flutter_background_geolocation_firebase:
    git:
      url: https://github.com/transistorsoft/flutter_background_geolocation_firebase.git
      ref:  plugin-v2

christocracy avatar Sep 21 '21 19:09 christocracy

Hello? Feedback please.

christocracy avatar Sep 24 '21 13:09 christocracy

Okay I've followed your instructions and it's all working! Thank you!

On Fri, Sep 24, 2021 at 9:18 PM Chris Scott @.***> wrote:

Hello? Feedback please.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/transistorsoft/flutter_background_geolocation_firebase/issues/23#issuecomment-926618171, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARJOXE7RTUMSKTWYQMQ3QWTUDR3DNANCNFSM5ENSOAQA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

JinKun-Yong avatar Sep 25 '21 12:09 JinKun-Yong

Just realised a small correction. I used background_geolocation_firebase instead of flutter_background_geolocation_firebase. Whereas flutter_background_geolocation_firebase: throws a name error

JinKun-Yong avatar Sep 25 '21 13:09 JinKun-Yong

You're correct.

christocracy avatar Sep 25 '21 20:09 christocracy

I'm getting the following error with the solution:

"Package doesn't exist (the pubspec for background_geolocation_firebase 1.0.0 from git has version 0.2.0)."

rbarbosas avatar Nov 25 '21 15:11 rbarbosas

same with @rbarbosas

iDeliverWilhem avatar Nov 30 '21 02:11 iDeliverWilhem

1.0.0 is published.

christocracy avatar Nov 30 '21 02:11 christocracy