android icon indicating copy to clipboard operation
android copied to clipboard

Missing Timestamp in Gotify Notifications on HyperOS (Redmi K70 Ultra)

Open minemine-m opened this issue 5 months ago • 3 comments

Here’s the updated bug report in English with the Redmi K70 Ultra device model specified:


Bug Report: Missing Timestamp in Gotify Notifications on HyperOS (Redmi K70 Ultra)

Environment

  • Device: Redmi K70 Ultra
  • OS: HyperOS 2.0
  • Gotify Version: Android Client v2.8.1 / Server v2.6.1 (example)
  • Reproducibility: Consistent

Description

On Redmi K70 Ultra (HyperOS 2.0), Gotify notifications only display the timestamp when the message contains line breaks (\n). Single-line messages show no timestamp, reducing usability for brief alerts.

Steps to Reproduce

  1. Send a single-line message via Gotify API:

    curl "http://gotify-server/message?token=XXX" -F "message=Test message" -F "priority=5"
    

    No timestamp appears in the notification.

  2. Send a multi-line message:

    curl "http://gotify-server/message?token=XXX" -F "message=Line 1\nLine 2" -F "priority=5"
    

    Timestamp is displayed (e.g., "19:45").

Expected Behavior

  • Timestamp should appear regardless of line breaks.

Actual Behavior

  • Single-line messagesNo timestamp
  • Multi-line messagesTimestamp visible

Possible Cause

HyperOS may apply different notification templates based on message length/formatting, causing Gotify’s timestamp to be hidden in single-line notifications.

Workaround

Manually add a line break (\n) to force timestamp visibility:

curl "http://gotify-server/message?token=XXX" -F "message=Alert\n" -F "priority=5"

Additional Notes

  • Issue persists across reboots & reinstalls.
  • Other Xiaomi/HyperOS devices may be affected.

Would appreciate any insights or fixes from the Gotify/HyperOS teams. Thanks!


minemine-m avatar Jul 14 '25 11:07 minemine-m

Please show a screenshot with both multi-line and single line messages.

jmattheis avatar Jul 14 '25 15:07 jmattheis

Details

Image

Image Image

minemine-m avatar Jul 15 '25 01:07 minemine-m

IMO this seems like a feature. While it's possible to add a trailing slash, it could worsen the display of notifications on other devices. On my Pixel 8 trailing newlines are ignored.

If more users have a problem with this, it maybe could be fixed in gotify, but with only one report I don't think it's worth the effort to maintain this specific OS fix.

jmattheis avatar Jul 19 '25 16:07 jmattheis