handleAndroidNotification method

  1. @override
Future<void> handleAndroidNotification(
  1. Map<String, dynamic> body,
  2. String notificationIconPath
)
override

Implementation

@override
Future<void> handleAndroidNotification(Map<String, dynamic> body, String notificationIconPath) async {
  final ByteData data = await rootBundle.load(notificationIconPath);
  final Uint8List iconBytes = data.buffer.asUint8List();
  await methodChannel.invokeMethod('handlePushNotifications', {
    'body': body,
    'notificationIcon': iconBytes,
  });
}