your game start to make an action to play a simple sound but right after all the app going in applicationDidEnterBackground due to open an external url: in this exact moment all your game going in paused mode so you can't do any action.

A safe way to do your code is to make a pause sequence after your sound and check the completion like this: