{ "id": "174583", "key": "TIMOB-27692", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2020-01-02T16:00:02.000+0000", "created": "2019-12-17T19:02:01.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "engTriage" ], "versions": [ { "id": "20832", "name": "Release 8.3.0", "archived": false, "released": true, "releaseDate": "2019-11-25" } ], "issuelinks": [], "assignee": null, "updated": "2020-01-02T16:00:02.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": [], "description": "Client has a webview component where they are running a page with some jQuery and javascript, they have noticed a discrepancy with iOS and android in that the unload function does not work for iOS webview.\r\n{code}\r\n$(window).unload(function () {\r\nchat.server.send('[SYSTEM]', $('#displayname').val() + ' has left', $('#operatorid').val(), $('#convoID').val());\r\n});\r\n{code}\r\n\r\nThis is the specific jQuery line they're using.\r\nThey basically have a webview where the URL points to a page that's using javascript and jquery\r\nand they want code to run in the .unload function.\r\n\r\nit's not running for iOS webview but work for android.", "attachment": [], "flagged": false, "summary": "iOS: JQuery .unload function not working in WebView", "creator": { "name": "rislam", "key": "rislam", "displayName": "Riduanul Islam", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rislam", "key": "rislam", "displayName": "Riduanul Islam", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK 8.3.0.GA", "comment": { "comments": [ { "id": "453233", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~rislam] could they provide a full sample showing their issue, the jquery snippet provided is not enough for us to debug this issue. Ideally we would like a full classic sample for this issue as it requires setting up the project with jquery etc\r\n\r\nAt a glance though, I don't think this will be a titanium issue, we don't own the webview or jquery. I did a quick search for \"jquery unload safari not working\" and there's a lot of stackoverflow posts about this being unreliable cross platform.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2019-12-18T14:02:45.000+0000", "updated": "2019-12-18T18:01:40.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }