{
	"id": "163206",
	"key": "TIMOB-23902",
	"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": "19101",
				"name": "Hyperloop 2.1.0",
				"archived": false,
				"released": true,
				"releaseDate": "2017-04-28"
			}
		],
		"resolution": {
			"id": "1",
			"description": "A fix for this issue is checked into the tree and tested.",
			"name": "Fixed"
		},
		"resolutiondate": "2017-04-04T14:39:42.000+0000",
		"created": "2016-09-14T15:32:21.000+0000",
		"priority": {
			"name": "High",
			"id": "2"
		},
		"labels": [],
		"versions": [],
		"issuelinks": [],
		"assignee": {
			"name": "jvennemann",
			"key": "jvennemann",
			"displayName": "Jan Vennemann",
			"active": true,
			"timeZone": "Europe/Berlin"
		},
		"updated": "2017-04-17T22:20:33.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": "13715",
				"name": "Hyperloop",
				"description": "Hyperloop project"
			},
			{
				"id": "10206",
				"name": "iOS",
				"description": "iOS Platform"
			},
			{
				"id": "10207",
				"name": "Tooling"
			}
		],
		"description": "Numeric values that are returned in block-attributes are returned to the application incorrectly.\r\n\r\n*Use-case*: \r\nCopy the following in the plist-section of your tiapp.xml:\r\n{code:xml}\r\nNSSpeechRecognitionUsageDescription\r\nCan we parse your spoken words?\r\n{code}\r\n\r\nRun the following code on an iOS 10 device with a new appc-project ({{appc new -p ios}}):\r\n{code}\r\nvar SFSpeechRecognizer = require(\"Speech/SFSpeechRecognizer\");\r\nvar SFSpeechRecognizerAuthorizationStatusAuthorized = require(\"Speech\").SFSpeechRecognizerAuthorizationStatusAuthorized;\r\n    \r\nvar win = Ti.UI.createWindow({\r\n    backgroundColor: \"#fff\"\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n    title: \"Request authorization\"\r\n});\r\n\r\nbtn.addEventListener(\"click\", function() {\r\n    SFSpeechRecognizer.requestAuthorization(function(status) {\r\n        alert(status) // The \"status\" returns \"{}\" instead of \"3\" (int-value of the constant)\r\n\r\n        // This will return \"false\", since the status ({}) is not equal the constant (3)\r\n        // alert(\"Authorized: \" + status == SFSpeechRecognizerAuthorizationStatusAuthorized);\r\n    });\r\n});\r\n\r\nwin.add(btn);\r\nwin.open();\r\n{code}\r\n\r\nExpected behavior: An alert \"3\" is shown\r\nActual behavior: An alert \"{}\" is shown",
		"attachment": [],
		"flagged": false,
		"summary": "Hyperloop: iOS - Numeric attribute in blocks not returned correctly",
		"creator": {
			"name": "hknoechel",
			"key": "hansknoechel",
			"displayName": "Hans Knöchel",
			"active": true,
			"timeZone": "Europe/Berlin"
		},
		"subtasks": [],
		"reporter": {
			"name": "hknoechel",
			"key": "hansknoechel",
			"displayName": "Hans Knöchel",
			"active": true,
			"timeZone": "Europe/Berlin"
		},
		"environment": "Hyperloop 1.2.7\r\nTitanium 5.5.0.GA",
		"comment": {
			"comments": [
				{
					"id": "398469",
					"author": {
						"name": "jvennemann",
						"key": "jvennemann",
						"displayName": "Jan Vennemann",
						"active": true,
						"timeZone": "Europe/Berlin"
					},
					"body": "No, this one is caused by a wrong handling of enums in the block callback wrapper. I will look into it and see how we can properly detect the type of the enum and then do the required conversions.",
					"updateAuthor": {
						"name": "jvennemann",
						"key": "jvennemann",
						"displayName": "Jan Vennemann",
						"active": true,
						"timeZone": "Europe/Berlin"
					},
					"created": "2016-10-10T08:08:36.000+0000",
					"updated": "2016-10-10T08:08:36.000+0000"
				},
				{
					"id": "416729",
					"author": {
						"name": "jvennemann",
						"key": "jvennemann",
						"displayName": "Jan Vennemann",
						"active": true,
						"timeZone": "Europe/Berlin"
					},
					"body": "PR (master): https://github.com/appcelerator/hyperloop.next/pull/139\r\nPR (2_0_X): https://github.com/appcelerator/hyperloop.next/pull/140",
					"updateAuthor": {
						"name": "jvennemann",
						"key": "jvennemann",
						"displayName": "Jan Vennemann",
						"active": true,
						"timeZone": "Europe/Berlin"
					},
					"created": "2017-04-04T13:40:02.000+0000",
					"updated": "2017-04-04T13:40:02.000+0000"
				},
				{
					"id": "417520",
					"author": {
						"name": "amukherjee",
						"key": "amukherjee",
						"displayName": "Abir Mukherjee",
						"active": true,
						"timeZone": "America/Los_Angeles"
					},
					"body": "Verified fix with this environment:\r\nNode Version: 6.10.1\r\nNPM Version: 3.10.10\r\nMac OS: 10.12.4\r\nAppc CLI: 6.1.0\r\nAppc CLI NPM: 4.2.9\r\nAppcelerator Studio, build: 4.8.1.201612050850\r\nXcode 8.2.1\r\nHyperloop 2.1.0 (master) and 2.0.1\r\niOS 10.2\r\n\r\nI tested the above demo code on an iOS 10.2 Device and found that it worked as expected. Specifically, I confirmed that \"3\" was shown in the Alert box after pressing the button.",
					"updateAuthor": {
						"name": "amukherjee",
						"key": "amukherjee",
						"displayName": "Abir Mukherjee",
						"active": true,
						"timeZone": "America/Los_Angeles"
					},
					"created": "2017-04-17T22:20:06.000+0000",
					"updated": "2017-04-17T22:20:06.000+0000"
				}
			],
			"maxResults": 4,
			"total": 4,
			"startAt": 0
		}
	}
}