cancel
Showing results for 
Search instead for 
Did you mean: 

Platform SDK Integration on Mobile

rst_oculus
Honored Guest
Hello guys!
Can't realize how to integrate Platform SDK to Oculus GO app, my app is in ALPHA channel and I trying to do all tests from store installation,
First of all I am call for Entitlement:
 private const string LIKES_TO_WIOptional = "firstencounter";

    // true if the local user hit the achievement Count setup on the dashboard

    private bool m_likesToWinUnlocked;



    public bool LikesToWin

    {

        get { return m_likesToWinUnlocked; }

    }


    void Awake()

    {

        try

        {

            string id = "APPIDPLACEHOLDERFORSAFETYREASON";

            Core.AsyncInitialize(id);

            Entitlements.IsUserEntitledToApplication().OnComplete(EntitlementCallback);

        }

        catch (UnityException e)

        {

            Debug.LogError("Platform failed to initialize due to exception.");

            Debug.LogException(e);

            // Immediately quit the application.

            UnityEngine.Application.Quit();

        }

    }


    void EntitlementCallback(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.");

        }

    }


 Then, when launch, in adb, I've got :
11-03 20:19:51.870: W/Unity(8691): The 'Oculus App Id (210074644000~~~~)' field in 'Oculus Platform/Edit Settings' is clobbering appId (21007464400~~~~)
that you passed in to Platform.Core.Init.  You should only specify this in one place.  We recommend the menu location.
11-03 20:19:51.870: W/Unity(8691):  
11-03 20:19:51.870: W/Unity(8691): (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)

11-03 20:19:51.873: E/Unity(8691): Unable to find ovrplatformloader

11-03 20:19:51.999: E/Unity(8691): DllNotFoundException: ovrplatformloader

11-03 20:19:51.999: E/Unity(8691):   at (wrapper managed-to-native) Oculus.Platform.CAPI:ovr_UnityInitWrapperAsynchronous (string)

11-03 20:19:51.999: E/Unity(8691):   at Oculus.Platform.AndroidPlatform.AsyncInitialize (System.String appId) [0x00000] in <filename unknown>:0 

11-03 20:19:51.999: E/Unity(8691):   at Oculus.Platform.Core.AsyncInitialize (System.String appId) [0x00000] in <filename unknown>:0 

11-03 20:19:51.999: E/Unity(8691):   at OculusSDKController.Awake () [0x00000] in <filename unknown>:0 

11-03 20:19:51.999: E/Unity(8691):  

11-03 20:19:51.999: E/Unity(8691): (Filename:  Line: -1)


Any suggestions?

Additional questions:
Can I test entitlements, achievements and leaderboards from test builds? I already generate osig file for my Go

Thanks in advance
0 REPLIES 0