How to use game.notify()?

There is a function in the websocket API called notify: Game | @gathertown/gather-game-client

I have tried testing this functionality to see what a notification looks like/does, but I can’t seem to trigger it. I tried calling it with just text (game.notify(“HELLO!”)) and by creating a new Notification (JS style) but I am not having any luck.

This is a function which I believe only works in Experience spaces, though I have yet to test it fully. It should create a popup in the upper right, similar to some of the “Achievment” style popups that new accounts will see.

The Escape the Island makes use of it in the potions puzzles.

Ah, thank you so much! Yes I remember seeing them in the Escape the Island experience now. I will play with them :slight_smile:

I have found the function game.notify() to fail even on event/experience spaces. It appears as though it’s looking for a playerUid but does not have a parameter to provide the UID to the function.

Here is the message logged to the console when attempting to use game.notify("Test");

Failed to process event playerNotifies with error: {"message":"Cannot find playerUid corresponding to encId 0","stack":"Error: Cannot find playerUid corresponding to encId 0\n    at Engine.engine.onevent (/Users/someone/Developer/Gather/MyProject/node_modules/@gathertown/gather-game-client/dist/sr