{ "id": "119919", "key": "TIMOB-15205", "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": "15691", "description": "2013 Sprint 19", "name": "2013 Sprint 19", "archived": true, "released": true, "releaseDate": "2013-09-20" }, { "id": "15693", "description": "2013 Sprint 19 API", "name": "2013 Sprint 19 API", "archived": true, "released": true, "releaseDate": "2013-09-20" }, { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2015-12-17T02:45:12.000+0000", "created": "2013-09-13T15:28:24.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "ios7", "ipass1" ], "versions": [], "issuelinks": [], "assignee": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-29T22:36:05.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": "The \"change\" event of the switch on iOS 7 with SDK 3.1.3 (and Apple iOS 7 SDK) behaves differently than the previous SDK (for example with the 3.0.2 SDK and Apple iOS 6 SDK)\r\n\r\nbasically if you run the movement shown in the video attached, the \"change\" event is invoked, although actually at the \"touchEnd\" of the finger on the switch the switch has not really changed the value.", "attachment": [ { "id": "42504", "filename": "switch iOS 6.mov", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2013-09-16T07:00:20.000+0000", "size": 2377762, "mimeType": "video/quicktime" }, { "id": "42503", "filename": "switch ioS 7.mov", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2013-09-16T06:58:02.000+0000", "size": 798123, "mimeType": "video/quicktime" }, { "id": "42467", "filename": "video2.mov", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2013-09-13T15:28:25.000+0000", "size": 252911, "mimeType": "video/quicktime" } ], "flagged": false, "summary": "iOS7: Value not changed at touchEnd event of Switch", "creator": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "subtasks": [], "reporter": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "environment": "Apple iOS 7 SDK , SDK 3.1.3.v20130908095038 , xCode 5.0 GM", "comment": { "comments": [ { "id": "271189", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~vduggal], thoughts?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-16T05:53:16.000+0000", "updated": "2013-09-16T05:53:16.000+0000" }, { "id": "271195", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "body": "I saw that you changed the title of the ticket in \"Value not changed at touchEnd event of Switch\", but in reality that's not the problem\n\nthe fact is that (with the iOS 7 SDK) if I continue to change the value of the switch (never release the finger) the event change is called. but it should not be so!\nthe event of change should only be called \"at the end of the movement on the switch\" (\"touchEnd finger say\")\n", "updateAuthor": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2013-09-16T06:42:29.000+0000", "updated": "2013-09-16T06:42:29.000+0000" }, { "id": "271199", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "body": "ok, I made these two videos to help you understand the problem\r\n\r\nfirst video made with the SDK 3.1.3.v20130908095038 of titanium, Apple iOS 7 SDK , simulator iOS 7 (incorrect working)\r\n\r\nsecond video made with the SDK 3.1.3.v20130908095038 of titanium, Apple iOS 7 SDK , simulator iOS 6.1(correct working)\r\n\r\n(video added to Attachments)", "updateAuthor": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2013-09-16T07:00:30.000+0000", "updated": "2013-09-16T07:09:50.000+0000" }, { "id": "271225", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "When apple says change we fire change. We don't actually track touches for sliders, switches and the like. Not our bug.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-09-16T10:34:52.000+0000", "updated": "2013-09-16T10:34:52.000+0000" }, { "id": "271245", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~nicolomonili] If you believe this is still a bug of ours, please provide a test case and we'll take a look. Thanks!", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-16T12:46:21.000+0000", "updated": "2013-09-16T12:46:21.000+0000" }, { "id": "271247", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "body": "bug or not, it is unthinkable that the \"change\" event, now , behaves as I described!\r\nit is not possible that the event will unleash all those times as shown in the video\r\n\r\nthis is a sample code\r\n\r\n{code}\r\nvar switch = Ti.UI.createSwitch({\r\n value : true\r\n});\r\n\r\n\r\nswitch.addEventListener('change',function(e){\r\n Ti.API.info(\"change event call\"); \r\n});\r\n{code}", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-16T12:51:27.000+0000", "updated": "2013-09-16T12:53:57.000+0000" }, { "id": "271358", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified behavior as described occurs with iOS 7 and does not occur on iOS 6 with sample code below:\n\nPlease note, \"switch\" is a reserved word. This might cause unexpected behavior, and may throw code errors in Studio. (Ticket to be opened on this subject)\n\n{code}\nvar win= Ti.UI.createWindow();\n\nvar mySwitch = Ti.UI.createSwitch({\n value : true\n});\n \nmySwitch.addEventListener('change',function(e){\n Ti.API.info(\"change event call\"); \n});\n\nwin.add(mySwitch);\n\nwin.open();\n{code}\n\nSteps to reproduce:\n1) Install to device or simulator\n2) Monitor console\n3) Tap or swipe to change switch state \nResult - works as expected, but occasionally swipe will generate more than one change event\n4) Press and drag off the control\nResult - change event thrown until finger lifted", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-16T21:09:56.000+0000", "updated": "2013-09-16T21:09:56.000+0000" }, { "id": "271364", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "body": "I know that switch is a reserved word , in fact, in my tests do not use. I used in this case to show the code", "updateAuthor": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2013-09-16T21:26:44.000+0000", "updated": "2013-09-16T21:26:44.000+0000" }, { "id": "271369", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~nicolomonili] That comment was more for the QE team. When a ticket is fixed, we use the code from the original ticket to create a test case. I added the window for the same reason. ", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-16T21:57:22.000+0000", "updated": "2013-09-16T21:57:35.000+0000" }, { "id": "271377", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull merged.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-16T22:23:56.000+0000", "updated": "2013-09-16T22:23:56.000+0000" }, { "id": "271379", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "31X https://github.com/appcelerator/titanium_mobile/pull/4696\nmaster https://github.com/appcelerator/titanium_mobile/pull/4695", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-16T22:25:29.000+0000", "updated": "2013-09-16T22:25:29.000+0000" }, { "id": "271380", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Test case \n\n{code}\nvar win = Ti.UI.createWindow({\n backgroundColor: 'white'\n});\n\nvar basicSwitch = Ti.UI.createSwitch({\n value:true // mandatory property for iOS \n});\nwin.add(basicSwitch);\n\nbasicSwitch.addEventListener('change',function(e){\n Ti.API.info('Switch value: ' + basicSwitch.value);\n});\n\nwin.open();\n\n// print initial value\nTi.API.info('Switch value: ' + basicSwitch.value);\n{code}", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-16T22:26:30.000+0000", "updated": "2013-09-16T22:26:30.000+0000" }, { "id": "271441", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with:\r\n\r\nAppcelerator Studio: 3.1.3.201309132456\r\nSDK: 3.1.3.v20130916153052\r\nacs:1.0.6\r\nalloy:1.2.2-cr\r\nnpm:1.3.2\r\ntitanium:3.1.2\r\ntitanium-code-processo:1.0.2\r\nOSX: 10.8.4\r\nXcode:5.0 GM seed\r\nDevices:ipad3(v7.0),ipod touch3(v6.1.3)\r\n\r\n{code}\r\nvar win= Ti.UI.createWindow();\r\n \r\nvar mySwitch = Ti.UI.createSwitch({\r\n value : true\r\n});\r\n \r\nmySwitch.addEventListener('change',function(e){\r\n Ti.API.info(\"change event call\"); \r\n});\r\n \r\nwin.add(mySwitch);\r\nwin.open();\r\n\r\n{code}\r\n\r\nUsing the above code have verified the fix.\r\nthe event of change is being called only once at the end of the movement on the switch.\r\nHence closing the issue.\r\n", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-17T08:48:25.000+0000", "updated": "2013-09-17T08:48:25.000+0000" }, { "id": "366069", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "body": "SDK 5.0.2 and iOS 9. The issue has come back", "updateAuthor": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2015-10-07T13:39:24.000+0000", "updated": "2015-10-07T13:39:24.000+0000" }, { "id": "366070", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~nicolomonili] a test case please, along with your environment.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-07T13:44:35.000+0000", "updated": "2015-10-07T13:44:35.000+0000" }, { "id": "366074", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "body": "i have a video on iOS 9 , but i can't post it if the issue is CLOSED\r\n{code}\r\nvar win= Ti.UI.createWindow();\r\n \r\nvar mySwitch = Ti.UI.createSwitch({\r\n value : true\r\n});\r\n \r\nmySwitch.addEventListener('change',function(e){\r\n Ti.API.info(\"change event call\"); \r\n});\r\n \r\nwin.add(mySwitch);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2015-10-07T13:59:10.000+0000", "updated": "2015-10-07T13:59:10.000+0000" }, { "id": "366075", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FYI", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-07T14:02:03.000+0000", "updated": "2015-10-07T14:02:03.000+0000" }, { "id": "366076", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopened. What was the last SDK you used where it worked?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-07T14:02:32.000+0000", "updated": "2015-10-07T14:02:32.000+0000" }, { "id": "366077", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "body": "I noticed now that the problem is also on iOS 8 with the SDK 3.5.1", "updateAuthor": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2015-10-07T14:04:02.000+0000", "updated": "2015-10-07T14:04:02.000+0000" }, { "id": "366079", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Try 3.5.1 on iOS 7.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-07T14:07:51.000+0000", "updated": "2015-10-07T14:07:51.000+0000" }, { "id": "366080", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "body": "SDK 3.5.1 , iOS 7 simulator : i have this error\r\n\r\n{code}\r\n[ERROR] : Invalid \"--sim-version\" value \"7.1\"\r\nAccepted values:\r\n 9.0\r\nFor help, run: titanium help build\r\nTRACE | titanium exited with exit code 1\r\nERROR | Error: ti run exited with error code 1\r\n at ChildProcess. (/Users/nicolo/.appcelerator/install/5.0.2/package/node_modules/appc-cli-titanium/plugins/run.js:89:66)\r\n at ChildProcess.EventEmitter.emit (events.js:117:20)\r\n at Process.ChildProcess._handle.onexit (child_process.js:789:12)\r\n{code}", "updateAuthor": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2015-10-07T14:13:25.000+0000", "updated": "2015-10-07T14:13:25.000+0000" }, { "id": "366081", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Ah, try using an older CLI. `appc use 4.1.3` and then re-run. You can `appc-use 5.0.2` afterwards to get back", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-07T14:15:32.000+0000", "updated": "2015-10-07T14:15:32.000+0000" }, { "id": "366083", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "body": "SDK 3.5.1 , iOS 7 simulator , cli 4.1.3 and xcode 7\r\n{code}\r\n[ERROR] : Invalid \"--sim-version\" value \"7.1\"\r\nAccepted values:\r\n 9.0\r\nFor help, run: titanium help build\r\nTRACE | titanium exited with exit code 1\r\nERROR | Error: ti run exited with error code 1\r\n at ChildProcess. (/Users/nicolo/.appcelerator/install/4.1.3/package/node_modules/appc-cli-titanium/plugins/run.js:84:66)\r\n at ChildProcess.EventEmitter.emit (events.js:117:20)\r\n at Process.ChildProcess._handle.onexit (child_process.js:789:12)\r\n{code}\r\n\r\nXcode error : \r\n\r\n!https://mega.nz/#!egIXjCSa!1MElnqqprmP-OiRPlsd8bCMe00AvbambMMzP394NaHE!", "updateAuthor": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2015-10-07T14:30:03.000+0000", "updated": "2015-10-07T14:38:39.000+0000" }, { "id": "366086", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Ah, got it. I thought you still had Xcode 6 installed. If you do, and can test, would be helpful to get that data point.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-07T14:42:57.000+0000", "updated": "2015-10-07T14:42:57.000+0000" }, { "id": "366088", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "body": "currently i can't install xcode 6 . So , there isn't way to test the issue ?", "updateAuthor": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2015-10-07T14:51:54.000+0000", "updated": "2015-10-07T14:51:54.000+0000" }, { "id": "366097", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~emerriman] could you take a look?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-07T15:31:30.000+0000", "updated": "2015-10-07T15:31:30.000+0000" }, { "id": "366098", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "body": "Video test on iOS 9 , SDK 5.0.2\r\nhttps://mega.nz/#!S45WSbAK!yBz2FCNRxW5SawKoVWvZ3YpyVL51u55qYwRppvnjfFA", "updateAuthor": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2015-10-07T15:34:41.000+0000", "updated": "2015-10-07T15:34:41.000+0000" }, { "id": "366778", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "body": "+1", "updateAuthor": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2015-10-14T11:59:38.000+0000", "updated": "2015-10-14T11:59:38.000+0000" }, { "id": "371403", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello we've investigated the issue , the video taken on iOS 9 is displaying the native behavior of the switch. If you were to do the same ,dragging of the switch till the end on any of the switches inside the IPhone settings.The behavior will be the same. The event will be called before the touchend. Hope that helps. Thank you! ", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-11-24T23:25:31.000+0000", "updated": "2015-12-10T22:52:13.000+0000" }, { "id": "416298", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-29T22:36:05.000+0000", "updated": "2017-03-29T22:36:05.000+0000" } ], "maxResults": 31, "total": 31, "startAt": 0 } } }