handlePushNotification static method

Future<void> handlePushNotification({
  1. required Map<String, dynamic> data,
})

handlePushNotification

Handles a push notification

Available Platforms

Web, Android, iOS

Implementation

static Future<void> handlePushNotification({
  required Map<String, dynamic> data,
}) async {
  if (!kIsWeb && !io.Platform.isAndroid && !io.Platform.isIOS) {
    debugPrint(
      'handlePushNotification is not available for current operating system',
    );
    return;
  }

  await _channel.invokeMethod('handlePushNotification', {
    'data': data,
  });
}