AdguardTeam / AdguardTeam/AdguardForiOS

Feature Request: URL Scheme for managing System protection

未关闭
#1,700 3 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
Feature request P4: Low P4: P4: Low Priority: P4 TechAudit Version: ADGuard v4.6 [Reserved] Voting
主要语言
Swift
星标
1.7k
派生
240
PR 合并指标
30 天内没有已合并 PR

描述

### Problem Description

The current Today Extension* (non-iOS 14 widget) has the following issue. When the AdGuard DNS is active, once a VPN (non-Personal VPN) is turned on and turned off, the real status of AdGuard DNS is inactive, but in the Today Extension, it is always active status. In order to active AdGuard DNS, I have to enter the APP (via Today Extension or APP icon).

*AdGuard currently has only one type of "widget", the official name is Today Extension. I am now using iOS 14.2.

### Step to reproduce the issue

#### Method 1
- Turn on AdGuard DNS (via Today Extension or AdGuard APP)
- Kill AdGuard in the background
- Turn on any VPN (not the personal VPN type, you can find the type of your VPN in Settings - VPN)
- Turn off the VPN
- Check the status of AdGuard DNS in Control Center and Today Extension

#### Method 2 (without killing AdGuard)
- Turn on AdGuard DNS (via Today Extension or AdGuard APP)
- Turn on any VPN (not the personal VPN type, you can find the type of your VPN in Settings - VPN)
- Turn off the VPN
- Never switch to AdGuard APP
- Check the status of AdGuard DNS in Control Center and Today Extension

### Proposed Solution

I saw that there is already a feature request for iOS widgets. In addition of that feature, it would be much better that you create two URL Schemes for DNS switche like
- adguard://dnson
- adguard://dnsoff

Besides, you can also add two URL Schemes for Safari content blocker switcher.

With the proposed URL Schemes, I can create a 1*1 icon to active it only with one click. In addition, I can create some automation in Shortcut APP.

### Additional Information

For anyone who need the current URL Schemes, here is the list:
- adguard:// Open AdGuard APP
- abp:// Open AdGuard APP (?)
- snds:// Set custom DNS settings

贡献指南

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

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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