BackgroundFetchPlugin.java uses or overrides a deprecated API.
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.
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.
This issue is stale because it has been open for 30 days with no activity.
the same problem
Why is it a “problem”?
This warning continues in version 1.3.2. So that you can reproduce, just first call "flutter clean" and then "flutter run".
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.
@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.