isCobrowseNotification method

  1. @override
  2. @android
Future<bool> isCobrowseNotification(
  1. Map<String, String>? data
)
override

Tests whether a push notification was generated by Cobrowse. Returns true if it looks like a Cobrowse notification.

Implementation

@override
@TargetPlatform.android
Future<bool> isCobrowseNotification(Map<String, String>? data) async {
  bool? rvalue;
  try {
    rvalue = await methodChannel.invokeMethod<bool>(
        'isCobrowseNotification', data);
  } on PlatformException catch (e) {
    print('Cannot check the notification: $e');
  }
  return rvalue ?? false;
}