andreamainella98 / phone_state

Flutter plugin
BSD 3-Clause "New" or "Revised" License
9 stars 16 forks source link

W/FlutterJNI(16445): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: PHONE_STATE_STREAM. Response ID: 34 #18

Open SOG-web opened 1 year ago

SOG-web commented 1 year ago

Am using the [flutter_background_service](https://github.com/ekasetiawans/flutter_background_service) plugin

PhoneState.stream.listen((event) {
      if (event != null) {
        log(event.number.toString());
        service.invoke(
          'update',
          {
            "current_date": DateTime.now().toIso8601String(),
            "number": event.number,
          },
        );
      }
    });
word-x commented 1 year ago

We got the same issue. It only happend when we called Flutter method via MethodChannel and execute Accessibility action at the same time.


Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: channelFlutterSide. Response ID: 12