Ayush783 / readsms_plugin

Flutter plugin for reading sms on Android.
https://pub.dev/packages/readsms
MIT License
6 stars 10 forks source link

"FATAL EXCEPTION" on Closing the app #2

Closed devshahinpb closed 6 months ago

devshahinpb commented 1 year ago

Hello Fatal Exception happen when closing the app by "back button" not closing immediately from "Recent App" in Android 6 the message:

E/AndroidRuntime(15300): FATAL EXCEPTION: main kotlin.NotImplementedError: An operation is not implemented: Not yet implemented E/AndroidRuntime(15300): at com.ayush783.readsms.ReadsmsPlugin.onDetachedFromActivity(ReadsmsPlugin.kt:78) E/AndroidRuntime(15300): at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.detachFromActivity(FlutterEngineConnectionRegistry.java:385) E/AndroidRuntime(15300): at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onDetach(FlutterActivityAndFragmentDelegate.java:690) E/AndroidRuntime(15300): at io.flutter.embedding.android.FlutterFragment.onDetach(FlutterFragment.java:892) E/AndroidRuntime(15300): at androidx.fragment.app.Fragment.performDetach(Fragment.java:3229)

devshahinpb commented 1 year ago

I think it's resolved I just commented "line 78" in the file "ReadsmsPlugin.kt". And the error didn't show again

Ayush783 commented 8 months ago

sorry for the delay. would you like to create a PR and I will review it

Ayush783 commented 6 months ago

fixed in version 0.1.0+3