[英]Mixpanel push notification text not getting enlarged on Android devices
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"}
通知會像這樣在 android 設備上彈出,但在向下拖動時不會放大
我在 Android 代碼中使用最新版本的 Mixpanel(v5.2.1)。 Mixpanel 在其庫中使用 BigStyle Text 通知,因此理想情況下,拖動時的單行通知應在拖動時放大。
你能告訴我這可能的原因嗎?
使用 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();
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.