-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
package keyboard_visibility breaks with changing FlutterActivity to FlutterFragmentActivity #55750
Comments
Hi @kendall-lu
this is default when you create a new project with |
hey, thanks for replying. I forgot to mention I am developing on 3 different devices, iPhone 10, pixel 3A and a nexus 6. iPhone 10 works with local_auth (biometrics are available for device), nexus 6 does not have biometric capabilities, and pixel 3A has biometrics. Pixel 3A throws error when attempting to authenticate with fingerprint : E/flutter (19576): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: PlatformException(no_fragment_activity, local_auth plugin requires activity to be a FragmentActivity., null)
E/flutter (19576): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:569:7)
E/flutter (19576): #1 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:321:33)
E/flutter (19576): <asynchronous suspension>
E/flutter (19576): #2 LocalAuthentication.authenticateWithBiometrics (package:local_auth/local_auth.dart:95:27)
E/flutter (19576): #3 _LoginState.authenticateWithBiometrics.<anonymous closure> (package:myapp/login/login.dart:104:48)
E/flutter (19576): #4 new Future.delayed.<anonymous closure> (dart:async/future.dart:316:39)
E/flutter (19576): #5 _rootRun (dart:async/zone.dart:1122:38)
E/flutter (19576): #6 _CustomZone.run (dart:async/zone.dart:1023:19)
E/flutter (19576): #7 _CustomZone.runGuarded (dart:async/zone.dart:925:7)
E/flutter (19576): #8 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:965:23)
E/flutter (19576): #9 _rootRun (dart:async/zone.dart:1126:13)
E/flutter (19576): #10 _CustomZone.run (dart:async/zone.dart:1023:19)
E/flutter (19576): #11 _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:949:23)
E/flutter (19576): #12 Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:23:15)
E/flutter (19576): #13 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:384:19)
E/flutter (19576): #14 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:418:5)
E/flutter (19576): #15 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:174:12)
E/flutter (19576): |
Hi logs
while more logs```bash [ +2 ms] Flutter run key commands. [ +2 ms] r Hot reload. 🔥🔥🔥 [ +2 ms] R Hot restart. [ ] h Repeat this help message. [ +1 ms] d Detach (terminate "flutter run" but leave application running). [ +2 ms] c Clear the screen [ +2 ms] q Quit (terminate the application on the device). [ ] An Observatory debugger and profiler on Pixel 3a is available at: http://127.0.0.1:51176/2_jG3yZtbdk=/ [+10293 ms] I/flutter ( 1899): PlatformException(no_fragment_activity, local_auth plugin requires activity to be a FragmentActivity., null) [+9440 ms] DevFS: Deleting filesystem on the device (file:///data/user/0/com.example.master/code_cache/masterKEAOPT/master/) [ +31 ms] DevFS: Deleted filesystem on the device (file:///data/user/0/com.example.master/code_cache/masterKEAOPT/master/) [ +381 ms] Service protocol connection closed. [ ] Application finished. [ +5 ms] executing: /Users/nevercode/Library/Android/sdk/platform-tools/adb -s 965AY0WP5C forward --list [ +7 ms] Exit code 0 from: /Users/nevercode/Library/Android/sdk/platform-tools/adb -s 965AY0WP5C forward --list [ ] 965AY0WP5C tcp:51176 tcp:38115 [ +2 ms] executing: /Users/nevercode/Library/Android/sdk/platform-tools/adb -s 965AY0WP5C forward --remove tcp:51176 [ +12 ms] executing: /Users/nevercode/Library/Android/sdk/platform-tools/adb -s 965AY0WP5C forward --list [ +8 ms] Exit code 0 from: /Users/nevercode/Library/Android/sdk/platform-tools/adb -s 965AY0WP5C forward --list [ +2 ms] "flutter run" took 127,723ms. ```[✓] Flutter (Channel master, 1.18.0-9.0.pre.101, on Mac OS X 10.15.4 19E287, locale en-EE)
• Flutter version 1.18.0-9.0.pre.101 at /Users/nevercode/development/flutter_master
• Framework revision 17bbc2a235 (10 hours ago), 2020-05-03 17:34:02 -0400
• Engine revision 906bf59684
• Dart version 2.9.0 (build 2.9.0-5.0.dev c3ce873556)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/nevercode/Library/Android/sdk
• Platform android-29, build-tools 29.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.3.1, Build version 11C504
• CocoaPods version 1.9.0
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 3.6)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 45.1.1
• Dart plugin version 192.7761
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
[✓] VS Code
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.9.1
[✓] Connected device (3 available)
• Pixel 3a • 965AY0WP5C • android-arm64 • Android 10 (API 29)
• Web Server • web-server • web-javascript • Flutter Tools
• Chrome • chrome • web-javascript • Google Chrome 81.0.4044.129
• No issues found! the issue likely depends from the 3rd party plugin keyboard_visibility you might want to open an issue in the dedicated github Closing, as this isn't an issue with Flutter itself, |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Keyboard_visibility, https://pub.dev/packages/keyboard_visibility breaks, with the integration of local_auth, https://pub.dev/packages/local_auth breaks keyboard listeners.
Steps to reproduce:
Breaking code:
Logs for local_auth:
flutter doctor -v
The text was updated successfully, but these errors were encountered: