I am trying to play a sound file when app is already in background AND stop current play music app if it is playing on iOS
Could you please tell me how can i do that
Many thanks,
William Tran.
I am trying to play a sound file when app is already in background AND stop current play music app if it is playing on iOS
Could you please tell me how can i do that
Many thanks,
William Tran.
iOS will automatically pause other audio instances if your app begins one. Check out this thread: How to Play Audio in Background Swift?
i found out the reason for my issue: The operation couldn?t be completed. (OSStatus error 560557684.)
Because my app init and active an audio session when it is already in background that's why we could not do that.