Forum Discussion
foxvalleysoccer
4 years agoProtege
Get UserID returns my application specific user ID for debugging and testing.
I'm getting the users information with the script below. The id it returns is the id listed on the game API section under userid. See image. 420**************
However when i authenticate with Oculus from my web site it returns a different number. 659************
How do I get my app to not use this application specific id for debugging and testing?
void Start()
{
// First thing we should do is perform an entitlement check to make sure
// we successfully connected to the Oculus Platform Service.
Entitlements.IsUserEntitledToApplication().OnComplete(IsEntitledCallback);
}
void IsEntitledCallback(Message msg)
{
if (msg.IsError)
{
TerminateWithError(msg);
return;
}
// Next get the identity of the user that launched the Application.
Users.GetLoggedInUser().OnComplete(GetLoggedInUserCallback);
}
void GetLoggedInUserCallback(Message<User> msg)
{
if (msg.IsError)
{
TerminateWithError(msg);
return;
}
m_myID = msg.Data.ID;
m_myOculusID = msg.Data.OculusID;
var reportid = msg.GetUserReportID();
id.text = "msg.Data.OculusID : " + msg.Data.OculusID + " msg id: "+msg.Data.ID+" msg displayname: "+msg.Data.DisplayName + " reportid: " + reportid;
TransitionToState(State.WAITING_TO_PRACTICE_OR_MATCHMAKE);
Achievements.CheckForAchievmentUpdates();
}
You're looking for ovr_User_GetOrgScopedID()
Documentation is here:
https://developer.oculus.com/documentation/native/ps-presence/
1 Reply
- pro_zacMeta Employee
You're looking for ovr_User_GetOrgScopedID()
Documentation is here:
https://developer.oculus.com/documentation/native/ps-presence/
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
- 8 months ago
- 1 year ago
- 10 months ago
- 1 year ago
- 2 years agoAnonymous