Finb / bark-server

Backend of Bark
https://bark.day.app
MIT License
2.56k stars 408 forks source link

4Kb最终实际剩余文本推送大小是多少? #234

Closed QYG2297248353 closed 3 months ago

QYG2297248353 commented 1 year ago

A basic remote notification payload includes Apple-defined keys and their custom values. You may also add custom keys and values specific to your notifications. 基本的远程通知有效负载包括 Apple 定义的键及其自定义值。您还可以添加特定于您的通知的自定义键和值。 Apple Push Notification service (APNs) refuses a notification if the total size of its payload exceeds the following limits: 如果有效负载的总大小超过以下限制,Apple 推送通知服务 (APN) 将拒绝通知:

For Voice over Internet Protocol (VoIP) notifications, the maximum payload size is 5 KB (5120 bytes). 对于 Internet 协议语音 (VoIP) 通知,最大负载大小为 5 KB(5120 字节)。

For all other remote notifications, the maximum payload size is 4 KB (4096 bytes). 对于所有其他远程通知,最大负载大小为 4 KB(4096 字节)。

官方文档