{ "id": "61866", "key": "TIMOB-1234", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-05-02T22:33:14.000+0000", "created": "2011-04-15T02:47:19.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "core" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-02T22:33:14.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": "10224", "name": "TiAPI", "description": "This component is used for cross-platform API work. Specifications are most likely to use this component." } ], "description": "{html}

Problem:

\r\n

I want to be able to deeply integrate a WebView into my app.
\r\nI need my WebView code to communicate with my Ti code even if it's\r\ngenerated source, an external url or whatever.

\r\n

Solution:

\r\n

Use the common solution from normal Objective-C\r\nUIKit/Cocoa apps.
\r\nCreate a custom url scheme and then override\r\nwebView:shouldStartLoadWithRequest:navigationType:.

\r\n

\r\nhttp://github.com/subtleGradient/titanium_mobile/tree/develop-webvi...

\r\n

\r\nhttp://github.com/subtleGradient/titanium_mobile/blob/30fbb3fb00254...

\r\n

\r\nhttp://github.com/subtleGradient/titanium_mobile/blob/30fbb3fb00254...

{html}", "attachment": [], "flagged": false, "summary": "TiAPI: Fire events from inside WebView; 2-way communication (Proposed Solution)", "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": "125139", "author": { "name": "thomasaylott", "key": "thomasaylott", "displayName": "Thomas Aylott", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Signed my CLA!

\n

Rebased with master

\n

See the latest comparison

\n

\nhttp://github.com/subtleGradient/titanium_mobile/compare/master...d...

{html}", "updateAuthor": { "name": "thomasaylott", "key": "thomasaylott", "displayName": "Thomas Aylott", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:47:20.000+0000", "updated": "2011-04-15T02:47:20.000+0000" }, { "id": "125140", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Is this a pull request? Maybe we can review it if it is.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:47:21.000+0000", "updated": "2011-04-15T02:47:21.000+0000" }, { "id": "209360", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Feature request.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-25T12:13:11.000+0000", "updated": "2012-07-25T12:13:11.000+0000" }, { "id": "209556", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Is this proposed for iOS only? We need to consider parity for Android and Mobile Web.", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-26T09:15:49.000+0000", "updated": "2012-07-26T09:15:49.000+0000" }, { "id": "213944", "author": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "body": "Any updates on this? Could really use it in a project I'm working on.", "updateAuthor": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "created": "2012-08-11T11:15:39.000+0000", "updated": "2012-08-11T11:15:39.000+0000" }, { "id": "418979", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Resolving ticket as Invalid as there is now a new version of Kitchen Sink available. ", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-05-02T22:33:14.000+0000", "updated": "2017-05-02T22:33:14.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }