Bluemix 推送通知消息在系统通知显示中被截断

Bluemix push notification message gets truncated in the system notification display

我正在开发一个使用 Bluemix 推送通知的应用程序。但是当应用程序未启动时,另一台设备发送通知。 phone 确实在系统通知中显示推送通知,即从顶部向下滑动时的通知列表。但是消息被截断为仅第一行。 如何显示推送通知的完整负载?

谢谢和最诚挚的问候

根据通知类型,iOS 推送通知似乎有字符限制。这些值可以在类似的 Whosebug 问题中看到:

What is the maximum length of a Push Notification alert text?

Alerts: Prior to iOS 7 the alerts display limit was 107 characters. Bigger messages were truncated and you would get a "..." at the end of the displayed message. With iOS 7 the limit seems to be increased to 235 characters. If you go over 8 lines your message will also get truncated.

Banners: Banners get truncated around 62 characters or 2 lines.

Notification Center: The messages in notification center get truncated around 110 characters or 4 lines.

Lock Screen: Same as notification center.

我还建议进一步查看 Apple 提供的推送通知文档:

Apple Push Notification Service