When creating the socket I subscribed to
_socket.ReceivedNotification += OnReceivedNotification;
And when closing the connection or onDestroy I unsubscribed from it.
but when a friend sends an invite the first time one message gets delivered. But on second time I get 2 messages instead of 1.
In ReceivedNotification callback I delete the notification like this
_client.DeleteNotificationsAsync(_session, new[] { notification.Id });
if i kill the app and launch again the third time I get 3 notification as so on. these are not old messages. the new message gets delivered thrice.
How to solve this issue? I am using unity and the latest version of nakama
3.23.0 and 1.33.0
@sesposito