Question:
What is the number of characters that I can put in a push notification? What is the number of displayed symbols?
Answer:
Our service does not limit the number of characters used in pushes, however, there are limits for push payload size determined by Google and Apple — 4096 bytes (in iOS 8 and lower, the maximum size allowed for a notification payload is 2048 bytes [1]).
As for the limit of displayed symbols, here are the results for iOS and Android platforms:
Android 12(vanilla/stock)
- Collapsed notification: body - 43 characters(1 line), header - 39 characters(1 line)
- Extended notification: body - 504 characters(10 lines), header - 79 characters(2 lines)
- Notification with banner(image): body - 96 characters(2 lines), header -79 characters(2 lines)
It should be emphasized that the number of lines depends on the Android version and specific layout(launcher) used by the device manufacturer such as Samsung OneUI, Sony XPERIA UI, Huawei EMUI, Xiaomi MiUI, Color OS, Oxygen OS, Flyme OS, etc.
iOS - 4 lines limit(178 characters).
However, an important feature is that on iOS you can extend notification with Force Touch with the possibility to scroll through the received text.
Below, you can find screenshots that show how this will look on the device:
Comments
0 comments
Please sign in to leave a comment.