I’m trying to prompt an Invite Friends button using SocialService, and it works well. But, it throws a warning message that looks the picture below. How can I make the message disappear?
function onButtonPressed(player)
local success, result = pcall(
function()
return SocialService:CanSendGameInviteAsync(player)
end
)
if result == true then
SocialService:PromptGameInvite(player)
end
end