Skip to content

No Background Playback #3

Open
Open

Description

@imagecrafting

I'm using IOS 6.1 on an iPhone 4s. Downloaded the IPA from https://build.phonegap.com/apps/242993 as linked in Readme.md, and installed it through iTunes. The streaming works great, but hitting the home button on the device causes it to fade out.

I was under the impression that PhoneGap Build generated device-specific projects and then built them, which would not include any of the Objective-C code you're demonstrating here. If so, that might explain why it's behaving this way.

Any thoughts? Thanks.

Activity

  1. devgeeks commented on Nov 12, 2013

    @devgeeks
    Owner

    You are correct. The PhoneGap Build version does not have the tweaks needed to support background audio.

    For that you would have to compile it locally and make the changes.

  2. codeho commented on Dec 12, 2014

    @codeho

    By compile locally, you mean through XCode?
    i've done that but the audio still fades when pushing the home button.
    would you be so kind to drop me a quick explanation on what needs to be done?
    (i have done all the steps you mentioned in the Readme)

    thank you!

  3. vjanssens commented on Dec 24, 2014

    @vjanssens

    Hi everybody,

    I'm also having the same problem with iOS 8 and Xcode 6.1.
    @devgeeks do you have any idea if the problem could be with iOS8? Maybe something else?
    I'm a little bit at loss what to do..

  4. devgeeks commented on Jan 4, 2015

    @devgeeks
    Owner

    Not sure. When I get a chance, I'll test it out and see.

  5. ghenry22 commented on May 17, 2015

    @ghenry22

    The procedure listed still works fine with latest Xcode and ios8.3.

    You will need to build the binary using Xcode so that the modified Cordova files are used. Online build services like phonegapbuild will only look at your web files and plugins.

    This should really be included into the base Cordova distribution as a fix so that when you enable the background audio capability in Xcode it actually works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions