Future<void>
showBigPictureNotification(- Map<String, dynamic> pinpointMessage
)
Implementation
Future<void> showBigPictureNotification(Map<String, dynamic> pinpointMessage) async {
LogManager().addLog("showBigPictureNotification()", screen: runtimeType.toString());
final String largeIconPath = await _downloadAndSaveFile(pinpointMessage["pinpoint.notification.imageIconUrl"], 'largeIcon');
final String bigPicturePath = await _downloadAndSaveFile(pinpointMessage["pinpoint.notification.imageUrl"], 'bigPicture');
final BigPictureStyleInformation bigPictureStyleInformation = BigPictureStyleInformation(FilePathAndroidBitmap(bigPicturePath),
largeIcon: FilePathAndroidBitmap(largeIconPath),
contentTitle: '<b>${pinpointMessage["pinpoint.notification.title"]}</b>',
htmlFormatContentTitle: true,
summaryText: '${pinpointMessage["pinpoint.notification.body"]}',
htmlFormatSummaryText: true);
final AndroidNotificationDetails androidPlatformChannelSpecifics =
AndroidNotificationDetails('big text channel id', 'big text channel name', channelDescription: 'big text channel description', styleInformation: bigPictureStyleInformation);
final NotificationDetails platformChannelSpecifics = NotificationDetails(android: androidPlatformChannelSpecifics);
await flutterLocalNotificationsPlugin.show(
pinpointMessage["pinpoint.campaign.campaign_id"].hashCode, pinpointMessage["pinpoint.notification.title"], pinpointMessage["pinpoint.notification.body"], platformChannelSpecifics);
}