Notifications
Clear all

Adding friends  

(@rained)
Active Member Registered

Hello! I am using CombuManager.localUser.AddContact with eContactType.Request willing to send a friend request to another player.

Combu response is successful and I can see the invited user added to my friends list with CombuManager.localUser.LoadFriends. But on the requested player side, the same LoadFriends gets nothing. Any help with that? We have Unity 2019.4.0f1 and Combu 3.1.2

ReplyQuote
Topic starter Posted : 10/07/2020 11:27 pm
(@skaredcreations)
Honorable Member Admin

Did you set FRIENDS_REQUIRE_ACCEPT to TRUE in your config.php? If it's not set or it's set to FALSE then everyone has his own list of friends (requests are disabled so it's basically adding the other user as friend of localUser) that is each user must add the other to his friends list, while if it's set to TRUE then the system works with the requests (the other user can Load with eContactType.Request that will set the array requests of localUser, then he can accept a request by calling AddContact with eContactType.Friend or block the user with eContactType.Ignore or delete the request with RemoveContact).

FRANCESCO CROCETTI @ SKARED CREATIONS

ReplyQuote
Posted : 11/07/2020 1:57 am
(@rained)
Active Member Registered

Thanks, it was just that.

ReplyQuote
Topic starter Posted : 13/07/2020 4:17 pm
Share: