Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14] iPhone define custom url handlers

GitHub Issuen/a
Resolution Date2011-04-15T02:22:29.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.2.0
Labelscustom, feature, ios, iphone, url
ReporterThomas Aylott
AssigneeReggie Seagraves


Please make some way to define custom url handlers for the iphone.



  1. Blain Hamon 2011-04-15

    It's certainly possible. By Url handlers, I assume you mean, "Launch my app when someone tries to go to foo://bar...". One half would be adding an entry to tiapp.xml, an array of schemes that the app can handle.

    The other half would be some way to relay to the Javascript the custom url that launched the app. There's a number of ways it could be done, but probably the most sensible way would to be to expose it as if the app was launched with the url as a command line argument.

  2. Thomas Aylott 2011-04-15

    bq. as if the app was launched with the url as a command line argument

    I love it.

  3. Antonio Carlos Silveira 2011-04-15

    Currently it is possible to define a Custom URL editing the info.plist file and adding the proper fields.

    But one thing even more interesting related to Custom URLs would be to be able to retrieve data that you pass to the app with Query Strings. LIke this:

    open Safari and fire my App Custom URL: myapp://?foo="bar"

    Current, there is no way to retrieve this variable foo from the browser in the App.

  4. Jeff Haynie 2011-04-15

    you can already do this. take a look at the Info.plist for Kitchen Sink project.

    You can also retrieve the values from the Titanium.App.getArguments() method call. Returns a dictionary of the values the app was launched with.

  5. Antonio Carlos Silveira 2011-04-15

    hi Jhaynie,

    Thanks, just found the app_data.js and understood how it works. Thanks.

  6. Lee Morris 2017-03-02

    Closing as invalid.

JSON Source