Mixpanel 推送通知文本在 Android 台设备上未放大
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"}
The notification pops up on android device like this, but does not enlarge on dragging it downwards
我在 Android 代码中使用最新版本的 Mixpanel(v5.2.1)。
Mixpanel 在他们的库中使用 BigStyle 文本通知,因此理想情况下,拖动时的单行通知应该在拖动时放大。
你能告诉我这可能的原因吗?
使用 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();
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 文本通知,因此理想情况下,拖动时的单行通知应该在拖动时放大。
你能告诉我这可能的原因吗?
使用 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();