mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5001] [Bug]: shadowrocket subscription not working! #3519
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#3519
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
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
@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
://aftersubinfrontend/src/pages/sub/SubPage.tsx(line 125):Shadowrocket's deep-link scheme for importing a subscription is
shadowrocket://add/sub://BASE64_ENCODED_URL. Without the://aftersub, 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.
@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.
@iShakill commented on GitHub (Jun 17, 2026):
Unfortunately, this issue has not been fixed.
Panel version:
3.3.1The generated Shadowrocket subscription link is still missing
://aftersub.Current generated format
Expected format
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@668c0922caCurrent code
Expected code