mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #1567] Messages written in Cyrillic are truncated #1103
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#1103
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ACheshirov on GitHub (Jan 24, 2026).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1567
🐞 Describe the bug
For some reason, when I send messages in cyrillic, they often appear truncated in the Android app.
💻 Components impacted
Android app
💡 Screenshots and/or logs
Sometimes they are truncated after 200-300 characters, and sometimes after more, even though the official specification states that messages up to 4096 bytes should be supported.
I provide an example of a message that should be 2295 bytes long.
One screenshot is from the browser, and the other is from the Android app.
The browser
The Android app
@binwiederhier commented on GitHub (Jan 24, 2026):
Fascinating. Can you paste an example text
@ACheshirov commented on GitHub (Jan 25, 2026):
Sure. That's the text from the example:
"За мен въпросът с регистрацията на партия е малко рискован, защото може да не стигне времето за регистрация. Вероятно имат готовност да минат през някакви други готови партии, това обаче всичкото е технология. Важното е, че Радев е човекът, който е гарантът за всичко това и той го избира. И точно затова ние всичките сме много внимателни в говоренето, защото той трябва да определи мястото на всеки един от нас", подчертава той.
При напускането на президентството вчера Румен Радев подчерта "не могат да спрат вълната". По този въпрос Кутев отбеляза: "Безспорно той ще вдигне вълна, но дали ще е 300 000, 500 000 или 800 000 е изключително важно. Защото това всъщност ще доведе до резултат до каква степен ние можем да обезсмислим контролирания вот, купуването на гласове и т.н. Обемът на вълната никой от нас не знае какъв е. Радев според мен се появява в момента в политиката като абсолютната алтернатива на модела. Само че като кажем, че е алтернатива на модела, това е клише, кой е този модел? За мен този модел е някаква смесица от корупция, безгръбначност и от заместване на истинските стойности, от арогантност. Новото е, че с поведението си Радев е показал, че е алтернатива на безгръбначността, на сглобката, на безпринципността", добави бившият съветник на Румен Радев.
@binwiederhier commented on GitHub (Jan 25, 2026):
Workaround: Enable instant delivery for the topic.
This is definitely a bug. Thank you for reporting.
It's fascinating that it took sooo long to be reported. I haven't fully figured out why, but I am writing some tests to test why the cyrillic test is truncated while other text is not.
This all centers around the fact that Firebase (FCM) does not allows sending messages longer than 4KB, so we have to truncate some of them. Also, we send the message body twice because APNS requires that.
Cyrillic also uses 2 bytes per character, so the text can generally be shorter than ASCII text.
@ACheshirov commented on GitHub (Jan 25, 2026):
Yes, actually, enabling instant delivery fixes it, but I'll still wait until you add the bug fix.
I don't really need instant delivery, as far as I know, it will likely consume my battery a bit faster, right?
@binwiederhier commented on GitHub (Jan 25, 2026):
It strongly depends on the phone. On my phone (OnePlus) and most people's phones it's not a lot of battery. I don't notice a difference. Maybe 1-2%.
Some people have real issues with 20-30% battery usage.
@binwiederhier commented on GitHub (Jan 25, 2026):
It not an easy fix and it may take weeks. So don't hold your breath haha
@ACheshirov commented on GitHub (Jan 26, 2026):
Oh, I've known about this bug for months, I was just too lazy to report it..
I can probably handle a few more weeks. :D
@stadid commented on GitHub (Feb 11, 2026):
@binwiederhier
Also interested in fixing this bug.
So, if you have time please kindly put some resources in fixing it. Thank you!