isCobrowseNotification method
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;
}