AdguardTeam / AdguardForiOS

The most advanced ad blocker for iOS
https://adguard.com/
GNU General Public License v3.0
1.44k stars 202 forks source link

Feature Request: URL Scheme for managing System protection #1700

Open MoienBowen opened 3 years ago

MoienBowen commented 3 years ago

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

Method 2 (without killing AdGuard)

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

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:

zzebrum commented 3 years ago

@n00d1e5 it looks like a bug to me, I create a different issue for that 👌

MoienBowen commented 3 years ago

@n00d1e5 it looks like a bug to me, I create a different issue for that 👌

Since I now using iOS 14 with the widgets, I am sure that there is somehow a kind of limitation of the widgets (e.g. background refresh limitation). Hence, I think it might be the same for old-style Today Extension.

Anyway, with the widgets in iOS 14, all body knows that we can no more "control" or "trigger" any action. Hence, it can only show information or launch the relevant APP...

In this case, the URL Scheme is much more useful. Additionally, it saves much more spaces which is 4 icons maximum instead of a 2*4 Today Extension.

MoienBowen commented 3 years ago

Here is the official document: https://developer.apple.com/documentation/xcode/defining-a-custom-url-scheme-for-your-app

And one example of the usage of URL scheme from Pythonista: https://omz-software.com/pythonista/docs/ios/urlscheme.html

It is really a modern and simple way to use the functions of an app.