flutter_compass
flutter_compass copied to clipboard
Fix #36: Unregister listeners when detaching engine
By setting developer options "Don't keep activities" to true, it is possible to always see logcat entries like below:
Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: hemanthraj/flutter_compass. Response ID: 0
Unregistering listeners when the engine gets detached