Forum Discussion
beaulima9933
7 years agoExpert Protege
Oculus Go - Get Oculus Identity & Verify entitlement fail
Unreal 4.20.3 - Oculus-branch
Engine.ini:
Engine.ini:
[OnlineSubsystem]
DefaultPlatformService=Oculus
[OnlineSubsystemOculus]
bEnabled=true
OculusAppId=xxx
RiftAppId=xxx
[/Script/Engine.GameEngine]
!NetDriverDefinitions=ClearArray
+NetDriverDefinitions=(DefName="GameNetDriver",DriverClassName="OnlineSubsystemOculus.OculusNetDriver",DriverClassNameFallback="OnlineSubsystemUtils.IpNetDriver")
[/Script/OnlineSubsystemOculus.OculusNetDriver]
NetConnectionClassName=OnlineSubsystemOculus.OculusNetConnectionI'm listed as a developer / alpha tester on the developer center
If I replace the RiftAppID with another app I've done on the Rift, it works (in editor)
I've tried app via sideload and alpha release -- not working
My question: what's going on? Will be important to obtain OculusID because our app collect info following questionnaire AND I would like to develop the Avatar on the Go.
Also: is there's a way to make it work in-editor like rift apps? Am I missing something?
Thanks guys!
If I replace the RiftAppID with another app I've done on the Rift, it works (in editor)
I've tried app via sideload and alpha release -- not working
My question: what's going on? Will be important to obtain OculusID because our app collect info following questionnaire AND I would like to develop the Avatar on the Go.
Also: is there's a way to make it work in-editor like rift apps? Am I missing something?
Thanks guys!
7 Replies
Replies have been turned off for this discussion
- beaulima9933Expert Protege@imperativity
The build is presently in alpha channel. I'm listed in the alpha channel users. I'm able to push updates through the network (with the Oculus Platform Command Line Utility, as I have ab OBB file). Anyway.
What I mean in the second question is that in-editor, Get Oculus Identity and Entitlement works when I'm using a RiftAppId from another Rift app I'm also listed. I would think it's would be normal that it would work the same way with a mobile app.Or probably I should retrieve log files from the Go (with a development build) - how to?
The editor log files are not of great help - just tell that GetOculusIdentity (fired in the PlayerController, client side) always results in Failure.
I'm waiting for that to work to submit it to the store. Thanks! - Mosel3yExplorerHi, I also had this problem on Oculus Go/Gear VR.
I had to change a line in OculusIdentityCallbackProxy.cpp for it to work:
From:auto OculusIdentityInterface = Online::GetIdentityInterface(OCULUS_SUBSYSTEM);
To:
if (OculusIdentityInterface.IsValid())
{
DelegateHandle = Online::GetIdentityInterface()->AddOnLoginCompleteDelegate_Handle(
0,
FOnLoginCompleteDelegate::CreateUObject(this, &UOculusIdentityCallbackProxy::OnLoginCompleteDelegate)
);
OculusIdentityInterface->AutoLogin(LocalUserNum);
}auto OculusIdentityInterface = Online::GetIdentityInterface(OCULUS_SUBSYSTEM);
Specifically that's the line:
if (OculusIdentityInterface.IsValid())
{
DelegateHandle = OculusIdentityInterface->AddOnLoginCompleteDelegate_Handle(
0,
FOnLoginCompleteDelegate::CreateUObject(this, &UOculusIdentityCallbackProxy::OnLoginCompleteDelegate)
);
OculusIdentityInterface->AutoLogin(LocalUserNum);
}DelegateHandle = OculusIdentityInterface->AddOnLoginCompleteDelegate_Handle(I'm not sure why it works fine on desktop without this change, but it fixed it for me on mobile. I'm not sure if it's Oculus or Epic who maintain the OSS plugin, but maybe the above will give some idea if someone is looking into the issue.
- Mosel3yExplorerI thought I posted here but it seems to have disappeared.@beaulima9933 if you're still having this issue, I fixed it in my case by changing a line in OculusIdentityCallbackProxy.cppLine 26from:DelegateHandle = Online::GetIdentityInterface()->AddOnLoginCompleteDelegate_Handle(to:DelegateHandle = OculusIdentityInterface->AddOnLoginCompleteDelegate_Handle(
- beaulima9933Expert Protege@Mosel3y @NinjaGaijin
Wow! It works now. You saved us many troubles. Did you submit it in VR-DEV branch? If not we should. Thanks! - Mosel3yExplorer@beaulima9933 Hey, didn't see the message. I think Epic doesn't take pull requests for the Oculus plugins, so I've opened a pull request on the Oculus fork instead: https://github.com/Oculus-VR/UnrealEngine/pull/26
- architetto_messExplorerHi everyone, where's located OculusIdentityCallbackProxy.cpp?
- Anonymous@"architetto.messina" it's in ...\Engine\Plugins\Online\OnlineSubsystemOculus\Source\Private\
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
- 10 years ago
- 10 years ago