{ "id": "172541", "key": "TIMOB-26617", "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": null, "resolutiondate": null, "created": "2018-11-02T13:23:12.000+0000", "priority": null, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-11-29T23:41:38.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "Use case: We want to run some code first before closing the window without creating a custom back-button which is not easy to create exactly looking button as native iOS provides on a Window.\r\n\r\nIn Android, we can add a custom method to `onHomeIconItemSelected` for the up-arrow icon to call our custom method where we can even close the window.\r\n\r\nIn iOS: We cannot call any method upon clicking the back-button of Window where we can run some validations before closing the window. \r\n\r\nCurrent Solution: Create left-nav button with a back arrow icon and set click event listener to it. This is not a proper way as the padding, size, back-icon are very hard to match as provided by native iOS Window itself. So we should add similar property or override iOS back-button click event. See attached screenshot for clear understanding.", "attachment": [ { "id": "65802", "filename": "2 - Forgot Password.png", "author": { "name": "prashant_saini", "key": "prashant_saini", "displayName": "Prashant Saini", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-11-02T13:23:10.000+0000", "size": 136051, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS : Add click event listener to the back-button of a Window (part of the NavigationWindow)", "creator": { "name": "prashant_saini", "key": "prashant_saini", "displayName": "Prashant Saini", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "prashant_saini", "key": "prashant_saini", "displayName": "Prashant Saini", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "443255", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Can you please share the native guide on the feature? We will consider it. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-11-03T21:09:11.000+0000", "updated": "2018-11-03T21:09:11.000+0000" }, { "id": "443258", "author": { "name": "prashant_saini", "key": "prashant_saini", "displayName": "Prashant Saini", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi, I couldn't find native docs on this much as but I did find some hacks on Google. Since I'm not a native iOS guy, so could you please refer to your iOS team to look into this as I believe they can confirm on this?", "updateAuthor": { "name": "prashant_saini", "key": "prashant_saini", "displayName": "Prashant Saini", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-11-04T13:53:51.000+0000", "updated": "2018-11-04T13:54:18.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }