Download files using iPad Safari. Protocol Plugin?

Discussion in 'iOS Programming' started by robj, Jul 7, 2010.

  1. macrumors regular

    Joined:
    Dec 23, 2009
    Location:
    Madrid, Spain
    #1
    Hi!

    I don't know if you have tested it, but when you want to download a file while you are browsing the web using the iPad's Safari, it shows you somethign like a webpage with a button to download the file using GoodReader.

    Other way to do the same is to put a 'g' before the URL of the file you want to download, like in "ghttp://someserver.com/somefile.mp3"

    I'm interested in how this work.

    Is goodreader installing some kind of "protocol management plugin" in Safari?

    How can GoodReader detect I'm downloading a file using Safari as It cannot be running in background?

    Is There any way to add a plugin to Safari to intercept file downloads?

    Thanks for your help ;)
     
  2. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    Any application can register a URL protocol that it handles with the system. This is covered in the documentation. I suggest you take some time to read the entirety of the document I have linked to. All iPhone developers should have read it all and be familiar with it before even thinking about writing any code.
     
  3. thread starter macrumors regular

    Joined:
    Dec 23, 2009
    Location:
    Madrid, Spain
    #3
    Thank you for pointing me to that doc! :)

    I love the Apple developer site (and its lovely to read it in the iPad also ;) )

    I read this doc long time ago and I couldn't remember that this info was within this doc :)
     

Share This Page