Forum Discussion
eXifreXi
8 years agoExplorer
How to react to an incoming Session Invite by a Friend?
Hello there, I've looked into adding basic support for "Invite Friend to Session", "Accept Invite", "Reject Invite" and "React to Invite". Now I did things like these with Steam already, but it se...
eXifreXi
8 years agoExplorer
@imperativity
Thanks for the answer! I have a slight problem with listening to the Invite Request.
You guys are popping your message queue in your TaskManager of your OnlineSubsystem Integration in its Tick.
So each Frame you iterate over all Messages (pop them) and trigger your Delegates, if they are currently bound.
Now if I call "popmessage" myself, it's empty, cause you already popped the message.
That's why I tried to get IOnlineSubsystem, cast it to "FOnlineSubsystemOculus" and add my own Delegate to your already working system. However Epic doesn't really allow casting from the Interface to the actual Subsystem, so the implementation uses a static_cast, which is quite dirty and seems to crash every now and then.
I can't check the pointer with a static_cast and see if it's null...
I mean, don't get me wrong, I can listen to the InviteReceived that way, but it's too unstable.
Is there a proper way to listen to your queue, which I haven't found yet?
Kind regards,
Cedric Neukirchen
Thanks for the answer! I have a slight problem with listening to the Invite Request.
You guys are popping your message queue in your TaskManager of your OnlineSubsystem Integration in its Tick.
So each Frame you iterate over all Messages (pop them) and trigger your Delegates, if they are currently bound.
Now if I call "popmessage" myself, it's empty, cause you already popped the message.
That's why I tried to get IOnlineSubsystem, cast it to "FOnlineSubsystemOculus" and add my own Delegate to your already working system. However Epic doesn't really allow casting from the Interface to the actual Subsystem, so the implementation uses a static_cast, which is quite dirty and seems to crash every now and then.
I can't check the pointer with a static_cast and see if it's null...
I mean, don't get me wrong, I can listen to the InviteReceived that way, but it's too unstable.
Is there a proper way to listen to your queue, which I haven't found yet?
Kind regards,
Cedric Neukirchen
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device