{ "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.
\nthanks.
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.
\nThe 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.
bq. as if the app was launched with the url as a command line\nargument
\nI love it.
Currently it is possible to define a Custom URL editing the\ninfo.plist file and adding the proper fields.
\nBut 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:
\nopen Safari and fire my App Custom URL: myapp://?foo=\"bar\"
\nCurrent, there is no way to retrieve this variable foo from the\nbrowser in the App.
you can already do this. take a look at the Info.plist for\nKitchen Sink project.
\nYou can also retrieve the values from the\nTitanium.App.getArguments() method call. Returns a dictionary of\nthe values the app was launched with.
hi Jhaynie,
\nThanks, just found the app_data.js and understood how it works.\nThanks.