Sefaria / Sefaria-Mobile

Sefaria for iOS and Android
http://www.sefaria.org
32 stars 20 forks source link

Deep linking in the app? #104

Closed lukecarbis closed 8 months ago

lukecarbis commented 8 months ago

Is it possible to deep link to the Sefaria from another app? For example, from an iOS app:

let url = URL(string:"sefaria://parashat-hashavua")
UIApplication.shared.open(url!)

Is there a custom url scheme?

nsantacruz commented 8 months ago

Hi @lukecarbis, good question. The Sefaria app (both Android and iOS) don't have custom url schemes. However, they do support the standard https urls that sefaria.org supports. Use the format that is found on the site and it should redirect to the app if it's installed.

lukecarbis commented 8 months ago

Thanks @nsantacruz – I've tried this, but it doesn't redirect to the app, unfortunately.

This can be tested easily. Just try opening this link from your iOS device: https://www.sefaria.org/Bava_Kamma.74a.1-74b.22?lang=bi