Sorry for bumping, but I find it hard to believe there isn't an easy answer to this! You can't release an Oculus app without it passing the entitlement step, and I can't find an example of someone actually doing it! None of the examples on the Oculus Github seem to have this set up and working. Is there anyone out there who has released an Oculus app built with UE4 that can explain how to get entitlement working? Or perhaps one of the Oculus devs who could give an example?
Thanks for reaching out. After making any changes to the DefaultEngine.ini file and saving, close the UE4 editor completely and then relaunch the project for your ini changes to take effect.
I walked through your entire process by creating a UE4 project from scratch (though I am using 4.19.1). I was running into the same issues you were having:
I then discovered that closing the editor and then relaunching after making ini changes allowed the entitlement check to pass when I run VR preview.
As such, I would double check that the DefaultEngine.ini saved correctly, that the RiftAppId is correct, and that you have relaunched UE4 after making these changes. I have posted a screenshot of my console log to show the expected result:
The Oculus app is definitely open, and I am logged in as my admin account - so I should be entitled to the app, right? I can't see where I actually add specific users to a project, and can't find any help files that mention how to do that. Is this something that only works with actual builds rather than just running in the Unreal Editor? Still totally lost with this most basic of functions, so could use some help!
Welcome back! Let's try another thing - could you ensure that "Unknown Sources" is enabled within Oculus Home? Go to Settings (left navbar) -> General -> Unknown Sources. Make sure it's enabled, then restart your UE4 editor and try testing the entitlement process once more.
I didn't have Unknown Sources enabled, so I've enabled it but it hasn't made any difference unfortunately. Still getting the same errors as in my last message. Have tried shutting down and restarting everything after making that change, no difference.
I'm now getting a new error any time I open the Oculus app though, same thing these people are getting all of a sudden: https://forums.oculusvr.com/community/discussion/65487/error-message-recordstore18-record-must-have-an-id
I don't know if that's related, because that wasn't happening when I was trying to make this work a few weeks ago, but I just thought I'd mention it.
Thanks for giving that a shot. Would it be possible for you to try updating to the latest version of the Oculus distro for UE4.19? There have been many fixes in the latest version, and I'd like to rule out any possible bugs present in 4.18 that were fixed in 4.19. Afterwards, if the issue persists we'll dive even deeper.
OK, I downloaded and built from source UE4.19 from the Oculus repo, created a new project, added the RiftAppId etc. to the DefaultEngine.ini and restarted the project, built a similar setup in the Level Blueprint to verify entitlement, opened up the Oculus app and ensured that I'm logged in as the admin for my development team, and started a VR preview in editor, and I'm still getting these lines:
LogOnline: Warning: Oculus: Failed Oculus login. Not currently logged into Oculus. Make sure Oculus is running and you are entitled to the app. LogOnline: Error: Oculus: Failed the entitlement check: OVR6139226: Missing entitlement for <RiftAppId> (1971031)
So it still doesn't recognise that the Oculus app is running and I'm logged in, and so doesn't pass the entitlment check.