flutter_background_fetch icon indicating copy to clipboard operation
flutter_background_fetch copied to clipboard

BackgroundFetchPlugin.java uses or overrides a deprecated API.

Open amit98-Flutter opened this issue 1 year ago • 1 comments

Hey, Thanks for providing this package.

Lately, I have been seeing this warning in the logs whenever I run my app. I am not sure how long this warning been showing for but I noticed it fairly recently.

image

amit98-Flutter avatar Feb 22 '24 09:02 amit98-Flutter

The issue template is not optional, it's required.

Your Environment

  • Plugin version:
  • Platform: iOS or Android
  • OS version:
  • Device manufacturer / model:
  • Flutter info (flutter info, flutter doctor):
  • Plugin config

To Reproduce Steps to reproduce the behavior: 1. 2. 3. 4.

Debug logs

  • ios XCode logs,
  • Android: $ adb logcat

Additional context Add any other context about the problem here.

christocracy avatar Feb 22 '24 14:02 christocracy

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Apr 17 '24 01:04 github-actions[bot]

the same problem

agunbuhori avatar Apr 17 '24 21:04 agunbuhori

Why is it a “problem”?

christocracy avatar Apr 17 '24 21:04 christocracy

This warning continues in version 1.3.2. So that you can reproduce, just first call "flutter clean" and then "flutter run".

tulioccalazans avatar Apr 19 '24 12:04 tulioccalazans

This harmless warning is due to code left behind to support older versions of Flutter from about two years ago. This is from code which can never be reached by the latest Flutter SDKs.

christocracy avatar Apr 19 '24 12:04 christocracy

@amit98-Flutter The issue is currently caused by the PluginRegistry import statements in BackgroundFetchPlugin.java. The code that requires those was recently removed. You can safely ignore the warning, or you could monkey patch the file by removing the two import statements that mention PluginRegistry.

derrickgw avatar Apr 27 '24 17:04 derrickgw