[GH-ISSUE #5001] [Bug]: shadowrocket subscription not working! #3519

Closed
opened 2026-10-31 20:33:01 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @harryngne on GitHub (Jun 6, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5001

Describe the bug

When u press to button Ios on subscription page and click to shadowrocket , it not working!

How to reproduce the problem

  1. Open subscription page
  2. click to ios on the bottom
  3. Then select Shadowrocket and move to the app, nothing change!

Expected behavior

No response

Actual behavior

No response

Relevant logs


Screenshots

No response

3x-ui version

3.2.8

Xray-core version

No response

How did you install 3x-ui?

install.sh script

Operating system

Ubuntu 24.04

Which parts of the panel are affected?

Frontend (UI / panel pages), Backend (API endpoints, login, settings)

Browser (only if it is a UI bug)

No response

Is the panel behind a reverse proxy or CDN?

None

Before submitting

  • I searched existing issues and this bug has not been reported.
  • I am running the latest released version of 3x-ui (or have verified the bug still exists on it).
  • This bug report is written in English.
  • I have redacted any sensitive data (tokens, real domains, client UUIDs).
Originally created by @harryngne on GitHub (Jun 6, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5001 ### Describe the bug When u press to button Ios on subscription page and click to shadowrocket , it not working! ### How to reproduce the problem 1. Open subscription page 2. click to ios on the bottom 3. Then select Shadowrocket and move to the app, nothing change! ### Expected behavior _No response_ ### Actual behavior _No response_ ### Relevant logs ```shell ``` ### Screenshots _No response_ ### 3x-ui version 3.2.8 ### Xray-core version _No response_ ### How did you install 3x-ui? install.sh script ### Operating system Ubuntu 24.04 ### Which parts of the panel are affected? Frontend (UI / panel pages), Backend (API endpoints, login, settings) ### Browser (only if it is a UI bug) _No response_ ### Is the panel behind a reverse proxy or CDN? None ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this bug has not been reported. - [x] I am running the latest released version of 3x-ui (or have verified the bug still exists on it). - [x] This bug report is written in English. - [x] I have redacted any sensitive data (tokens, real domains, client UUIDs).
bsakaguchi 2026-10-31 20:33:01 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@github-actions[bot] commented on GitHub (Jun 6, 2026):

Thanks for the report. This is a confirmed bug in the current source.

Root cause: The Shadowrocket deep-link URL is generated with a missing :// after sub in frontend/src/pages/sub/SubPage.tsx (line 125):

// Current (broken):
return `shadowrocket://add/sub/${base64Url}?remark=${remark}`;

// Correct format:
return `shadowrocket://add/sub://${base64Url}?remark=${remark}`;

Shadowrocket's deep-link scheme for importing a subscription is shadowrocket://add/sub://BASE64_ENCODED_URL. Without the :// after sub, the app opens but cannot parse the embedded subscription URL, so nothing is imported.

This was also reported in #3945 (closed in v3.1.0 but the fix was never applied — confirmed still broken in v3.2.0 by that issue's reporter, and still present in the current v3.2.8 source).

Workaround until a fix is released: Copy the plain subscription URL (the green SUB link on the subscription page) and paste it manually into Shadowrocket via Add Configuration → Subscribe inside the app.

<!-- gh-comment-id:4637761634 --> @github-actions[bot] commented on GitHub (Jun 6, 2026): Thanks for the report. This is a confirmed bug in the current source. **Root cause:** The Shadowrocket deep-link URL is generated with a missing `://` after `sub` in `frontend/src/pages/sub/SubPage.tsx` (line 125): ```js // Current (broken): return `shadowrocket://add/sub/${base64Url}?remark=${remark}`; // Correct format: return `shadowrocket://add/sub://${base64Url}?remark=${remark}`; ``` Shadowrocket's deep-link scheme for importing a subscription is `shadowrocket://add/sub://BASE64_ENCODED_URL`. Without the `://` after `sub`, the app opens but cannot parse the embedded subscription URL, so nothing is imported. This was also reported in #3945 (closed in v3.1.0 but the fix was never applied — confirmed still broken in v3.2.0 by that issue's reporter, and still present in the current v3.2.8 source). **Workaround until a fix is released:** Copy the plain subscription URL (the green **SUB** link on the subscription page) and paste it manually into Shadowrocket via **Add Configuration → Subscribe** inside the app.
Author
Owner

@MHSanaei commented on GitHub (Jun 6, 2026):

Fixed in 668c0922.

Root cause: the Shadowrocket button was feeding URL-safe base64 (- / _ with stripped padding) into shadowrocket://add/sub/, but Shadowrocket decodes that path segment as standard base64 and rejects - and _. So whenever the encoded sub URL contained any +, /, or = (most do), the import silently failed — hence 'nothing changes'. The other iOS apps don't base64-encode through this path, which is why only Shadowrocket broke.

The fix restores plain standard base64 (btoa output), exactly as originally shipped in #3489. Will land in the next release.

<!-- gh-comment-id:4638332425 --> @MHSanaei commented on GitHub (Jun 6, 2026): Fixed in 668c0922. Root cause: the Shadowrocket button was feeding URL-safe base64 (- / _ with stripped padding) into shadowrocket://add/sub/<blob>, but Shadowrocket decodes that path segment as standard base64 and rejects - and _. So whenever the encoded sub URL contained any +, /, or = (most do), the import silently failed — hence 'nothing changes'. The other iOS apps don't base64-encode through this path, which is why only Shadowrocket broke. The fix restores plain standard base64 (btoa output), exactly as originally shipped in #3489. Will land in the next release.
Author
Owner

@iShakill commented on GitHub (Jun 17, 2026):

Unfortunately, this issue has not been fixed.

Panel version: 3.3.1

The generated Shadowrocket subscription link is still missing :// after sub.

Current generated format

shadowrocket://add/sub/BASE64_URL?remark=NAME

Expected format

shadowrocket://add/sub://BASE64_URL?remark=NAME

Because of this, Shadowrocket opens but does not import the subscription.

The issue still appears to be present in this commit:

github.com/MHSanaei/3x-ui@668c0922ca

Current code

return `shadowrocket://add/sub/${base64Url}?remark=${remark}`;

Expected code

return `shadowrocket://add/sub://${base64Url}?remark=${remark}`;
<!-- gh-comment-id:4727609891 --> @iShakill commented on GitHub (Jun 17, 2026): Unfortunately, this issue has not been fixed. **Panel version:** `3.3.1` The generated Shadowrocket subscription link is still missing `://` after `sub`. ### Current generated format ```text shadowrocket://add/sub/BASE64_URL?remark=NAME ``` ### Expected format ```text shadowrocket://add/sub://BASE64_URL?remark=NAME ``` Because of this, Shadowrocket opens but does **not** import the subscription. The issue still appears to be present in this commit: https://github.com/MHSanaei/3x-ui/commit/668c0922ca446ffabf2755074ee6ea90221d67d2 ### Current code ```js return `shadowrocket://add/sub/${base64Url}?remark=${remark}`; ``` ### Expected code ```js return `shadowrocket://add/sub://${base64Url}?remark=${remark}`; ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#3519
No description provided.