{ "id": "148308", "key": "TIMOB-18959", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2015-06-19T01:58:43.000+0000", "created": "2015-05-28T22:49:09.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-31T22:42:00.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "On Q&A, this issues was reported : *Swipe right from the edge to go back to the previous window doesn't work anymore in iOS (Using SDK 3.5.1.GA and 4.0.0.GA)*\r\n\r\n[https://community.appcelerator.com/topic/581/swipe-right-from-the-edge-to-go-back-to-the-previous-window-doesn-t-work-anymore-in-ios-using-sdk-3-5-1-ga-and-4-0-0-ga/3]\r\n\r\nIt appears that the same code when built using Appcelerator Studio fails to work as expected on all 3+ SDK versions. \r\n\r\nBut when running the same code on all SDKs using Titanium Studio, it does work. \r\n\r\nTry his code : aap.js\r\n\r\n{noformat}\r\n/* \r\n\r\nThis creates random coloured windows which create buttons which create random coloured windows which create buttons which... you get the picture ;)\r\n\r\n: app.js\r\n*/\r\n \r\n \r\nfunction randomColor(){\r\n return '#'+(function lol(m,s,c){return s[m.floor(m.random() * s.length)] + (c && lol(m,s,c-1));})(Math,'0123456789ABCDEF',4);\r\n}\r\n \r\n// Works with Release 3.1.3 and later\r\nvar rootWin = Ti.UI.createWindow({\r\n\t\tbackgroundColor:randomColor(),\r\n\t\tfullscreen:false,\r\n\t\tbarColor:randomColor(),\r\n\t\tnavTintColor:randomColor(),\r\n\t\ttranslucent:false\r\n\t});\r\n \r\n \r\n \r\nvar b1 = Ti.UI.createButton(\r\n\t{\r\n\t\ttitle:'NEW',\r\n\t\tborderColor:'black',\r\n\t\tborderWidth:2,\r\n\t\twidth:200,\r\n\t\theight:60,\r\n\t\tborderRadius:30,\r\n\t\ttintColor:'red',\r\n\t\tbackgroundColor:'white'\r\n\t});\r\n\t\r\nb1.addEventListener('click',function(){ \r\n\tnavWin.openWindow(buildNewWindow({\r\n\t\tbackgroundColor:randomColor(),\r\n\t\tfullscreen:false,\r\n\t\tbarColor:randomColor(),\r\n\t\tnavTintColor:randomColor(),\r\n\t\ttranslucent:true\t\t\r\n\t})); \r\n});\r\n \r\nrootWin.add(b1);\r\n \r\nvar navWin = Ti.UI.iOS.createNavigationWindow({window:rootWin});\r\n \r\n \r\nfunction buildNewWindow(args){\r\n\t\r\n\tvar _self = Ti.UI.createWindow(args);\r\n\tvar btn_new = Ti.UI.createButton(\r\n\t{\r\n\t\ttitle:'NEW',\r\n\t\ttop:20,\r\n\t\tborderColor:'black',\r\n\t\tborderWidth:2,\r\n\t\twidth:200,\r\n\t\theight:60,\r\n\t\tborderRadius:30,\r\n\t\ttintColor:'red',\r\n\t\tbackgroundColor:'white'\r\n\t});\t\r\n\t_self.add(btn_new);\r\n\t\r\n\tbtn_new.addEventListener('click', function(){\r\n\t\tnavWin.openWindow(buildNewWindow({\r\n\t\t\t\t\tbackgroundColor:randomColor(),\r\n\t\t\t\t\tfullscreen:false,\r\n\t\t\t\t\tbarColor:randomColor(),\r\n\t\t\t\t\tnavTintColor:randomColor(),\r\n\t\t\t\t\ttranslucent:true\r\n\t\t\t\t}\r\n\t\t\t)\r\n\t\t); \r\n\t});\r\n \r\n\tvar btn_back = Ti.UI.createButton(\r\n\t{\r\n\t\ttitle:'< BACK',\r\n\t\tbottom:40,\r\n\t\tborderColor:'white',\r\n\t\tborderWidth:2,\r\n\t\twidth:200,\r\n\t\theight:60,\r\n\t\tborderRadius:30,\r\n\t\ttintColor:'white',\r\n\t\tbackgroundColor:'#333'\r\n\t});\t\r\n\t_self.add(btn_back);\r\n\t\r\n\tbtn_back.addEventListener('click', function(){\r\n\t\tnavWin.closeWindow(_self);\r\n\t});\t\r\n\t\r\n\treturn _self;\r\n\t\r\n}\r\n \r\n \r\nnavWin.open();\r\n{noformat}\r\n\r\n\r\n ", "attachment": [], "flagged": false, "summary": "Swipe right from the edge to go back to close window doesn't work anymore when building with Appc. Studio ", "creator": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "environment": null, "closedSprints": [ { "id": 416, "state": "closed", "name": "2015 Sprint 12 SDK", "startDate": "2015-06-06T00:00:43.862Z", "endDate": "2015-06-20T00:00:00.000Z", "completeDate": "2015-06-23T05:41:35.834Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "353831", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please only assign severity, not priority. Thank you!", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-05-28T23:09:28.000+0000", "updated": "2015-05-28T23:09:28.000+0000" }, { "id": "353835", "author": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "body": "Sorry. My bad. New UI. ;)\r\n\r\nCan't see where to edit either. \r\n\r\nIMHO, this is critical. ", "updateAuthor": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "created": "2015-05-28T23:19:36.000+0000", "updated": "2015-05-28T23:19:36.000+0000" }, { "id": "353836", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~kosso] what happens if you build it from the appc CLI? ", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-05-28T23:32:56.000+0000", "updated": "2015-05-28T23:32:56.000+0000" }, { "id": "353839", "author": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "body": "How do I go about that? I only upgraded to Appclelerator Studio yesterday. \r\n\r\nI see a lot of info in the [docs|http://docs.appcelerator.com/platform/latest/#!/guide/Appcelerator_Command-Line_Interface_Reference-section-43294287_AppceleratorCommand-LineInterfaceReference-iOSBuildOptionsandFlags] but not much in the way of examples. \r\n\r\n", "updateAuthor": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "created": "2015-05-28T23:46:29.000+0000", "updated": "2015-05-28T23:46:29.000+0000" }, { "id": "353840", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Do \"appc run\"", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-05-28T23:48:39.000+0000", "updated": "2015-05-28T23:48:39.000+0000" }, { "id": "353841", "author": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "body": "Hmm.. well clearly there a lot more to it than that if I need it to deploy to a device using the right certificate and profiles etc. (The swipe-to-close behaviour doesn't work on the sim) - I'll look it up. \r\n\r\nCan I copy and paste the Command line I see when I use studio to build to sim? \r\n\r\n\r\nDid you try my test app.js on a device, using Appcelerator Studio? ", "updateAuthor": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "created": "2015-05-28T23:53:36.000+0000", "updated": "2015-05-28T23:54:14.000+0000" }, { "id": "353842", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~kosso] I understand...you can add more flags there. [~cng] can you take a look?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-05-28T23:57:15.000+0000", "updated": "2015-05-28T23:57:15.000+0000" }, { "id": "353844", "author": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "body": "OK. I got this to work to install on the device.: (I left out some of the other flags I saw in the Studio console. \r\n\r\nappc run --platform iphone --sdk 3.5.1.GA --project-dir /Users/kosso/Documents/Appcelerator_Studio_Workspace/Wi\r\nndowTest --target device --ios-version 8.3 --device-family iphone --device-id abcdefabcefMmydeviceid1234567123456 --pp-uuid myppuuid000-eaaa-1111-1111-111111\r\n\r\nNow, I have no idea how this has happened, but it now the swipe to close works!?? \r\n\r\nAnd now, even more bizarrely, it works in Appcelerator Studio too. With my old apps, and this test app. \r\n\r\nw..t... ? \r\n\r\nDid running it via appc do anything special? \r\n\r\nMost bizarre. \r\n\r\nI'm quadruple checking this and other apps/configurations to make sure I'm not going mad. Because now I can't reproduce what I'd thoroughly proved to myself was broken, just before filing this and trying tests. \r\n\r\n\r\n\r\n\r\n", "updateAuthor": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "created": "2015-05-29T00:25:07.000+0000", "updated": "2015-05-29T00:49:24.000+0000" }, { "id": "353846", "author": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "body": "I've added to [the Q&A thread|https://community.appcelerator.com/topic/581/swipe-right-from-the-edge-to-go-back-to-the-previous-window-doesn-t-work-anymore-in-ios-using-sdk-3-5-1-ga-and-4-0-0-ga/12] to see if this helps the original poster. ", "updateAuthor": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "created": "2015-05-29T00:48:59.000+0000", "updated": "2015-05-29T00:48:59.000+0000" }, { "id": "353864", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~kosso], I just created a new mobile app project, chose the classic default, pasted this sample code into app.js and ran on device on appcelerator studio. And it works immediately. So I was't able to reproduce this.\r\n\r\nEnvironment:\r\nAppcelerator Studio, build: 4.0.1.201505271541\r\nSDK: 4.0.0.beta4\r\n\r\nCan you find out how exactly this problem is encountered? Maybe it was derived by other means. \r\n", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-05-29T03:58:44.000+0000", "updated": "2015-05-29T03:58:44.000+0000" }, { "id": "355178", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Will close this as \"cannot be reproduced\" on Thursday 18th June. Please comment if it can still be reproduced.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-06-16T04:44:04.000+0000", "updated": "2015-06-16T04:44:04.000+0000" }, { "id": "416610", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as \"Cannot Reproduce\", if you encounter any further problems please file a new ticket. ", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-31T22:42:00.000+0000", "updated": "2017-03-31T22:42:00.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }