transistorsoft / flutter_background_geolocation_firebase

Firebase proxy for Flutter Background Geolocation SDK
MIT License
21 stars 7 forks source link

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

Open JinKun-Yong opened 2 years ago

JinKun-Yong commented 2 years ago

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!

christocracy commented 2 years ago

I see. It will be upgraded and released soon.

christocracy commented 2 years ago

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 commented 2 years ago

Hello? Feedback please.

JinKun-Yong commented 2 years ago

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 commented 2 years ago

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

christocracy commented 2 years ago

You're correct.

rbarbosas commented 2 years ago

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)."

iDeliverWilhem commented 2 years ago

same with @rbarbosas

christocracy commented 2 years ago

1.0.0 is published.