I’m dowloading a mp3 file when the app is in background. Does iOS have any notifications when background tasks ended?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
You can use NSNotificationCenter to send a notification to some part of your code when your download is finished.
I’m guessing you are using NSURLConnection to download your Mp3, you can then register a new notification while you are starting the download and when the download is finished (maybe in the delegate of NSURLConnection) you’ll be able to post the notification.
Hope this is helpful
NSNotification Center Reference
NSURLConnection Reference