{ "id": "139306", "key": "AC-1343", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2015-04-07T00:33:51.000+0000", "created": "2014-11-09T15:36:01.000+0000", "labels": [ "TCSupportTriage", "ios", "iphone", "sdk-3.4" ], "versions": [], "issuelinks": [], "assignee": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "updated": "2016-03-08T07:37:45.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "\tTitanium.Media.vibrate();\r\nand\r\n\r\n\tTi.Media.vibrate();\r\n\r\ndoes not work. i.e. the phone does not vibrate.", "attachment": [], "flagged": false, "summary": "Titanium.Media.vibrate(); does not work for IoS ", "creator": { "name": "maveick2k", "key": "maveick2k", "displayName": "Samie Syed", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "maveick2k", "key": "maveick2k", "displayName": "Samie Syed", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "titanium sdk 4.1\r\nIphone 4 (device)\r\nIoS 7", "comment": { "comments": [ { "id": "331313", "author": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "body": "As a reference only, runs fine on:\r\n{code}\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.10\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 24.0GB\r\n\r\nNode.js\r\n Node.js Version = 0.10.29\r\n npm Version = 1.4.14\r\n\r\nTitanium CLI\r\n CLI Version = 3.4.0\r\n node-appc Version = 0.2.14\r\n\r\nTitanium SDKs\r\n 3.4.0.v20140925164115\r\n Version = 3.4.0\r\n\r\nTest Devices\r\n iPhone 6+ running iOS 8.1\r\n iPhone 4 running iOS 7.1.2\r\n{code}\r\n\r\n\r\nh5. index.xml\r\n{code}\r\n\r\n \r\n \r\n \r\n\r\n{code}\r\n\r\nh5. index.js\r\n{code}\r\n$.wrapper.addEventListener(\"click\", function(e){\r\n\tTi.Media.vibrate();\r\n});\r\n\r\n$.wrapper.open();\r\n{code}\r\n\r\nh5. index.tss\r\n{code}\r\n\"#wrapper\":{\r\n\tlayout: \"vertical\", backgroundColor: \"#ffffff\"\r\n}\r\n{code}", "updateAuthor": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "created": "2014-11-09T15:50:45.000+0000", "updated": "2014-11-09T20:27:37.000+0000" }, { "id": "331314", "author": { "name": "maveick2k", "key": "maveick2k", "displayName": "Samie Syed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi,\r\n\r\nCan you test it on iOS 7, iPhone 4 please?", "updateAuthor": { "name": "maveick2k", "key": "maveick2k", "displayName": "Samie Syed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-11-09T15:54:45.000+0000", "updated": "2014-11-09T15:54:45.000+0000" }, { "id": "331354", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi,\r\n\r\nJust tested on iPhone 4 with IOS 7.\r\nTi.Media.vibrate(); works well. \r\n\r\nHere is the test case.\r\n{code}\r\nvar win = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar button = Titanium.UI.createButton({\r\n\ttop: 50,\r\n\ttitle: \"vibrate start\"\r\n});\r\n\r\nwin.add(button);\r\n \r\nbutton.addEventListener(\"click\", function(){\r\n\tTi.Media.vibrate();\r\n});\r\n \r\nwin.open();\r\n{code}", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-11-10T06:37:43.000+0000", "updated": "2014-11-10T06:37:43.000+0000" }, { "id": "332137", "author": { "name": "maveick2k", "key": "maveick2k", "displayName": "Samie Syed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks that works, is there anyway I can put a pattern for how long the vibration lasts for on the iPhone?", "updateAuthor": { "name": "maveick2k", "key": "maveick2k", "displayName": "Samie Syed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-11-14T01:28:55.000+0000", "updated": "2014-11-14T01:28:55.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }