flutter_background_service icon indicating copy to clipboard operation
flutter_background_service copied to clipboard

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

Open SOG-web opened this issue 1 year ago • 0 comments

Am using the phone_state plugin

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

SOG-web avatar Jul 15 '23 19:07 SOG-web