【发布时间】:2015-02-03 10:07:21
【问题描述】:
我正在使用 PushSharp 在 Android 上推送通知。但在 Android 通知中心,长消息被“...”修剪。 这是通知文本修剪的图像:
http://s10.postimg.org/3uoszl7cp/notification_Length.png
我的推送通知代码:
var push = new PushBroker();
push.RegisterGcmService(new GcmPushChannelSettings("API Key here"));
foreach (Device device in lstDevices)
{
push.QueueNotification(new GcmNotification().ForDeviceRegistrationId(device.Token)
.WithJson("{\"message\":\"" + NotificationMessage + "\",\"sound\":\"sound.caf\"}"));
}
有没有办法让通知文本换行而不修剪?
【问题讨论】:
标签: android notifications push-notification pushsharp