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.
iPhone/iPad URL Schema
-
- Senior Member
- Posts: 856
- Joined: Thu Mar 13, 2008 6:17 pm
- Location: Las Vegas, NV
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
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
- Posts: 8
- Joined: Sun Feb 06, 2011 1:24 pm
-
- New Member
- Posts: 8
- Joined: Sun Feb 06, 2011 1:24 pm
Here is a link on registering a URL scheme: http://iphonedevelopertips.com/cocoa/la ... cheme.html
-
- New Member
- Posts: 5
- Joined: Thu Apr 28, 2011 10:49 pm
Re: iPhone/iPad URL Schema
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.
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.