Mixpanel的帐户详情:
maaz.shaikh@bwellthy.com
Notification text: Hey {{USER_NICK_NAME}}, you can check your HbA1c test result by clicking on it, then click GET STARTED to start your journey with us.
Notification custom packet: { "mp_icnm_l": "app_logo", "mp_icnm_w": "notification_logo", "mp_color": "#FF7531", "sound": "yes", "vibrate": "yes"}
The notification pops up on android device like this, but does not enlarge on dragging it downwards
我在Android代码中使用最新版本的Mixpanel(v5.2.1)。 Mixpanel在他们的库中使用BigStyle Text通知,因此理想情况下拖动时的单行通知应该在拖动时放大。
你能告诉我可能的原因吗?
答案 0 :(得分:1)
使用BigTextStyle在通知中设置大文字。
Notification notification = 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();