Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

Achievement not logged from development build

SxKxSxKx Posts: 142 Oculus Start Member
edited July 2018 in Unity Development
I´m adding achievements for my game and on a build on OculusGo it doesn´t seem to log achievement yet to dev panel.
Is there some condition to be met to try it out on a build. I already have platformSDK running in the back fetching player name.

here´s the code that unlocks:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Oculus.Platform;
using Oculus.Platform.Models;


public class Unlocker : MonoBehaviour {

    public string id;
    // Use this for initialization
    void Start () {


        Oculus.Platform.Achievements.Unlock(id);
    }
    

}

Any idea?


Comments

  • SxKxSxKx Posts: 142 Oculus Start Member
    I was aiming to use the default client option, not serve to server. Shouldn´t it be pretty straightforward to just unlock achiements and then display own custom graphics ingame..  BTW does unlocking require build to be release version etc?  Gotta say I´m not much of a coder that´s why I´m asking.  I´ll get back to the issue next week and ask if there´s anything to ask if it doesn´t see mto sort out.
  • Thunderbox.EntThunderbox.Ent Posts: 40 Oculus Start Member
    edited November 2018
    Hi, @SxKx!
    Did you ever get to the bottom of this? I am seeing the exact same thing.
    My achievements appear to unlock OK in the Android Log Cat...
    11-22 15:09:41.475: I/OVRPlatform(23101): [HttpRequest] Request `me/achievements' (id: 147) succeeded: {"id":"2155390394480778","api_name":"MetricSystem","just_unlocked":true}
    ...but when I look in my developer dash, it says Total Unlocks = 0.
    :neutral:
  • SxKxSxKx Posts: 142 Oculus Start Member
    Unfortunately haven´t worked on these features since. Would be good to know if there was limitations, although now with a released build I´d be able to make some test in log in etc. to reward users...
  • Thunderbox.EntThunderbox.Ent Posts: 40 Oculus Start Member
    Ah... I see that the dash has updated after a few days.
    But there was no pop-up... and achievements don't seem to have any kind of UI presence in Oculus Home on mobile. They are freakin' hard to find in Oculus Home on Rift. Maybe Oculus are still working on this feature as it seems a little... obfuscated. I will investigate!
    :D
Sign In or Register to comment.