Apple ditches background audio

Discussion in 'iOS Programming' started by DennisdeWit, Jun 11, 2018.

  1. DennisdeWit macrumors regular

    DennisdeWit

    Joined:
    Nov 16, 2016
    Location:
    The Netherlands
    #1
    Hi,

    I am trying to build a radio app. But unfortunately, with the coming of iOS 12, all the background audio will be muted.

    Normally I use this code:

    Code:
    AVAudioSession.sharedInstance().setCategory(AVAudioSession.Category.playback)
    Since the new Swift, I get the notification that setCategory 'is not available in Swift'. It seems radio apps are dead in iOS 12?

    Thanks,
    Dennis
     

Share This Page