Detect notifications on Android/iOS

Is it possible to get notified when the screen area is blocked by a notification? In my game a WhatsApp message is likely to cause a game over.

I’m pausing the game on window.WINDOW_EVENT_FOCUS_LOST. Would be great to do the same when messages appear and rudely obscure gameplay.

1 Like

It’s probably possible to detect, but it would require some research. If you can find code or examples of how to detect it I would be happy to take a look.

3 Likes