Showing posts with label Oculus Dev. Show all posts
Showing posts with label Oculus Dev. Show all posts

Friday, October 19, 2018

Oculus Developer: Android APK is signed with Signature Scheme V2, which is not yet supported.

If you are here getting an error uploading an APK to Oculus Store with a build with Unity, see down below

Go to the APK Folder and resign with V1 as below

"C:\Program Files\Java\jdk1.8.0_191\bin\jarsigner" -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore MyApp.keystore "My App Name.apk" "key alias name" -storepass mypassword -keypass mypassword2

If in Unity and you are getting error "Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: Failed to collect certificates", try the change outlined below

Unity: Change build from Gradle to Internal. The apk will be generated using V1 signing, and no need to do the workaround above

Oculus Developer - Gear VR / Oculus Go app is not visible in Oculus app or any screens in the mobile device

You have built and installed the app in your device, but its not visible in the home screens or Device (except the Setting --> Apps screen, which do not have any option to launch it)

This is by design. Gear VR apps will not have a shortcut that you can use to launch it. It have to be launched from the Oculus app only.

To make your app visible inside the app, Upload a binary/apk to one of the Build channels (I have used Alpha) in the Build Dashboard. In the Build Dashboard, you will see an option to add test users as well. Make sure you add yourself. After adding, wait for the email with information on signing up. This may take some time to show up in your inbox (took about 30+ mins for me)

Once you click on the the email invitation link, the app will appear in the My Preview Apps section of Oculus Home

Wednesday, August 1, 2018

If TestEntitlementCheck failed while running OculusVRCValidator

Sample Entitlement check file

Make sure you install Oculus Utilities & Oculus Platform packages
https://developer.oculus.com/downloads/package/oculus-utilities-for-unity-5/
https://developer.oculus.com/downloads/package/oculus-platform-sdk/


using UnityEngine;
using System.Collections;
using Oculus.Platform;
using UnityEngine.Events;
using UnityEngine.SceneManagement;

public class EntitlementManager : MonoBehaviour
{
 
    public string appId;
    public static bool entSucceded = false;

    void Start()
    {
        // Core.Initialize(appId);
        if (!entSucceded)
        {
            Core.AsyncInitialize(appId);
            Entitlements.IsUserEntitledToApplication().OnComplete(EntitlementChecked);
        }
    }

    /*
    void Update()
    {
        Request.RunCallbacks();
    } */

    void EntitlementChecked(Message msg)
    {

        // Ok
        if (!msg.IsError)
        {
            // Do what you want, load main menu
            // SceneManager.LoadScene("MainMenu", LoadSceneMode.Single);
            Debug.Log("Ent success!");
        }
        // Not Ok
        else
        {
            //UnityEngine.Application.Quit();
            SceneManager.LoadScene("EntFailed", LoadSceneMode.Single);
            Debug.Log(msg.GetError());
            entSucceded = true;
        }
    }
}

ERROR: Failed to receive a call for ovr_RecenterTrackingOrigin or ovr_ClearShouldRecenterFlag within 1 second of recentering request

Starting TestResponseToRecenterRequest
Waiting for the application to run for 5 seconds before testing begins...
Starting test...
Sending a request to recenter...
ERROR: Failed to receive a call for ovr_RecenterTrackingOrigin or ovr_ClearShouldRecenterFlag within 1 second of recentering request
Please refer to VRC Guidelines: https://developer.oculus.com/distribute/latest/concepts/vrc-pc-input-3/
Cleaning up...
Test FAILED


Solution: Attach OVRManager Script to an object in game

Turn on Windows 11 Fast Boot

If windows starting is slow, to enable windows 11 fast startup/boot,  Press Windows + R, type powercfg.cpl, and hit Enter.  This will direct...