2

Possible Duplicate:
Supporting Open In… menu item in my app for iOS Mail And Safari

I'm working on an application that will download files from the Internet, for further use.

How do I launch my own app when a link is pressed on Safari?

For example, when a .pdf file link is shown in safari the user clicks it and the file is downloaded. After that there is the suggestion to "Open in", followed by a list of possible applications, like iBooks. I want my app to be displayed among these options.

Community
  • 1
  • 1
neowinston
  • 7,584
  • 10
  • 52
  • 83

2 Answers2

2

You want to look into associating the PDF file type with your app.

The answers to How do I associate file types with an iPhone application? pretty much covers it.

Community
  • 1
  • 1
koregan
  • 10,054
  • 4
  • 23
  • 36
1

If you just want to open your app then see Custom URL Scheme.

But associating file type to your iPhone applications is different than custom URL scheme. This thread greatly describe it

Community
  • 1
  • 1
beryllium
  • 29,669
  • 15
  • 106
  • 125