AdguardTeam / AdguardTeam/AdguardForAndroid

Add Optional minimal foreground notification for Android

オープン
#5,977 コメント 9 件 リアクション 6 件 担当者 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 を短くまとめたダイジェスト。