Android和iOS推送通知中可显示的最大字符数是多少? [英] What is the maximum number of characters that can be displayed in Android and iOS push notification?

查看:2381
本文介绍了Android和iOS推送通知中可显示的最大字符数是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android中推送通知中可以显示的最大字符数是多少而没有文本被截断?

What is the maximum number of characters that can be displayed in push notification in Android without the text being truncated?

iPhone的文档说明通知有效负载已包含总共不到256个字节,但我无法找到类似Android的东西。

The documentation for iPhone states that the notification payload has to be under 256 bytes in total, but I was unable to find something similar for Android.

推荐答案

Android



Firebase云消息传递(FCM)中的邮件大小限制为4千字节。
https: //firebase.google.com/docs/cloud-messaging/concept-options#notification-messages-with-optional-data-payload

Android

The message size limit in Firebase Cloud Messaging (FCM) is 4 kbytes. https://firebase.google.com/docs/cloud-messaging/concept-options#notification-messages-with-optional-data-payload

https://firebase.google.com/docs/cloud-messaging/server #choose

https://firebase.google.com/docs/cloud-messaging/server#choose

GCM 中的邮件大小限制为4千字节。 (已弃用)
https://developer.android.com/google /gcm/server.html#params

The message size limit in GCM is 4 kbytes. (DEPRECATED) https://developer.android.com/google/gcm/server.html#params

C2DM 中的邮件大小限制为1024字节。 (已弃用)
https://developers.google.com/android/c2dm/ #limitations

The message size limit in C2DM is 1024 bytes. (DEPRECATED) https://developers.google.com/android/c2dm/#limitations

对于常规远程通知,最大大小为4KB(4096字节)

https://developer.apple.com/library/content/documentation/NetworkingInternet /Conceptual/RemoteNotificationsPG/CreatingtheNotificationPayload.html

由于iOS 8的引入已改为 2 kbytes

Since the introduction of iOS 8 has changed to 2 kbytes!

https://forums.aws.amazon.com/ann.jspa?annID=2626


Wit h iOS 8 ,Apple推出了一些新功能,可为移动推送通知启用一些新的
用例 - 交互式推送
通知,第三方小部件和更大(2 KB)有效负载。今天,
我们很高兴地宣布支持iOS 8宣布的新移动推送
功能。我们正在发布一个新的iOS 8
示例应用程序,演示如何实现这些新功能
与SNS,并且还实现了对更大的2KB有效载荷的支持。

With iOS 8, Apple introduced new features that enable some rich new use cases for mobile push notifications — interactive push notifications, third party widgets, and larger (2 KB) payloads. Today, we are pleased to announce support for the new mobile push capabilities announced with iOS 8. We are publishing a new iOS 8 Sample App that demonstrates how these new features can be implemented with SNS, and have also implemented support for larger 2KB payloads.

在iOS中,大小限制为256字节

这篇关于Android和iOS推送通知中可显示的最大字符数是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆