8000 feat: let a quran:// link choose the reciter by BiskremMuhammad · Pull Request #4072 · quran/quran_android · GitHub
[go: up one dir, main page]

Skip to content

feat: let a quran:// link choose the reciter - #4072

Open
BiskremMuhammad wants to merge 1 commit into
quran:mainfrom
BiskremMuhammad:feature/deeplink-reciter
Open

BiskremMuhammad wants to merge 1 commit into
quran:mainfrom
BiskremMuhammad:feature/deeplink-reciter

Conversation

@BiskremMuhammad
Copy link
Copy Markdown

Proposed in #4071.

A quran:// link can choose the ayah but not the reciter. For memorization that is the missing half — a teaching recitation is what you learn a new portion from — and the same link already carries one on iOS (quran/quran-ios#1045) and on the web (mediaReciter).

The link carries quran.com's recitation id, so one link means the same voice wherever it is opened, and each app resolves it locally. Here that is a new optional quranComId on a catalog entry:

{ "id": 1, "nameResource": "qari_husary_gapless", "...": "...", "quranComId": 6 }

QuranForwarderActivity then resolves ?reciter= through QariUtil.qariIdForQuranComId() and calls CurrentQariManager.setCurrentQari. A recitation we do not have leaves the reader's own qari alone — better silence than the wrong voice.

Only two are mapped today: minshawi_murattal (9) and husary (6). Basfar is not on quran.com.

Tests: QuranForwarderActivityReciterTest, three cases — the reciter is applied, an unknown id changes nothing, a link without the parameter changes nothing.

./gradlew :app:testMadaniDebugUnitTest --tests "*QuranForwarderActivityReciterTest*"

Independent of #4070 — either can merge first.

@BiskremMuhammad BiskremMuhammad changed the title Let a quran:// link choose the reciter feat: let a quran:// link choose the reciter Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0