Forum Discussion
OptimusView
7 years agoExplorer
Can't lauch app in the oculus Store
Hi, we are a little team starting to develop 3D apps for the rift
With Unity we created a simple first person camera app, to upload it to the alpha channel. It runs well in Unity(play button) or when clicking the .exe file. The problem is that after downloading the app in the Ocolus Store it would not work there, we get the ''please wait ...'' mesage for a split second, and then it closes.
I already:
- Imported Unity oculus SDK
- Imported oculus integration package
- Added the app ID in the Oculus Platform settings
- Virtual reality support is checked in the Player Settings
- Quality settings are set for the Rift
- When I upload the Binary I tried : -mode VR, -vrmode oculus and nothing
- Made and empty object with the entitlement code (code below )
Please if someone knows what are we missing, it would help a lot.
//Code OculusPlatformEntitlementCheck
With Unity we created a simple first person camera app, to upload it to the alpha channel. It runs well in Unity(play button) or when clicking the .exe file. The problem is that after downloading the app in the Ocolus Store it would not work there, we get the ''please wait ...'' mesage for a split second, and then it closes.
I already:
- Imported Unity oculus SDK
- Imported oculus integration package
- Added the app ID in the Oculus Platform settings
- Virtual reality support is checked in the Player Settings
- Quality settings are set for the Rift
- When I upload the Binary I tried : -mode VR, -vrmode oculus and nothing
- Made and empty object with the entitlement code (code below )
Please if someone knows what are we missing, it would help a lot.
//Code OculusPlatformEntitlementCheck
using UnityEngine;
using Oculus.Platform;
public class OculusPlatformEntitlementCheck : MonoBehaviour
{
void Awake()
{
try
{
Core.AsyncInitialize();
Oculus.Platform.Entitlements.IsUserEntitledToApplication().OnComplete(GetEntitlementCallback);
}
catch (UnityException e)
{
Debug.LogError("Platform failed to initialize due to exception.");
Debug.LogException(e);
// Immediately quit the application.
UnityEngine.Application.Quit();
}
}
void GetEntitlementCallback(Message msg)
{
if (msg.IsError)
{
Debug.LogError("You are NOT entitled to use this app.");
UnityEngine.Application.Quit();
}
else
{
Debug.Log("You are entitled to use this app.");
}
}
}
4 Replies
- OptimusViewExplorerI am using the Oculus Platform SDK 1.24.0
just tried with "Synchronous - Platform.Core.Initialize()" and no luck either - AnonymousWe're having this exact same problem here with our Unity project, tried multiple entitlement setups with no luck. Also using latest utilities and platform SDKs (1.24.0).
- AnonymousOkay, so I've resolved the issue on my end, hopefully this will help you too.
Since 2017.2, Unity builds not just an exe and a data folder, but three other files too. You need to include all those files in the zip that you submit to Oculus, otherwise it simply won't open. If you want to check if this is what's happening with your app, find where Oculus has installed your app on your machine and try running the exe, if you get an error saying you're missing UnityPlayer.dll or Mono, you'll need to upload another zip with all five files in it. - OptimusViewExplorer
BDHVR said:
Okay, so I've resolved the issue on my end, hopefully this will help you too.
Since 2017.2, Unity builds not just an exe and a data folder, but three other files too. You need to include all those files in the zip that you submit to Oculus, otherwise it simply won't open. If you want to check if this is what's happening with your app, find where Oculus has installed your app on your machine and try running the exe, if you get an error saying you're missing UnityPlayer.dll or Mono, you'll need to upload another zip with all five files in it.
Yep i was doing the same thing, now with the .dll in it works fine.
Thank you !
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
- 4 months ago
- 9 months ago
- 4 years ago
- 3 years ago
- 2 years ago