g123k / flutter_app_badger

Support to update the app badge on the launcher (both for Android and iOS)
https://pub.dev/packages/flutter_app_badger
Apache License 2.0
308 stars 161 forks source link

The plugin `flutter_app_badger` uses a deprecated version of the Android embedding. #46

Closed jakusb closed 2 years ago

jakusb commented 3 years ago

AndroidStudio/Flutter shows this warning.

The plugin flutter_app_badger 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.

iamEtornam commented 3 years ago

I'm getting the same warning

Tom3652 commented 3 years ago

Having the same issue The warning appears everytime we run pub upgrade with the new release of flutter : 2.5.0

ghost commented 3 years ago

Getting the same issue with flutter: 2.5.0 (stable channel)

M1chlCZ commented 3 years ago

Came here to report same issue. I like this package, so I would like to keep it in my projects.

Heheovereggs commented 3 years ago

Just upgrade flutter version and this problem emerges, current flutter version 2.5.0 (stable channel)

atrope commented 3 years ago

While #47 is not merged you can use like this in your pubspec:

  flutter_app_badger:
    git:
      url: https://github.com/SuaMusica/flutter_app_badger.git
      ref: feature/androidV2

Always check the PR to see if it was already merged and get back to use pub.dev (there is no penalty nor performance issues using it from github)

fzyzcjy commented 3 years ago

Same issue here. Hoping it to be solved!

ghost commented 3 years ago

I think it's already fixed but somehow they just didn't announce it. https://github.com/g123k/flutter_app_badger/commit/628490233d760df5eb2a48a49a848ded6d33a654 I fixed it by using 1.3.0 instead while I'm not sure if it's recommended. After doing this, the warning is now gone.

flutter_app_badger: ^1.3.0

I hope it will help someone.

adrianvintu commented 2 years ago

flutter_app_badger: ^1.3.0 fixed it for me, thank you!

g123k commented 2 years ago

Yes indeed, the issue is fixed with 1.3.0