Error

2021-08-07 07:39:34.998 9835-9835 FlutterJNI com.exam.testapp W Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel:flutterSide. Response ID: 12

Solution

Create a new Flutter engine instance and send message agai.