Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
beaulima9933's avatar
beaulima9933
Expert Protege
7 years ago

Oculus Go - Get Oculus Identity & Verify entitlement fail

Unreal 4.20.3 - Oculus-branch
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.OculusNetConnection

I'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!

7 Replies

Replies have been turned off for this discussion
  • @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!
  • Hi, 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);

    if (OculusIdentityInterface.IsValid())
    {
    DelegateHandle = Online::GetIdentityInterface()->AddOnLoginCompleteDelegate_Handle(
    0,
    FOnLoginCompleteDelegate::CreateUObject(this, &UOculusIdentityCallbackProxy::OnLoginCompleteDelegate)
    );
    OculusIdentityInterface->AutoLogin(LocalUserNum);
    }
    To:

    	auto OculusIdentityInterface = Online::GetIdentityInterface(OCULUS_SUBSYSTEM);

    if (OculusIdentityInterface.IsValid())
    {
    DelegateHandle = OculusIdentityInterface->AddOnLoginCompleteDelegate_Handle(
    0,
    FOnLoginCompleteDelegate::CreateUObject(this, &UOculusIdentityCallbackProxy::OnLoginCompleteDelegate)
    );
    OculusIdentityInterface->AutoLogin(LocalUserNum);
    }
    Specifically that's the line: 
    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.

  • I 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.cpp

    Line 26
    from:
    DelegateHandle = Online::GetIdentityInterface()->AddOnLoginCompleteDelegate_Handle(

    to:
    DelegateHandle = OculusIdentityInterface->AddOnLoginCompleteDelegate_Handle(
  • @Mosel3y @NinjaGaijin

    Wow! It works now. You saved us many troubles. Did you submit it in VR-DEV branch? If not we should. Thanks!
  • @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
  • Anonymous's avatar
    Anonymous
    @"architetto.messina" it's in ...\Engine\Plugins\Online\OnlineSubsystemOculus\Source\Private\