Skip to content

Deeplinks

Material Xray handles the mxray:// scheme. A tapped link opens the app and adds the subscription right away, with default settings.

mxray://add/<subscription URL>

Append the full subscription URL, scheme included, right after mxray://add/:

mxray://add/https://sub.example.com/abc123
Rule Detail
Scheme The embedded URL must start with https:// or http://. Plain HTTP won’t refresh unless the user allows insecure updates.
Encoding Don’t percent-encode the embedded URL. Its query string can stay as it is.
Share links Single vless:// (and other) links aren’t accepted here. Use a subscription URL.
Settings The subscription is added with the defaults: JSON first, Auto User-Agent, hourly refresh.
<a href="mxray://add/https://sub.example.com/abc123">Add to Material Xray</a>

Some browsers block custom-scheme redirects that the user didn’t tap, so use a visible button rather than a redirect.

Telegram’s URL buttons generally reject custom schemes. Link to an HTTPS page of yours that shows the mxray:// button, or send the deeplink as plain message text.

  • QR code: encode the plain subscription URL. The app’s scanner reads it directly.
  • Clipboard: users can paste the URL from Add new server or subscription → Paste from clipboard.