I’m trying to use the SendInvite function to send a game invitation to friends via Steam. But whenever I try to call it, the FOnSendInviteComplete delegate always returns “false” for bWasSuccessful. This is the source code I have for the invite function:
void UKingdomsGameInstance::SendInviteToPlayer(const FUniqueNetId& PlayerToInvite)
{
/* If the friends interface is valid, send an invite to the target player. */
if (FriendsInterface.IsValid())
{
FriendsInterface->SendInvite(0, PlayerToInvite, EFriendsLists::ToString(EFriendsLists::Default), OnSendInviteCompleteDelegate);
}
}
The FUniqueNetId is valid, and I have a function called OnSendInviteComplete that is bound to the FOnSendInviteComplete delegate. OnSendInviteComplete is successfully called, but its bWasSuccessful parameter is false, meaning it failed to send the invite. I’ve tried sending it to Steam friends who are online, and I’ve also tried building my project, using another machine and an alternate Steam account, and inviting that player while playing the same project. It always returns “false.”
Is there something I’m missing?
Thanks in advance!