Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Feature Request: Allow dynamic Notification Grouping via message 'extras' (Topic-based grouping)

Đang mở
#427 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
42/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
android, java
Lĩnh vực
mobile

Hướng nghiên cứu

Bắt đầu bằng cách lần theo entry point xây dựng thông báo Android và cách phân tích message extras. Kiểm tra hành vi nhóm mặc định hiện có, sau đó xác minh giá trị client::notification::group được đề xuất và fallback của nó khi không có giá trị này. Hoàn tất khi các thông báo được nhóm sử dụng giá trị được cung cấp mà không thay đổi hành vi mặc định hiện tại.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

a:feature good first issue

Is your feature request related to a problem? Please describe.
Currently, all notifications from Gotify are bundled into a single "Gotify" group in the Android notification shade, regardless of which "Application" (Token) sent them.

While issue #187 mentions that native notification grouping is supported, it appears to rely on Android's default behavior, which merges all messages from the app into a single list.

As shown in the screenshot below, I have "Dryer" alerts and "TrueNAS" alerts. Even though they come from separate Applications (different tokens, different priorities, different sounds), they are flat-listed under one main "Gotify" group. There is no way to distinguish or dismiss just the "Dryer" group without expanding the entire list.

Image

Describe the solution you'd like
I would like to support Topic/Channel-based Grouping by passing a group ID via the message extras.

If the Android client sees a group key in the payload, it should use that string as the setGroup() key when building the notification.

Proposed Payload:

{
  "message": "Cycle Complete",
  "title": "Dryer",
  "priority": 5,
  "extras": {
    "client::notification": {
      "group": "laundry"
    }
  }
}

Proposed Logic:

Check extras for client::notification::group.

If present, use that value for notificationBuilder.setGroup("laundry").

If absent, fallback to current behavior (default app grouping).

Additional Context This logic is similar to how the Home Assistant companion app allows users to specify a group tag to keep "Security" alerts separate from "Laundry" alerts in the notification shade. This would make Gotify significantly more powerful for users monitoring multiple distinct systems without relying on the default app-wide bundle.

Ngôn ngữ chính
Java
Star
1.5k
Fork
218
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của gotify/android

Tất cả issue của gotify/android

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.