{ "id": "108614", "key": "TIMOB-12576", "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": "15104", "description": "2013 Sprint 03 API", "name": "2013 Sprint 03 API", "archived": true, "released": true, "releaseDate": "2013-02-11" }, { "id": "14813", "description": "2013 Sprint 03", "name": "2013 Sprint 03", "archived": true, "released": true, "releaseDate": "2013-02-11" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-02-05T00:48:06.000+0000", "created": "2013-01-26T20:26:53.000+0000", "priority": null, "labels": [ "regression" ], "versions": [], "issuelinks": [], "assignee": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-03-13T14:56: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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "*Problem description*\r\niOS Background Mode \"audio\" is not correctly converted to the Info.plist file with SDK 3.0.0.GA.\r\n\r\n*tiapp.xml*\r\n{code}\r\n\r\n \r\n audio\r\n \r\n\r\n{code}\r\n\r\n*Workaround*\r\n1. Set for Ti.SDK 3.0.0\r\n2. Compile the app to go on the device\r\n3. DO NOT TRANSFER it\r\n4. In the folder {appfolder}/build/iphone find the file info.plist\r\n5. Copy this file into {appfolder}/\r\n6. Edit this file; and add the key above (exactly as it is shown)\r\n7. Compile again for the device\r\n8. Put it on the device now\r\n9. Test it - should work.", "attachment": [], "flagged": false, "summary": "iOS: Background mode \"audio\" does not work with SDK 3.0.0.GA", "creator": { "name": "mdescher", "key": "mdescher", "displayName": "Michael Descher", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "mdescher", "key": "mdescher", "displayName": "Michael Descher", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Ti SDK 3.0 GA", "comment": { "comments": [ { "id": "237136", "author": { "name": "fishnyc22", "key": "fishnyc22", "displayName": "David Fischetti", "active": true, "timeZone": "America/New_York" }, "body": "Also having this same problem. Worked fine with previous SDK but receiving multiple reports from users that background audio no longer works. My info.plist in the root of my project has what I believe to be the proper code to enable background audio. Glad to help debug and try and solve this within my project. Thanks", "updateAuthor": { "name": "fishnyc22", "key": "fishnyc22", "displayName": "David Fischetti", "active": true, "timeZone": "America/New_York" }, "created": "2013-02-04T23:35:16.000+0000", "updated": "2013-02-04T23:40:05.000+0000" }, { "id": "237147", "author": { "name": "fishnyc22", "key": "fishnyc22", "displayName": "David Fischetti", "active": true, "timeZone": "America/New_York" }, "body": "Forgot to mention that I did try the workaround but it does not seem to work. The discussion actually references the proper code or \"key\" mentioned in step 6. This bug report only mentions the tiapp.xml code to include. ", "updateAuthor": { "name": "fishnyc22", "key": "fishnyc22", "displayName": "David Fischetti", "active": true, "timeZone": "America/New_York" }, "created": "2013-02-04T23:57:59.000+0000", "updated": "2013-02-04T23:57:59.000+0000" }, { "id": "237164", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Micheal Descher\r\n\r\n The correct way to specify background modes in iOS is like this:\r\n\r\n{code}\r\n \r\n \r\n \r\n UIBackgroundModes\r\n \r\n audio\r\n location\r\n voip\r\n newsstand-content\r\n external-accessory\r\n bluetooth-central\r\n \r\n \r\n \r\n \r\n{code}\r\n\r\nI have tested and verified that these backgroundmnodes are copied over into the info.plist correctly in 3.0.0.GA and in the latest master.\r\n\r\nFor more information, please follow our docs : http://docs.appcelerator.com/titanium/latest/#!/guide/tiapp.xml_and_timodule.xml_Reference (UIBackgroundModes Section)\r\n\r\nMarking ticket as invalid.\r\n", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-05T00:45:01.000+0000", "updated": "2013-02-05T00:46:26.000+0000" }, { "id": "237168", "author": { "name": "fishnyc22", "key": "fishnyc22", "displayName": "David Fischetti", "active": true, "timeZone": "America/New_York" }, "body": "Hmmm... I do in fact have the correct code listed above in my info.plist file. \r\n\r\nUIBackgroundModes\r\n\r\n\taudio\r\n\r\n\r\nThis worked fine in Ti API 1.7.5 but in Ti API 3.0.0 it fails to play in the background. My app hasn't changed since that version so has something else changed since 1.7.5 that could have caused this to not work?\r\n\r\nthanks", "updateAuthor": { "name": "fishnyc22", "key": "fishnyc22", "displayName": "David Fischetti", "active": true, "timeZone": "America/New_York" }, "created": "2013-02-05T00:55:31.000+0000", "updated": "2013-02-05T00:55:31.000+0000" }, { "id": "237177", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@David Fischetti, by iOS i ment iOS for Titanium (inside tiapp.xml). \nWe actually standardized the way to include keys into info.plist through tiapp.xml around the 2.0 release period.\nSorry for the confusion. ", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-05T01:02:15.000+0000", "updated": "2013-02-05T01:02:15.000+0000" }, { "id": "237185", "author": { "name": "fishnyc22", "key": "fishnyc22", "displayName": "David Fischetti", "active": true, "timeZone": "America/New_York" }, "body": "@sabil. Thanks for the reply and clarification. I've tried this a few times with no luck unfortunately. (and I do apologize for posting here as I don't want to treat it like a forum. I just think there's either a bug or some documentation missing somewhere.)\r\n\r\nHere's a snippet of my tiapp.xml\r\n\r\n\r\n \r\n Ti.UI.PORTRAIT\r\n \r\n \r\n Ti.UI.PORTRAIT\r\n Ti.UI.UPSIDE_PORTRAIT\r\n Ti.UI.LANDSCAPE_LEFT\r\n Ti.UI.LANDSCAPE_RIGHT\r\n \r\n \r\n \r\n \r\n \r\n UIBackgroundModes\r\n \r\n audio\r\n \r\n \r\n \r\n \r\n\r\nand i've deleted the info.plist from my {appfolder} and deleted the contents in my build folder and rebuilt the project. I then copied the info.plist in that build folder into {appfolder}. Looking at that code I do see \r\n\r\nUIBackgroundModes\r\n\r\n\taudio\r\n\r\n\r\nSo there's not much more to do than that I believe. \r\n\r\nThe audio I'm playing is opening a mp3 file from within a webview. So there's no setting there. I just plays in a native quicktime window within my app. \r\n\r\nAny help is appreciated. Thanks", "updateAuthor": { "name": "fishnyc22", "key": "fishnyc22", "displayName": "David Fischetti", "active": true, "timeZone": "America/New_York" }, "created": "2013-02-05T02:13:18.000+0000", "updated": "2013-02-05T02:13:18.000+0000" }, { "id": "238124", "author": { "name": "fishnyc22", "key": "fishnyc22", "displayName": "David Fischetti", "active": true, "timeZone": "America/New_York" }, "body": "Hi Sabil. I'm still not able to get this working? Do you see anything wrong with above. i've tried various different things but still not having any luck. any help is appreciated. ", "updateAuthor": { "name": "fishnyc22", "key": "fishnyc22", "displayName": "David Fischetti", "active": true, "timeZone": "America/New_York" }, "created": "2013-02-12T16:41:38.000+0000", "updated": "2013-02-12T16:41:38.000+0000" }, { "id": "238143", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@David Fishetti could you give me snippet of the code that you are trying to run, so that i can have a better perspective at what you are trying to do before i make any suggestions. \n\nThanks\nSabil", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-12T18:00:25.000+0000", "updated": "2013-02-12T18:00:25.000+0000" }, { "id": "238145", "author": { "name": "fishnyc22", "key": "fishnyc22", "displayName": "David Fischetti", "active": true, "timeZone": "America/New_York" }, "body": "Hey Sabil. I really appreciate the reply. I just updated to the latest Xcode (I think I missed the latest update). After doing that it seemed to start working. Not sure what happened there but perhaps there was some oddity causing it to break. Regardless. It IS working now. \r\n\r\nThanks again, \r\n\r\nDave", "updateAuthor": { "name": "fishnyc22", "key": "fishnyc22", "displayName": "David Fischetti", "active": true, "timeZone": "America/New_York" }, "created": "2013-02-12T18:10:15.000+0000", "updated": "2013-02-12T18:10:15.000+0000" }, { "id": "239376", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing it as per the comments as well as its working fine with 3.0.0.GA", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-22T10:58:58.000+0000", "updated": "2013-02-22T10:58:58.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }