Not getting expected status from Friend->GetPresence()
Hello,
we are not getting the result returned that we would have expected from a GetFriendStatus command that the programmer has made for Unreal.
This has been made into an unreal node that gets triggered manually for now for testing.
I have tested with both players running different online accounts on two computers simultaneously.
Both have got through the checks and are otherwise listed correctly from the same function, for example I get the correct friend names.
The ones I was expecting True from but are getting a False are:
(I didn't try Presence.bIsPlaying)
OculusFriend.bIsPlayingSameGame = Presence.bIsPlayingThisGame;
OculusFriend.bIsJoinable = Presence.bIsJoinable;Here's a larger snippet from the code:
// Now that we are sure that everything worked, try to actually get the FriendList
TArray<TSharedRef<FOnlineFriend>> FriendList;
FriendInterface->GetFriendsList(LocalUserNum, ListName, FriendList);
// Iterate over the FriendList and fill in all Data into our Dummy Struct
for (TSharedRef<FOnlineFriend> Friend : FriendList)
{
// Get Presence State
FOnlineUserPresence Presence = Friend->GetPresence();
// Dummy Array Entry
FOculusFriend OculusFriend;
OculusFriend.DisplayName = Friend->GetDisplayName();
OculusFriend.RealName = Friend->GetRealName();
OculusFriend.StatusString = Presence.Status.StatusStr;
OculusFriend.bIsOnline = Presence.bIsOnline;
OculusFriend.bIsPlaying = Presence.bIsPlaying;
OculusFriend.bIsPlayingSameGame = Presence.bIsPlayingThisGame;
OculusFriend.bIsJoinable = Presence.bIsJoinable;
OculusFriend.bHasVoiceSupport = Presence.bHasVoiceSupport;
OculusFriend.PresenceState = (EOnlinePresenceState::Type)(int32)Presence.Status.State;
OculusFriend.UniqueNetID = Friend->GetUserId();
OculusFriendList.Add(OculusFriend);
}Like I said, the
Friend->GetDisplayName();andPresence.bIsOnline;works so at least partially this is working.Is there anyone that knows what's up or can verify that this should be working?
Is there anything else in particular that I am expected to do to flip these to True?
Cheers
Fredrik
