iPhone/iPad URL Schema

Discussions around the iPhone/iPad/iPod Touch versions of the Gospel Library application.
Post Reply
mnickel
New Member
Posts: 8
Joined: Sun Feb 06, 2011 1:24 pm

iPhone/iPad URL Schema

#1

Post by mnickel »

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.
jbh001
Senior Member
Posts: 856
Joined: Thu Mar 13, 2008 6:17 pm
Location: Las Vegas, NV

#2

Post by jbh001 »

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
mnickel
New Member
Posts: 8
Joined: Sun Feb 06, 2011 1:24 pm

#3

Post by mnickel »

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?
mnickel
New Member
Posts: 8
Joined: Sun Feb 06, 2011 1:24 pm

#4

Post by mnickel »

Here is a link on registering a URL scheme: http://iphonedevelopertips.com/cocoa/la ... cheme.html
mnickel
New Member
Posts: 8
Joined: Sun Feb 06, 2011 1:24 pm

#5

Post by mnickel »

Any thoughts on this by anyone?
mnickel
New Member
Posts: 8
Joined: Sun Feb 06, 2011 1:24 pm

#6

Post by mnickel »

Any update on this?
laughing_elk
New Member
Posts: 5
Joined: Thu Apr 28, 2011 10:49 pm

Re: iPhone/iPad URL Schema

#7

Post by laughing_elk »

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.
Post Reply

Return to “iPhone/iPad Gospel Library”