Project: titanium
Issue TIMOB-19633: iOS: AUDIO_SESSION_CATEGORY_AMBIENT stops background music
This command stops iPod music, while it shouldn't. Ti.Media.audioSessionCategory = Ti.Media.AUDIO_SESSION_CATEGORY_AMBIENT; Someone found a workaround for this, see [this link|https://community.appcelerator.com/topic/2819/ios-app-stops-device-audio-at-startup-music-app-pandora-etc/2] Summarized: >>I ended up solving this problem by editing TiApp.m on the SDK and adding the following code to didFinishLaunchingWithOptions: NSError *setCategoryError = nil; BOOL audioOk = [[AVAudioSession sharedInstance] setCategory: AVAudioSessionCategoryAmbient error: &setCategoryError];
Story points: 2