Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8219139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T13:03:20+00:00 2026-06-07T13:03:20+00:00

I am developing a music app, where the music continues playing even when the

  • 0

I am developing a music app, where the music continues playing even when the app goes into background and uses beginReceivingRemoteControlEvents so that the user can control the status of the playback by clicking the home button twice on his iPhone/iPad.

I went through the “Music App” Sample developed by Apple where it uses MPMusicPlayerController where it fetches songs from iPod Library, but it stops the song as soon as the app goes to background and does not support beginReceivingRemoteControlEvents.

I checked a few articles where it says use AVPlayer, but it doesnt support fetching music from iPod Library so I am stuck in how to play the music when the app goes into background and it is controlled via remoteEvents.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T13:03:22+00:00Added an answer on June 7, 2026 at 1:03 pm

    iPodMusicPlayer will play in the background, but through the iOS iPod Music Player. Your app will not receive notifications in the background. For that, you would need to set up an AVAudioSession and play with AVPlayer.

    Check here for more information

    Apple has a great resource here

    From the Apple Docs:

    Use an MPMusicPlayerController object, or music player, to play media items from the device iPod library. There are two types of music player:

    The application music player plays music locally within your
    application. It is not aware of the iPod app’s now-playing item, nor
    does it affect the iPod state.

    The iPod music player employs the
    built-in iPod app on your behalf. On instantiation, it takes on the
    current iPod application state, such as the identification of the
    now-playing item. If a user switches away from your app while music is
    playing, that music continues to play. The iPod app then has your
    music player’s most recently-set repeat mode, shuffle mode, playback
    state, and now-playing item.

    Make sure you are using

    + iPodMusicPlayer
    

    and not

    + applicationMusicPlayer
    

    Here is a good article on how to import the library into an AVAudioSession

    Add a row to your info.plist file with the name “UIBackgroundModes”
    Enter “audio” as the first key.

    UIBackgroundModes

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing an entertainment app in android. I want to play background music,
I am developing an app that needs to play music while on the phone.
I'm developing an iPhone game and currently using AVAudioPlayer for playing background music and
I am developing an iOS app that will play music from soundcloud. I want
I am developing a music player app. In this I ll retrieving all the
I am developing a music application.I want song list that on a long click
iam developing one application.In that i need to get the music files from the
iam developing one application.In that i need to get the how many music files
I am developing a music mixing app in iphone. It'll mix the music and
I'm currently attempting to set up background audio for an app I'm developing for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.