{ "id": "60646", "key": "TIMOB-14", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11222", "name": "Release 1.2.0", "archived": true, "released": true, "releaseDate": "2010-04-05" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-04-15T02:22:29.000+0000", "created": "2011-04-15T02:22:27.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "custom", "feature", "ios", "iphone", "url" ], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-02T18:21:57.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

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

\n

thanks.

{html}", "attachment": [], "flagged": false, "summary": "iPhone define custom url handlers", "creator": { "name": "thomasaylott", "key": "thomasaylott", "displayName": "Thomas Aylott", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "thomasaylott", "key": "thomasaylott", "displayName": "Thomas Aylott", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "122642", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

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

\n

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

{html}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:22:28.000+0000", "updated": "2011-04-15T02:22:28.000+0000" }, { "id": "122643", "author": { "name": "thomasaylott", "key": "thomasaylott", "displayName": "Thomas Aylott", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

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

\n

I love it.

{html}", "updateAuthor": { "name": "thomasaylott", "key": "thomasaylott", "displayName": "Thomas Aylott", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:22:28.000+0000", "updated": "2011-04-15T02:22:28.000+0000" }, { "id": "122644", "author": { "name": "antoniocarlossilveira", "key": "antoniocarlossilveira", "displayName": "Antonio Carlos Silveira", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

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

\n

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

\n

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

\n

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

{html}", "updateAuthor": { "name": "antoniocarlossilveira", "key": "antoniocarlossilveira", "displayName": "Antonio Carlos Silveira", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:22:29.000+0000", "updated": "2011-04-15T02:22:29.000+0000" }, { "id": "122645", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

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

\n

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

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:22:29.000+0000", "updated": "2011-04-15T02:22:29.000+0000" }, { "id": "122646", "author": { "name": "antoniocarlossilveira", "key": "antoniocarlossilveira", "displayName": "Antonio Carlos Silveira", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

hi Jhaynie,

\n

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

{html}", "updateAuthor": { "name": "antoniocarlossilveira", "key": "antoniocarlossilveira", "displayName": "Antonio Carlos Silveira", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:22:30.000+0000", "updated": "2011-04-15T02:22:30.000+0000" }, { "id": "408336", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-02T18:21:53.000+0000", "updated": "2017-03-02T18:21:53.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }