From d50f0ec9b5f74b6e4ea17ec88d2facdb709671b5 Mon Sep 17 00:00:00 2001 From: jamilsaade97 Date: Thu, 20 Jun 2024 14:39:03 +0300 Subject: [PATCH] [aws-push-notifications-pinpoint-common] Handle push notification content when it's a long text --- .../pushnotifications/pinpoint/PushNotificationsUtils.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/aws-push-notifications-pinpoint-common/src/main/java/com/amplifyframework/pushnotifications/pinpoint/PushNotificationsUtils.kt b/aws-push-notifications-pinpoint-common/src/main/java/com/amplifyframework/pushnotifications/pinpoint/PushNotificationsUtils.kt index 58483d375f..70b4bc5f30 100644 --- a/aws-push-notifications-pinpoint-common/src/main/java/com/amplifyframework/pushnotifications/pinpoint/PushNotificationsUtils.kt +++ b/aws-push-notifications-pinpoint-common/src/main/java/com/amplifyframework/pushnotifications/pinpoint/PushNotificationsUtils.kt @@ -135,6 +135,7 @@ class PushNotificationsUtils( setPriority(NotificationCompat.PRIORITY_DEFAULT) setLargeIcon(largeImageIcon) setAutoCancel(true) + setStyle(NotificationCompat.BigTextStyle().bigText(payload.body)) } with(NotificationManagerCompat.from(context)) {