quran / quran-ios

QuranEngine is the engine powering the Quran.com iOS app.
Apache License 2.0
438 stars 148 forks source link

Allow other apps to launch this app and jump to a particular Ayah #348

Open adil-hussain-84 opened 3 years ago

adil-hussain-84 commented 3 years ago

I'm building a couple of Hifdh revision assistance apps for iOS which will offer the ability to jump the user to see a particular Ayah in the quran.com web app. I will do this by opening a URL of the form https://quran.com/\(surahNumber)/\(ayahNumber).

Given that this app is owned by quran.com, it would be great if this app could register itself as capable of opening https://quran.com links as described in the Supporting Universal Links in Your App Apple Developer guide. A user of my apps will then be navigated into this app rather than the web app when this app is installed on the user's device.

In addition to supporting quran.com universal links, it may be a good idea to support the quran custom URL scheme so links of the form quran://\(surahNumber)/\(ayahNumber) are also accepted as described in the Defining a Custom URL Scheme for Your App Apple Developer guide. This is the type of URL accepted by the Quran for Android and Al Quran (Tafsir & by Word) Play Store apps.

mohamede1945 commented 2 years ago

Yeah, totally agree. Thanks for the suggestion.

wedkemail commented 10 months ago

I haven't done this before, but i don't mind giving it a try! will create a branch to try it