How do you handle notifications without notifications API?

For now, where is no notification API, how do you handle notifications?
A dedicated window that handles all the notification?
basically, I was doing that with a status-window, but that needs a rework and anyway I’m not sure if it’s the best way.

1 Like

Overwolf might add a dedicated notifications API in the future. Until then, you can implement it in many ways. The most popular are:

  • Create a background window with a shared variable that will act as an event bus. This variable is accessible from all your windows, using overwolf.windows.getMainWindow() for example. You can build on top of that a global notifications service that triggers events, which you can listen or subscribe to.
  • Create an extra lightweight dedicated window for notifications, that you access with overwolf.windows.getOpenWindow(). Than, other windows can trigger notifications by sending this window a JSON, using the sendMessage().
1 Like