ProtonVPN / ios-mac-app

Official ProtonVPN iOS and macOS app
GNU General Public License v3.0
316 stars 76 forks source link

"protonvpn://" protocol Docs #15

Open lafkpages opened 1 year ago

lafkpages commented 1 year ago

We are happy to answer your questions about the code or discuss technical ideas.

Please complete the following checklist (by adding [x]):


I have found that the app registers a protocol handler for protonvpn://. I was wondering if this supports any specific URL patterns to perform different actions in the app, and I have searched for documentation but haven't found any.

So does anyone know if this protocol supports any links for connecting, disconnecting, opening settings, etc?

midnight-madman commented 1 year ago

I've found https://github.com/ProtonVPN/ios-mac-app/blob/13dd8c218724837bca0dea6b2f54f2b4c7c55963/apps/macos/ProtonVPN/Scenes/Common/Services/InAppLinkManager.swift in the code.

As far as I understand it only allows the path: protonvpn://settings/connection which didn't work for me. Any other path e.g. protonvpn://test didn't show an error or any response from the app.