{ "id": "169354", "key": "AC-5124", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2017-08-08T19:49:27.000+0000", "created": "2017-08-03T07:46:12.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2019-06-28T10:52: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": "14550", "name": "Appcelerator Modules", "description": "Please enter tickets related to Modules here." } ], "description": "Ti.WKWebView failed with the code below. Ti.UI.WebView will work fine.\r\n\r\n{code:java}\r\nhtml = 'Local HTML';\r\nhtml += 'Click';\r\nhtml += '';\r\nhtml += '';\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Ti.WKWebView failed ajax", "creator": { "name": "hknm", "key": "hknm", "displayName": "hakaniemi", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "hknm", "key": "hknm", "displayName": "hakaniemi", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "425983", "author": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "body": "Hello,\r\nThanks for reaching us. Would you mind if I request more details about your problem? What version of TiSDK, iOS and Ti.WKWebView do you have?\r\nDo you have any error log?\r\n\r\nRegards,\r\nAminul ", "updateAuthor": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "created": "2017-08-06T15:15:15.000+0000", "updated": "2017-08-06T15:15:15.000+0000" }, { "id": "449257", "author": { "name": "fahad86", "key": "fahad86", "displayName": "Muhammad Ahmed Fahad", "active": true, "timeZone": "Asia/Shanghai" }, "body": "I am having the same problem when switching to Ti SDK 8.X.X\r\n\r\nWKWebView has replaced the UIWebview (i.e. Ti.UI.WebView is now WKWebView in Ti.SDK 8.X.X)\r\n\r\nI'm using Ti.SDK 8.0.2.GA\r\n\r\nSetting and loading html (as below) in webview should display an alert with data: {userId: 1, id: 1, title: \"delectus aut autem\", completed: false} which happens with Ti.SDK 7.X.X but not with 8.X.X\r\n\r\nhtml = 'Local HTML';\r\nhtml += 'Click';\r\nhtml += '';\r\nhtml += '';\r\n\r\nPlease re-open this issue and please fix as soon as possible. This has been putting off my upgrade to 8.X.X for quite a long time.\r\nOr at least document on how a workaround can be implemented.", "updateAuthor": { "name": "fahad86", "key": "fahad86", "displayName": "Muhammad Ahmed Fahad", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2019-06-21T10:58:25.000+0000", "updated": "2019-06-21T10:58:25.000+0000" }, { "id": "449261", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi [~fahad86], is there a reason it needs to be AJAX and cannot be done internally with https://docs.appcelerator.com/platform/latest/#!/api/Titanium.Network-method-createHTTPClient", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-06-21T13:22:41.000+0000", "updated": "2019-06-21T13:22:41.000+0000" }, { "id": "449285", "author": { "name": "fahad86", "key": "fahad86", "displayName": "Muhammad Ahmed Fahad", "active": true, "timeZone": "Asia/Shanghai" }, "body": "I make use of a webview based map which makes multiple calls to some APIs based on the panning of the user on the map. It would be very inefficient to have many bridge cross-overs.", "updateAuthor": { "name": "fahad86", "key": "fahad86", "displayName": "Muhammad Ahmed Fahad", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2019-06-24T03:14:15.000+0000", "updated": "2019-06-24T03:14:15.000+0000" }, { "id": "449292", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~fahad86] could you provide reproducible code so we can test it? ", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-06-24T14:17:44.000+0000", "updated": "2019-06-24T14:17:44.000+0000" }, { "id": "449315", "author": { "name": "fahad86", "key": "fahad86", "displayName": "Muhammad Ahmed Fahad", "active": true, "timeZone": "Asia/Shanghai" }, "body": "app.js\r\n{code:javaScript}\r\n// Some comments here\r\npublic String getFoo()\r\nvar window = Ti.UI.createWindow({\r\n width: Ti.UI.FILL,\r\n height: Ti.UI.FILL\r\n});\r\n\r\nvar html = 'Local HTML';\r\nhtml += 'Click';\r\nhtml += '';\r\nhtml += '';\r\n\r\nwindow.add(Ti.UI.createWebView({\r\n html: html,\r\n width: Ti.UI.FILL,\r\n height: Ti.UI.FILL\r\n});\r\n\r\nwindow.open();\r\n{code}\r\n\r\nYou can try the above. It needs to output an alert with json data (You can paste this in a browser and check the expected output: https://jsonplaceholder.typicode.com/todos)", "updateAuthor": { "name": "fahad86", "key": "fahad86", "displayName": "Muhammad Ahmed Fahad", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2019-06-25T04:00:42.000+0000", "updated": "2019-06-25T04:00:42.000+0000" }, { "id": "449443", "author": { "name": "fahad86", "key": "fahad86", "displayName": "Muhammad Ahmed Fahad", "active": true, "timeZone": "Asia/Shanghai" }, "body": "We no longer need this as adding CORS headers ('Access-Control-Allow-Origin': '*') to our API's on our server helped solve this issue for us.\r\n", "updateAuthor": { "name": "fahad86", "key": "fahad86", "displayName": "Muhammad Ahmed Fahad", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2019-06-28T10:52:14.000+0000", "updated": "2019-06-28T10:52:14.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }