hemanthrajv / flutter_compass

MIT License
101 stars 170 forks source link

Fix #36: Unregister listeners when detaching engine #76

Closed marcotta closed 1 year ago

marcotta commented 2 years ago

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