AdguardTeam / AdguardTeam/AdguardForAndroid

Add Optional minimal foreground notification for Android

未关闭
#5,977 9 条评论 6 个 reaction 已指派 0 人 在 GitHub 查看
Feature request Priority: P4 TechAudit Voting
主要语言
没有语言数据
星标
1.9k
派生
121
PR 合并指标
30 天内没有已合并 PR

描述

### Issue Details

AdGuard runs as a foreground VPN service, so it must show a persistent notification.
However, the current notification is large, interactive (Disable / Assistant buttons), and displays live stats. This makes it easy for users to accidentally disable filtering or interfere with the service, especially on family, managed, or non-technical user's devices.
Android does not require foreground notifications to be large or interactive — this is a UX choice.

### Proposed solution

Add an opt-in “Minimal foreground notification” mode for the VPN foreground service that uses the smallest, least intrusive notification Android allows.

The minimal notification should use:

- Dedicated NotificationChannel with IMPORTANCE_MIN
- No sound, vibration, badge, or lock-screen visibility
- setOngoing(true) (non-dismissable)
- setSilent(true) and setOnlyAlertOnce(true)
- No PendingIntent (tap does nothing)
- No action buttons, no expanded layout, no counters or stats
- Notification.CATEGORY_SERVICE

Example display:

> AdGuard — Protection active

This keeps the VPN service alive while making the notification effectively invisible and non-interactive.

This is functionally equivalent to WireGuard/Tailscale “VPN active” style notifications.

### Alternative solution

Allow disabling stats and action buttons on the existing notification, but a dedicated minimal notification channel is preferred for clean separation and correct Android behavior.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。