Skip to content
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

App crash on First installation #91

Closed
rubab-azim opened this issue Jan 16, 2023 · 0 comments
Closed

App crash on First installation #91

rubab-azim opened this issue Jan 16, 2023 · 0 comments

Comments

@rubab-azim
Copy link

rubab-azim commented Jan 16, 2023

The app crashes on Android 13 just on the first installation after it works perfectly fine.
the actual crash happens at line
var tag = await FlutterNfcKit.poll(timeout: const Duration(seconds: 15));
these are what logs look like.
E/AndroidRuntime(14026): FATAL EXCEPTION: Thread-7
E/AndroidRuntime(14026): Process: com[package name] PID: 14026
E/AndroidRuntime(14026): java.lang.IllegalStateException: activity is already destroyed
E/AndroidRuntime( 7425): at im.nfc.flutter_nfc_kit.FlutterNfcKitPlugin.pollTag(FlutterNfcKitPlugin.kt:319)
E/AndroidRuntime( 7425): at im.nfc.flutter_nfc_kit.FlutterNfcKitPlugin.access$pollTag(FlutterNfcKitPlugin.kt:31)
E/AndroidRuntime( 7425): at im.nfc.flutter_nfc_kit.FlutterNfcKitPlugin$handleMethodCall$1.invoke(FlutterNfcKitPlugin.kt:112)
E/AndroidRuntime( 7425): at im.nfc.flutter_nfc_kit.FlutterNfcKitPlugin$handleMethodCall$1.invoke(FlutterNfcKitPlugin.kt:111)
E/AndroidRuntime( 7425): at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:30)
I/Process ( 7425): Sending signal. PID: 7425 SIG: 9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant