How to automatically enable Do Not Disturb mode while game is open

I'm using Unreal Engine 4 to make my game. I've run into a fatal bug where every time there's a notification from another app, specifically when it (the notification) has sound, it freezes my game for around a second. I've determined its a bug with the engine that cannot be fixed on my end. So I am wondering if there is any way to automatically enable Do Not Disturb while the game is open. Is that in the realm of possibility? If so, would anyone happen to know how to resolve this?

Accepted Reply

Hello,

The short answer is that there is no api to control Do Not Disturb mode. You might be interested in this previous forums discussion: https://developer.apple.com/forums/thread/115860

Replies

Hello,

The short answer is that there is no api to control Do Not Disturb mode. You might be interested in this previous forums discussion: https://developer.apple.com/forums/thread/115860