getDefaultNotificationUri method

  1. @override
Future<String?> getDefaultNotificationUri()
override

This method is used to get the default notification sound URI.

Implementation

@override
Future<String?> getDefaultNotificationUri() async {
  String? uri = FlyConstants.empty;
  try {
    uri = await mirrorFlyMethodChannel
        .invokeMethod<String?>('getDefaultNotificationUri');
    return uri;
  } on PlatformException catch (e) {
    LogMessage.d("Platform Exception =", " $e");
    rethrow;
  } on Exception catch (error) {
    LogMessage.d("Exception ", " $error");
    rethrow;
  }
}