handleAndroidNotification method
Future<void>
handleAndroidNotification(
- Map<String, dynamic> body,
- 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,
});
}