Apple Screen time causing game to get stuck

We have a cocos2d-x app v3.17 app which is getting stuck whenever we return from an Apple Screen time notification. (Ex: While playing the app the Apple Screen time notification came and the user does add more time and returns back to the app)

We have used Apple Ipad Air 2, iOS v15.3.1

We found that in the cocos2dx code for handling audio interrupts AVAudioSessionInterruptionNotification notification is being handled where it can be of two types
AVAudioSessionInterruptionTypeBegan
AVAudioSessionInterruptionTypeEnded

For the apple screen time we are not getting the second type of notification because of which the director pauses the game and audio and even when more time is given the app remains in a pause state. It has to be killed and restarted

How can we handle such a scenario?

@slackmoehrle

Do you still need help?

Right now not looking for help on this