Skip to content

Commit c0e5110

Browse files
fix(notifications): Prevent notifications text from being truncated (#2856)
Co-authored-by: Matt Creaser <mattwcc@amazon.com>
1 parent c8bb1a6 commit c0e5110

File tree

1 file changed

+1
-0
lines changed
  • aws-push-notifications-pinpoint-common/src/main/java/com/amplifyframework/pushnotifications/pinpoint

1 file changed

+1
-0
lines changed

aws-push-notifications-pinpoint-common/src/main/java/com/amplifyframework/pushnotifications/pinpoint/PushNotificationsUtils.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ class PushNotificationsUtils(
135135
setPriority(NotificationCompat.PRIORITY_DEFAULT)
136136
setLargeIcon(largeImageIcon)
137137
setAutoCancel(true)
138+
setStyle(NotificationCompat.BigTextStyle().bigText(payload.body))
138139
}
139140

140141
with(NotificationManagerCompat.from(context)) {

0 commit comments

Comments
 (0)