【问题标题】:Android PushSharp Notification message trimmingAndroid PushSharp Notification 消息修剪
【发布时间】: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


    【解决方案1】:

    这是在android应用程序代码中处理的,开发者决定在通知中显示多少文本以及如何处理长文本,你不能从你的代码中做到这一点

    【讨论】:

      猜你喜欢
      • 2010-09-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-06-12
      • 2020-09-11
      • 2014-04-16
      • 2016-08-22
      • 1970-01-01
      相关资源
      最近更新 更多