Answer the question
In order to leave comments, you need to log in
Why are push notifications incomplete?
Good afternoon!
Push notifications sent are displayed incompletely (20-30 characters maximum). The problem is typical only for android (on IOS everything is fine).
What can be done to achieve the correct display?
The problem is diagnosed on all android devices.
Answer the question
In order to leave comments, you need to log in
To display, use Notification.BigTextStyle
It is done like this:
Notification notif = new Notification.Builder(mContext)
.setContentTitle("New mail from " + sender.toString())
.setContentText(subject)
.setSmallIcon(R.drawable.new_mail)
.setLargeIcon(aBitmap)
.setStyle(new Notification.BigTextStyle()
.bigText(aVeryLongString))
.build();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question