{ "id": "130504", "key": "TIMOB-17012", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2016-08-24T20:14:21.000+0000", "created": "2014-05-15T11:12:12.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "defect" ], "versions": [ { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-20T17:42:58.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": "13719", "name": "Windows Hybrid", "description": "Windows Hybrid platform" } ], "description": "h4. Problem Description\r\nContact API for windows platform throws Ti.Contact undefined error.\r\n\r\nh4. Steps to reproduce:\r\n1. Create an application using titanium/appcelerator studio having the deployment target as mobileweb (classic titanium)\r\n2. Paste this code to app.js:\r\n\r\n{Code}\r\nvar win=Ti.UI.createWindow({\r\n\tbackgroundColor:'white'\r\n});\r\n\r\n\r\nvar button=Ti.UI.createButton({\r\n\twidth:100,\r\n\theight:50,\r\n\ttitle:'Add Contact'\r\n});\r\n\r\n\r\nbutton.addEventListener('click',function(e){\r\n\tvar workAddress1 = {\r\n\t 'CountryCode': 'us',\r\n\t 'Street': '440 N. Bernardo Avenue',\r\n\t 'City': 'Mountain View',\r\n\t 'State': 'California',\r\n\t 'Country': 'United States',\r\n\t 'ZIP': '94043'\r\n\t};\r\n\r\n\tTi.Contacts.createPerson({\r\n\t firstName:'Arthur',\r\n\t lastName:'Evans',\r\n\t address:{\r\n\t 'work':[workAddress1]\r\n\t }\r\n\t});\r\n});\r\n\r\n\r\nwin.add(button);\r\nwin.open();\r\n\r\n{Code}\r\n3. Changed the SDK version in tiapp.xml to the Hybrid SDK\r\n4. Open the command prompt and move to the project directory\r\n5. Build for device using the command - titanium build -p mobileweb -T wp8 -C xe --wp8-publisher-guid \r\n\r\nh4. Actual Result:\r\nCode breaks and throws undefined error\r\n\r\nh4. Expected Result:\r\nContact should be added to the phone contact list\r\n", "attachment": [ { "id": "48122", "filename": "TiContact.jpg", "author": { "name": "svarshney", "key": "svarshney", "displayName": "Sapan Varshney", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-15T11:12:12.000+0000", "size": 47466, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "Contact API for windows platform throws error", "creator": { "name": "svarshney", "key": "svarshney", "displayName": "Sapan Varshney", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "svarshney", "key": "svarshney", "displayName": "Sapan Varshney", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio, build: 3.2.1.201402041146\r\nSDK Build(Hybrid) : 3.2.1.v20140404120127\r\nacs : 1.0.14\r\nalloy : 1.3.1\r\nnpm : 1.3.2\r\ntitanium : 3.2.1\r\nDevice: Nokia Lumia 720\r\nOS : Windows 8.1", "comment": { "comments": [ { "id": "305133", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~rtlechuga] FYI", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-15T18:07:34.000+0000", "updated": "2014-05-15T18:07:34.000+0000" }, { "id": "394271", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Windows Hybrid is dead.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-08-24T20:14:21.000+0000", "updated": "2016-08-24T20:14:21.000+0000" }, { "id": "413823", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as Windows Hybrid is no longer supported.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T17:42:58.000+0000", "updated": "2017-03-20T17:42:58.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }