handleNotificationOpen method

  1. @override
Future<bool> handleNotificationOpen(
  1. Map<String, dynamic> data
)
override

Record a tap on a Grovs push notification

Implementation

@override
Future<bool> handleNotificationOpen(Map<String, dynamic> data) async {
  try {
    final result = await methodChannel.invokeMethod<bool>(
      'handleNotificationOpen',
      {'data': data},
    );
    return result ?? false;
  } on PlatformException catch (e) {
    throw GrovsException(
      e.message ?? 'Failed to handle notification open',
      code: e.code,
    );
  }
}