How-To Geek reminds us of the importance of Do Not Disturb here.
So, Do Not Disturb is the answer.
Head into parameters > Do Not Disturb and check that Silence is set to Always.
Otherwise, youll still get notifications when youre playing games.
How to Stop Notifications from Interrupting Your iOS Games| How-To Geek