[TIMOB-12576] iOS: Background mode "audio" does not work with SDK 3.0.0.GA
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2013-02-05T00:48:06.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 03 API, 2013 Sprint 03 |
Components | iOS |
Labels | regression |
Reporter | Michael Descher |
Assignee | Daniel Sefton |
Created | 2013-01-26T20:26:53.000+0000 |
Updated | 2013-03-13T14:56:45.000+0000 |
Description
*Problem description*
iOS Background Mode "audio" is not correctly converted to the Info.plist file with SDK 3.0.0.GA.
*tiapp.xml*
<iphone>
<backgroundModes>
<mode>audio</mode>
</backgroundModes>
</iphone>
*Workaround*
1. Set for Ti.SDK 3.0.0
2. Compile the app to go on the device
3. DO NOT TRANSFER it
4. In the folder {appfolder}/build/iphone find the file info.plist
5. Copy this file into {appfolder}/
6. Edit this file; and add the key above (exactly as it is shown)
7. Compile again for the device
8. Put it on the device now
9. Test it - should work.
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
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.
@Micheal Descher The correct way to specify background modes in iOS is like this:
I 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. For more information, please follow our docs : http://docs.appcelerator.com/titanium/latest/#!/guide/tiapp.xml_and_timodule.xml_Reference (UIBackgroundModes Section) Marking ticket as invalid.
Hmmm... I do in fact have the correct code listed above in my info.plist file.
@David Fischetti, by iOS i ment iOS for Titanium (inside tiapp.xml). We actually standardized the way to include keys into info.plist through tiapp.xml around the 2.0 release period. Sorry for the confusion.
@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.) Here's a snippet of my tiapp.xml
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.
@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. Thanks Sabil
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. Thanks again, Dave
Closing it as per the comments as well as its working fine with 3.0.0.GA