{ "id": "150888", "key": "TIMOB-19449", "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": "2015-09-01T22:46:05.000+0000", "created": "2015-09-01T20:27:38.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "ios8", "notification" ], "versions": [ { "id": "16711", "description": "Release 3.5.1", "name": "Release 3.5.1", "archived": false, "released": true, "releaseDate": "2015-03-06" }, { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" }, { "id": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2015-09-01T22:46:05.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": "h6.Issue Description\r\n\r\nWhen the type Ti.App.iOS.USER_NOTIFICATION_TYPE_SOUND is defined and the sound property is not defined in the scheduleLocalNotification function, the device is not making the default sound and the device vibration on the alert. \r\n\r\nh6.Expected behavior\r\nThe device should make the sound alert and vibrate. \r\n\r\nh6.Steps to Replicate: \r\n1. Create a new titanium classic project \r\n2. Grab the app.js file\r\n3. Replace the code with the testcase code \r\n4. Run the application on iOS device\r\n\r\nh6.Test Case\r\n\r\n{code}\r\n// Check if the device is running iOS 8 or later, before registering for local notifications\r\nif (Ti.Platform.name == \"iPhone OS\" && parseInt(Ti.Platform.version.split(\".\")[0]) >= 8) {\r\n Ti.App.iOS.registerUserNotificationSettings({\r\n\t types: [\r\n Ti.App.iOS.USER_NOTIFICATION_TYPE_ALERT,\r\n Ti.App.iOS.USER_NOTIFICATION_TYPE_SOUND,\r\n Ti.App.iOS.USER_NOTIFICATION_TYPE_BADGE\r\n ]\r\n });\r\n}\r\n\r\n\r\n\r\nvar notification = Ti.App.iOS.scheduleLocalNotification({\r\n alertAction: \"update\",\r\n alertBody: \"New content available! Update now?\",\r\n badge: 1,\r\n date: new Date(new Date().getTime() + 6000),\r\n //sound: \"/ahem_x.wav\",\r\n}); \r\n\r\nvar mainWindow = Ti.UI.createWindow();\r\n\r\nvar mainView = Ti.UI.createView({backgroundColor:\"white\"});\r\n\r\nvar desclabel = Ti.UI.createLabel({text:\"Press the home or lock button and wait for the alert \"});\r\n\r\nmainWindow.add(mainView);\r\nmainView.add(desclabel);\r\nmainWindow.open();\r\n\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "iOS schedule local notification doesn't make the default sound or phone vibration", "creator": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS 8.4", "comment": { "comments": [ { "id": "361999", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~rramirez] Have you tried to set the sound property to \"default\"? Please try if not!\r\n\r\nEDIT: This is what we're doing under the hood:\r\n\r\n{code}\r\nif ([sound isEqual:@\"default\"]) {\r\n localNotif.soundName = UILocalNotificationDefaultSoundName;\r\n}\r\n{code}\r\n\r\nSo providing \"default\" as the value of the \"sound\"-property should fix the issue.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-09-01T22:28:23.000+0000", "updated": "2015-09-01T22:30:55.000+0000" }, { "id": "362002", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Closing this issue, since [~rramirez] have been able to fix the issue by setting the {{sound}} property to \"default\".", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-09-01T22:46:05.000+0000", "updated": "2015-09-01T22:46:05.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }