iPhone/iPad URL Schema

7 postsstarted by mnickel 4,739 viewsoriginal topic

New Member
#1
Is there a URL schema to open a verse from outside of the application? I have created a few ePubs for my personal use and I would like to click on a scripture reference and have it open the Gospel Library app and go right to that reference.

Thanks.
Senior Member
#2
Here is a sample URL.
http://lds.org/scriptures/nt/john/1.1-5,14?lang=eng#1

1.1-5,14 tells it go to chapter 1, and highlight verses 1 thru 5, and verse 14.

#1 tells it to begin displaying the text at verse 1


http://lds.org/scriptures/nt/john/1.1-5,14?lang=eng#NaN

#NaN apparently tells the browser to start displaying text from the chapter heading (or before).


Here is another example.
http://lds.org/scriptures/bofm/3-ne/11.14?lang=eng#10


EDIT: Oops, I missed this part about having it launch the Gospel Library app instead of just using the browser. I don't know how to create a link that will launch the Gospel Library app and pass a reference to it. Here is some helpful information that you might already be aware of. http://iphonedevelopertips.com/cocoa/la ... ation.html
New Member
#3
The URL schema is registered with Apple. For example, Gospel Library could be gospel:// and the rest of the URL could follow the lds.org URL. But it must be built into the app. Has this already been done? If it has, what is the URL? If it hasn't, can it be added?
New Member
#4
Here is a link on registering a URL scheme: http://iphonedevelopertips.com/cocoa/la ... cheme.html
New Member
#5
Any thoughts on this by anyone?
New Member
#6
Any update on this?
New Member
#7
It looks like the LDS Music app has an API for doing this sort of thing.
https://tech.lds.org/wiki/Syntax_for_li ... usic://%29

I've tried putting links like this in my ebook and they work great.

Will the Gospel Library app also have this functionality? Does it already? If so, I can't find any documentation on it.