Hello,
I have made a notification system (friend request, invite to game...) on a desktop game using unity as follows:
- Client sends a friend request using a cloud script function
- The function then fills in the SharedGroupData of the friend with the name of the player who sent it
The player receives the notification, but the way I am refreshing the notification list is by using the "Heartbeat" method, which is to request the data from the SharedGroupData every like 5 seconds or so.
But isn't this too costly to keep requesting data every few seconds? because I have other methods that does the same like the friends list that keeps refreshing in the same way.
This is working perfectly, and I know there is no push notifications for desktops, but is there a better solution than this?
Thank you