Forum Discussion
ArtDevVO
9 years agoExplorer
Oculus Platform - InviteUser
Hi,
When I get a UserList with Rooms.GetInvitableUsers, each User has a InviteToken but when I use Users.GetLoggedInUserFriends(), each User has a InviteToken which is null ...
Do you know why ?
Thanks in advance !
When I get a UserList with Rooms.GetInvitableUsers, each User has a InviteToken but when I use Users.GetLoggedInUserFriends(), each User has a InviteToken which is null ...
Do you know why ?
Thanks in advance !
4 Replies
Replies have been turned off for this discussion
- brian_jewExpert ProtegeHi Art. The Invite Tokens are a one time use token which is why they are only present in Rooms. GetInvitableUser(). In order to send an invite to that same person again you need to get a new invite token with Rooms.GetInvitableUser(). Users.GetLoggedInUserFriends() doesn't necessarily mean that you're trying to invite someone, so it's not generating one time use invite tokens.
See for more details: https://developer3.oculus.com/documentation/platform/1.5/tasks/dg-cc-room-invites/ - ArtDevVOExplorerThanks, I understand now.
So, if I want create new UserList to invite with only my friend. I need to use GetLoggedInUserFriends first, then GetInvitableUser and compare to find the InviteToken of my friends ?
Or, maybe the RoomJoinPolicy of my room influence the result of GetInvitableUser ? (Everyone, FriendsOfMembers, FriendsOfOwner, ...) - twenty-centHonored GuestIt works but ...
I have three accounts to test my demo with two or more users in my room.
My three accounts are friends each others.
But when I call GetInvitableUser(), UserList is not good :
- Account 1 : UserList contains only Account 2
- Account 2 : UserList contains only Account 1
- Account 3 : UserList contains Account 1 & Account 2
I test LaunchInvitableUserFlow() but the result is the same...
Any idea ?
Thanks in advance ! - ArtDevVOExplorerI found why...
It was the account's privacy settings ...
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 5 years agoAnonymous
- 9 years agoAnonymous