{ "id": "145237", "key": "TIMOB-18624", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2015-11-09T19:20:24.000+0000", "created": "2015-02-27T17:15:43.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [ { "id": "49685", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "149128", "key": "MOD-2131", "fields": { "summary": "Map: Draggable doesn't work, pin drops soon before touch ends", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-11-09T19:20:24.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": "h6.Issue Description\r\nUsing pins on a map (Ti.Map) an event wired up to the PinChangeDragState event. When we enable either the test service or the performance services built in to Appcelerator Studio, the event no longer fires. If the client disables those services, the event fires again as expected. \r\n\r\nh6.Expected Behaviour\r\npinchangedragstate - event fires when the pin's drag state changes \r\n\r\nh6.Actual Behaviour\r\npinchangedragstate - event no longer fires\r\n\r\nh6.Module Combos \r\nFrom our tests these are the different outcomes when Services were enabled:\r\n- With APM/SOASTA event not fired\r\n- With SOASTA events not fired\r\n- With APM event is fired\r\n\r\nh6.Sample Code\r\nAs example, get following map code to interact with it and notice outputs information to the console when each event fires:\r\nhttp://docs.appcelerator.com/titanium/latest/#!/guide/iOS_Map_Kit-section-37540542_iOSMapKit-EventHandling\r\n\r\n{code}\r\n\r\nvar win = Titanium.UI.createWindow({\r\n\tbackgroundColor : 'white',\r\n\tlayout : \"vertical\"\r\n});\r\n\r\nvar MapModule = require('ti.map');\r\n\r\nvar mapContainer = Titanium.UI.createView({\r\n\ttop : 5,\r\n\twidth : Ti.UI.FILL,\r\n\theight : Ti.UI.FILL\r\n});\r\nvar appc = MapModule.createAnnotation({\r\n\tlatitude : 37.389569,\r\n\tlongitude : -122.050212,\r\n\ttitle : 'Appcelerator HQ',\r\n\tsubtitle : 'Mountain View, CA',\r\n\tpincolor : MapModule.ANNOTATION_GREEN,\r\n\tdraggable : true\r\n});\r\nvar mapview = MapModule.createView({\r\n\tmapType : MapModule.HYBRID_TYPE,\r\n\tregion : {\r\n\t\tlatitude : 37.389569,\r\n\t\tlongitude : -122.050212,\r\n\t\tlatitudeDelta : 0.2,\r\n\t\tlongitudeDelta : 0.2\r\n\t},\r\n\tannotations : [appc]\r\n});\r\nmapview.addEventListener('pinchangedragstate', function(e) {\r\n\tTi.API.info(e.type);\r\n\tvar state = '';\r\n\tswitch (e.newState) {\r\n\tcase MapModule.ANNOTATION_DRAG_STATE_END:\r\n\t\tstate = \"ANNOTATION_DRAG_STATE_END\";\r\n\t\tbreak;\r\n\tcase MapModule.ANNOTATION_DRAG_STATE_START:\r\n\t\tstate = \"ANNOTATION_DRAG_STATE_START\";\r\n\t\tbreak;\r\n\tdefault :\r\n\t\tstate = \"unknown state: \" + e.newState;\r\n\t\tbreak;\r\n\t}\r\n\tTi.API.info(JSON.stringify(state));\r\n\tTi.API.info(JSON.stringify(e.newState));\r\n});\r\nmapview.addEventListener('click', function(e) {\r\n\tTi.API.info(e.type);\r\n\tTi.API.info(JSON.stringify(e.clicksource));\r\n});\r\nmapview.addEventListener('regionchanged', function(e) {\r\n\tTi.API.info(e.type);\r\n\tTi.API.info(e.latitude + \",\" + e.longitude);\r\n});\r\n\r\nmapContainer.add(mapview);\r\nwin.add(mapContainer);\r\n\r\nwin.open();\r\n{code}\r\n\r\nh6.App running with no services\r\n{code}\r\n[INFO] : click\r\n[INFO] : \"pin\"\r\n[INFO] : complete\r\n[INFO] : click\r\n[INFO] : null\r\n[INFO] : pinchangedragstate\r\n[INFO] : \"ANNOTATION_DRAG_STATE_START\"\r\n[INFO] : pinchangedragstate\r\n[INFO] : \"unknown state: 2\"\r\n[INFO] : pinchangedragstate\r\n[INFO] : \"ANNOTATION_DRAG_STATE_END\"\r\n[INFO] : pinchangedragstate\r\n[INFO] : \"unknown state: 0\"\r\n[INFO] : click\r\n[INFO] : \"pin\"\r\n{code}\r\n\r\nh6.This is soasta/apm\r\n{code}\r\n[INFO] : regionchanged\r\n[INFO] : 37.38956832885742,-122.05020904541016\r\n[INFO] : complete\r\n[INFO] : complete\r\n[INFO] : complete\r\n[INFO] : complete\r\n[INFO] : complete\r\n[INFO] : click\r\n[INFO] : \"pin\"\r\n[INFO] : click\r\n[INFO] : null\r\n[INFO] : click\r\n[INFO] : \"pin\"\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "iOS Map Kit pinchangedragstate Event not firing after enabling Test services", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 3.5.0\r\nTi.Map 2.2.0\r\nSOASTA Build Number 7419.312", "comment": { "comments": [ { "id": "344583", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "h6.SOASTA CSM Request #1455\r\niOS Map Kit pinchangedragstate Event not firing after enabling Test services\r\nhttps://soasta.zendesk.com/requests/1455", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-02-27T17:17:06.000+0000", "updated": "2015-02-27T17:17:06.000+0000" }, { "id": "369434", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~egomez]: We fixed some drag and drop issues on Ti.Map a few months ago, can you verify that?", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-11-09T19:11:13.000+0000", "updated": "2015-11-09T19:11:13.000+0000" }, { "id": "369435", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~hansknoechel] I have not had any issues lately thus this should not be an issue anymore. Assuming SOASTA version affected the Ti.Map events that does not seem to occur with latest either. Feel free to resolve as applicable. Thanks for the heads up. ", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-11-09T19:16:37.000+0000", "updated": "2015-11-09T19:16:37.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }