ios - Objective-C/ Swift resume music in background mode after having incoming call -


i working music application swift. can run in both background , foreground. app running in both kinds of modes. nevertheless, there issue me background mode , incoming-call or out-call.

  • when running in foreground mobile has incoming call, after call ends, music automatically resumes. absolutely fine.

  • when app running in background (music sounds well). there incoming call (or make phone call), after call ends, music not automatically resume until app changes foreground mode. incorrect because app should resume music in background mode.

i used ctcallcenter check if having incoming call or not.

i searched same questions in stackoverflow , however, seems there no real answer question.

could expert me solve issue?

thanks in advance,

diego


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -