Closed ceciliamzayek closed 4 years ago
Most likely it's about the vibrate
method. The old method is marked as deprecated, but as far as I know, still works on the old Android versions.
oh so I can just leave it as it is?
Yes, it's just a warning which you can ignore. I'll try to get rid of it, if possible.
google play rejected my app update !
I add android.debug.obsoleteApi=true to "gradle.properties" to debug the api and ....
so I opened the developer reference and I got this msg:
you can update your flutter_vibration plugin to VibrationEffect from here
https://developer.android.com/reference/android/os/VibrationEffect
I get this error, and when I build apks (debug or release) and side install them, it fails to vibrate on two different android phones I've tested so far.
UPDATE: sorry! I was wrong. I was using HapticFeedback.vibrate(); Using this plugin worked perfectly now for me from the apk.
I'm also getting the deprecation warning.
This warning shouldn't affect anything because there is a check for API revision to support old Android versions. The only thing I can do is add @SuppressWarnings
to the method call. But I can only do it next week. Sorry for the inconvenience. The plugin should still work as expected.
This warning shouldn't affect anything because there is a check for API revision to support old Android versions. The only thing I can do is add
@SuppressWarnings
to the method call. But I can only do it next week. Sorry for the inconvenience. The plugin should still work as expected.
Cool
I am getting this warning when I run flutter:
Note: /usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/vibration-1.2.1/android/src/main/java/com/benjaminabel/vibration/VibrationPlugin.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.