OneSignal-Flutter-SDK icon indicating copy to clipboard operation
OneSignal-Flutter-SDK copied to clipboard

Flutter 3.22.0 warning - java/com/onesignal/flutter/OneSignalPlugin.java uses or overrides a deprecated API

Open Jonny1987 opened this issue 1 year ago • 1 comments

What happened?

I get the following warning when building my app:

Note: /home/john/.pub-cache/hosted/pub.dev/onesignal_flutter-5.2.0/android/src/main/java/com/onesignal/flutter/OneSignalPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

Steps to reproduce?

Build android app using `flutter build apk --release lib/main.dart`

What did you expect to happen?

No warning

OneSignal Flutter SDK version

3.22.0

Which platform(s) are affected?

  • [ ] iOS
  • [X] Android

Relevant log output

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

Jonny1987 avatar May 29 '24 22:05 Jonny1987

@Jonny1987 thanks for reporting. This looks like a warning we need to address in the future.

Just to confirm, this isn't cause any build or runtime issues for you?

jkasten2 avatar Jun 05 '24 17:06 jkasten2

uses or overrides a deprecated API

I think this issue was related to Android v1 embedding which was removed in https://github.com/OneSignal/OneSignal-Flutter-SDK/pull/1005

nan-li avatar May 30 '25 20:05 nan-li