Can we get notification while playing game

Hi, i’m using notifications api, but its only showing if i switched to other window, so is there any possibility to show while playing the Game. ?

It is not currently possible to force a notification to show up while inside a game, as those are dictated by windows’ toast notification behavior directly (which sets notifications to be silent during games by default)

If you want to show in-game notifications, I recommend creating a specialized window just for that, to put inside the game, so that you have more control over the location, shape, styling, timing, focus behavior, etc, of every notification