{ "id": "117167", "key": "TIMOB-14560", "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": "15695", "description": "2013 Sprint 20", "name": "2013 Sprint 20", "archived": true, "released": true, "releaseDate": "2013-10-04" }, { "id": "15696", "description": "2013 Sprint 20 API", "name": "2013 Sprint 20 API", "archived": true, "released": true, "releaseDate": "2013-10-04" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-12-13T19:35:39.000+0000", "created": "2013-07-15T03:54:34.000+0000", "priority": null, "labels": [ "ios", "qe-closed-3.2.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-12-17T00:08:16.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": "There is a typo in setActivityType where accuracy is being set instead of activityType", "attachment": [], "flagged": false, "summary": "iOS: Typo in setActivityType (GeolocationModule.m)", "creator": { "name": "ben.bahrenburg@gmail.com", "key": "ben.bahrenburg@gmail.com", "displayName": "Ben Bahrenburg", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ben.bahrenburg@gmail.com", "key": "ben.bahrenburg@gmail.com", "displayName": "Ben Bahrenburg", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS", "comment": { "comments": [ { "id": "261812", "author": { "name": "ben.bahrenburg@gmail.com", "key": "ben.bahrenburg@gmail.com", "displayName": "Ben Bahrenburg", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR provided https://github.com/appcelerator/titanium_mobile/pull/4454", "updateAuthor": { "name": "ben.bahrenburg@gmail.com", "key": "ben.bahrenburg@gmail.com", "displayName": "Ben Bahrenburg", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-15T16:57:45.000+0000", "updated": "2013-07-15T16:57:45.000+0000" }, { "id": "276067", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~ben.bahrenburg@gmail.com], [~ingo] \n\nAre there reproducible steps for this ticket?", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-10-22T00:04:38.000+0000", "updated": "2013-10-22T00:04:38.000+0000" }, { "id": "276072", "author": { "name": "ben.bahrenburg@gmail.com", "key": "ben.bahrenburg@gmail.com", "displayName": "Ben Bahrenburg", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Apologizes this was fixed as part of this PR https://github.com/appcelerator/titanium_mobile/pull/4454. ", "updateAuthor": { "name": "ben.bahrenburg@gmail.com", "key": "ben.bahrenburg@gmail.com", "displayName": "Ben Bahrenburg", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-22T00:15:44.000+0000", "updated": "2013-10-22T00:15:44.000+0000" }, { "id": "284236", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed on:\nMac OSX 10.9 Mavericks\nTitanium SDK, build: 3.2.0.v20131212122847\nCLI: 3.2.0-cr3\n\nGeolocationModule.m now has\n{code}setActivityType:activityType{code}\ninstead of\n{code}setActivityType:accuracy{code}\n\nClosing.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-13T19:26:58.000+0000", "updated": "2013-12-13T19:26:58.000+0000" }, { "id": "284242", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Re-opening, waiting for [~srahim] test code", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-13T19:35:06.000+0000", "updated": "2013-12-13T22:23:24.000+0000" }, { "id": "284623", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed. Verified Ti.Geolocation.setActivityType is correctly setting the activityTypes. \n\nBelow is the test code. Verify the last alert dialog displays something like this: \"current ActivityType is :: \" + Ti.Geolocation.activityType + \" should be :: \"+ Ti.Geolocation.ACTIVITYTYPE_FITNESS\"\n\n{code:title=app.js}\nTi.Geolocation.purpose = \"GPS demo\";\nvar authorization = Titanium.Geolocation.locationServicesAuthorization;\nTi.API.info('Authorization: '+authorization);\nif (authorization == Titanium.Geolocation.AUTHORIZATION_DENIED) {\n\tTi.UI.createAlertDialog({\n\t\ttitle:'Kitchen Sink',\n\t\tmessage:'You have disallowed Titanium from running geolocation services.'\n\t}).show();\n}\nelse if (authorization == Titanium.Geolocation.AUTHORIZATION_RESTRICTED) {\n\tTi.UI.createAlertDialog({\n\t\ttitle:'Kitchen Sink',\n\t\tmessage:'Your system has disallowed Titanium from running geolocation services.'\n\t}).show();\n}\n\nTitanium.Geolocation.headingFilter = 90;\nTi.Geolocation.getCurrentHeading(function(e)\n{\n\tif (e.error)\n\t{\n\t\tcurrentHeading.text = 'error: ' + e.error;\n\t\tTi.API.info(\"Code translation: \"+translateErrorCode(e.code));\n\t\treturn;\n\t}\n\tvar x = e.heading.x;\n\tvar y = e.heading.y;\n\tvar z = e.heading.z;\n\tvar magneticHeading = e.heading.magneticHeading;\n\tvar accuracy = e.heading.accuracy;\n\tvar trueHeading = e.heading.trueHeading;\n\tvar timestamp = e.heading.timestamp;\n\n\t\n\tTitanium.API.info('geo - current heading: ' + new Date(timestamp) + ' x ' + x + ' y ' + y + ' z ' + z);\n});\nalert(\"current ActivityType :: \" + Ti.Geolocation.activityType);\nTi.API.info(\"changing activityType to Ti.Geolocation.ACTIVITYTYPE_FITNESS\");\nTi.Geolocation.setActivityType(Ti.Geolocation.ACTIVITYTYPE_FITNESS);\nalert(\"current ActivityType is :: \" + Ti.Geolocation.activityType + \" should be :: \"+ Ti.Geolocation.ACTIVITYTYPE_FITNESS);\n{code}\n\nTested on:\n\nAppcelerator Studio, build: 3.2.0.201312151544\nSDK build: 3.2.0.v20131216064236\nCLI: 3.2.0-cr3\nAlloy: 1.3.0-cr\nXcode: 5.0.2\nDevice: iphone 4s (7.0.2), iphone 5 (6.1.3)\n", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-17T00:07:56.000+0000", "updated": "2013-12-17T00:07:56.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }