{ "id": "154811", "key": "TIMOB-20372", "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": "17707", "name": "Release 5.3.0", "archived": false, "released": true, "releaseDate": "2016-06-04" } ], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2016-02-11T01:13:00.000+0000", "created": "2016-02-08T22:56:37.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-5.3.0", "titanium", "webview", "windowsphone" ], "versions": [ { "id": "17072", "name": "Release 5.1.2", "archived": false, "released": true, "releaseDate": "2016-01-12" } ], "issuelinks": [ { "id": "50566", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "154578", "key": "TIMOB-20289", "fields": { "summary": "Windows: Ti API in WebView content is not implemented", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-05-02T22:47:08.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "While building a simple app for all three platforms we used leaflet map with webview. While android and ios had no issues communicating with javascript embedded in web page, there is no communication with webview on windows phone platform. I have made a simple project in which i can get response in android/ios but not windows phone:\r\n\r\nlogging.html\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\nindex.js\r\n\r\nvar win = Ti.UI.createWindow();\r\nvar webview = Ti.UI.createWebView({\r\nurl: 'logging.html'\r\n});\r\nvar button = Ti.UI.createButton({\r\ntitle: 'fromTitanium',\r\nheight: '50dp',\r\nwidth: '130dp'\r\n});\r\nbutton.addEventListener('click', function(e) {\r\nTi.App.fireEvent('app:fromTitanium', { message: 'event fired from Titanium, handled in WebView' });\r\n});\r\nTi.App.addEventListener('app:fromWebView', function(e) {\r\nalert(e.message);\r\n});\r\nwin.add(webview);\r\nwin.add(button);\r\nwin.open();", "attachment": [], "flagged": false, "summary": "Windows: Ti.App.fireEvent and listener doesnt work in static javascript/html page loaded in webview", "creator": { "name": "nejcrobnik", "key": "nejcrobnik", "displayName": "Nejc Robnik", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nejcrobnik", "key": "nejcrobnik", "displayName": "Nejc Robnik", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK: 5.1.1/5.1.2\r\nPlatform: Windows phone\r\nOperating system: Windows 10 & Visual Studio 2013 with 8.1 SDK", "comment": { "comments": [ { "id": "376577", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Duplicate of TIMOB-20289, should be fixed in the latest master. Will be scheduled to release in 5.3.0.\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-02-11T01:13:00.000+0000", "updated": "2016-02-11T01:13:00.000+0000" }, { "id": "384502", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed\r\nTested on:\r\nNokia Lumia 928 (8.1) \r\nWindows Simulator (8.1) \r\nMicrosoft Lumia 640 (10) \r\nWindows Simulator (10) \r\nWindows 10 \r\nStudio: 4.6.0.201604290815\r\nTi SDK: 5.3.0.v20160502130737\r\nAppc NPM: 4.2.5-5 \r\nApp CLI: 5.3.0-42 \r\nNode v4.4.3\r\n\r\n*Closing Ticket.*", "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2016-05-02T22:46:48.000+0000", "updated": "2016-05-02T22:46:48.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }