{ "id": "125010", "key": "TIMOB-16249", "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": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2014-02-06T18:20:02.000+0000", "created": "2014-01-19T10:32:28.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "andoid", "supportTeam" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [ { "id": "34903", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "61606", "key": "TIMOB-974", "fields": { "summary": "Android: Webview.html returns null if webview is based on URL", "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": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T20:44:07.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "TiReturn::setValue should be declared with @JavascriptInterface annotation.\r\n\r\nFile: android/modules/ui/src/java/ti/modules/titanium/ui/widget/webview/TiWebViewBinding.java\r\nline: 174\r\nChange the declaration of setValue() to:\r\n\r\n{code}\r\n@JavascriptInterface\r\npublic void setValue(String value)\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Web view evalJS is not working on Android versions >= JELLY_BEAN_MR1", "creator": { "name": "buddyguards", "key": "buddyguards", "displayName": "grebulon", "active": true, "timeZone": "Asia/Jerusalem" }, "subtasks": [], "reporter": { "name": "buddyguards", "key": "buddyguards", "displayName": "grebulon", "active": true, "timeZone": "Asia/Jerusalem" }, "environment": null, "comment": { "comments": [ { "id": "288793", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~buddyguards] Thanks for suggesting the solution but it would be helpful if you can post a simple test case to demonstrate the problem as well. We would move this ticket to engineering as soon as we are able to reproduce it with a test case.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-20T07:02:07.000+0000", "updated": "2014-01-20T07:02:07.000+0000" }, { "id": "288797", "author": { "name": "buddyguards", "key": "buddyguards", "displayName": "grebulon", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "Very simple:\r\n\r\n{code}\r\nvar browser=Titanium.UI.createWebView({top:0,left:0,bottom:0,width:'100%'});\r\nbrowser.url=\"http://www.google.com\";\r\nvar title=browser.evalJS('document.title');\r\nTi.API.info(title);\r\n{code}\r\n\r\ntitle will be null.\r\n\r\nNote that the @JavascriptInterface is required only on late versions of Android. I tested it with 4.3, and as soon as I added the annotation, it started to work.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-20T07:29:58.000+0000", "updated": "2014-02-06T16:10:39.000+0000" }, { "id": "288800", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Moving this ticket to engineering as I can reproduce this issue with the provided test case.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-20T07:41:29.000+0000", "updated": "2014-01-20T07:41:29.000+0000" }, { "id": "289719", "author": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "body": "I have noticed the same issue in:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nvar webview = Ti.UI.createWebView({\r\n\turl : 'http://www.appcelerator.com/',\r\n});\r\nwin.add(webview);\r\nwin.open();\r\nwebview.addEventListener('load', function(e) {\r\n\tconsole.log(webview.evalJS('document.title'));\r\n});\r\n{code}\r\n\r\nProblem: twitter-adapter cannot work, because the library selects pin from html-page. I think it is urgent to solve it. Unsolved we cannot work with (HTML)-oauth!", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-25T12:02:18.000+0000", "updated": "2014-02-06T16:10:55.000+0000" }, { "id": "289720", "author": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "body": "I cannot finf this file in my system: TiWebViewBinding.java", "updateAuthor": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-01-25T12:11:16.000+0000", "updated": "2014-01-25T12:11:16.000+0000" }, { "id": "291676", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-06T18:19:19.000+0000", "updated": "2014-02-06T18:19:19.000+0000" }, { "id": "414912", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate of the ticket that is mentioned above and has since been closed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T20:44:07.000+0000", "updated": "2017-03-22T20:44:07.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }