showMessenger method

  1. @override
Future<bool> showMessenger()
override

Open the messaging UI if available on the native SDK.

This method displays the Dimelo messaging interface to the user. Make sure to call initialize first.

Returns true if the messenger was shown successfully, false otherwise.

Implementation

@override
Future<bool> showMessenger() async {
  try {
    final result = await methodChannel.invokeMethod<bool>('showMessenger');
    return result ?? false;
  } on PlatformException catch (e) {
    debugPrint('Failed to show messenger: ${e.message}');
    return false;
  }
}