rammohan.acharyadasa
Posts: 0
Joined: Thu Apr 05, 2012 5:03 pm

how to set the AVAudioSessionCategory to AVAudioSessionCategoryPlayback

i downloaded app from tiggzi,
open tiggzi project,
export--xcode
to play audio in background in io6,
i need to do below

  1. UIBackgroundModes set to audio

  2. AVAudioSessionCategory to AVAudioSessionCategoryPlayback
    i did 1st one using .pslit in xcode
    but how to do 2nd one ( how to AVAudioSessionCategory to AVAudioSessionCategoryPlayback)

    some links i tried to do
    http://developer.apple.com/library/io...

    http://stackoverflow.com/questions/12...

    http://stackoverflow.com/questions/30...

    pls help me on this. i need this asap

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

how to set the AVAudioSessionCategory to AVAudioSessionCategoryPlayback

Those links and solutions are your best sources. You could also ask PhoneGap directly.

rammohan.acharyadasa
Posts: 0
Joined: Thu Apr 05, 2012 5:03 pm

how to set the AVAudioSessionCategory to AVAudioSessionCategoryPlayback

Max,
i could able to set it correctly..
It is working great.....
Before ios6 it was working without setting up avaudiosession.
But with ios6 we should set it explicitly to play audio.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

how to set the AVAudioSessionCategory to AVAudioSessionCategoryPlayback

It might work with PhoneGap 2.1 or higher which supports iOS 6. The current version in Tiggzi is 2.0.

Return to “Issues”