Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
mrtckane's avatar
mrtckane
Honored Guest
2 years ago

Users.GetLoggedInUser() is ignored entirely

Hello,

 

I am trying to use the following code to retrieve the UserID (i should preface this by specifying that I have tried in a variety of ways, including the use of coroutines and asynchronous methods).

Users.GetLoggedInUser().OnComplete(message1 =>
{
Debug.Log("oid: "+message1.Data.OculusID);
});

My problem is that this code never gets executed.

It is as if it is not there; it does not hang, it does not return any null/0 values, it simply does not execute at all.

 

I have googled this ad-nauseum and everyone else's problems are related to null values or a zero for the ID being returned, but my problem does not seem to come up.

 

I have the platform installed, signed in, I am waiting for Oculus platform to be initialised and I have filed (and had approved) my DUC.

 

What am i missing?

 

2 Replies

Replies have been turned off for this discussion
  • MetaStoreHelp's avatar
    MetaStoreHelp
    Community Manager

    Hi, Mrtckance

     

    Thanks for bringing this to our attention, could you please send us a DM so we can investigate this further.

     

    Please select our name to get to our profile page, or click here

    Next, click "Send a Message" to privately message us!

     

    Please remember, you must be signed into the community first to send us a private message.

     

    Thanks!

     

  • MetaStoreHelp's avatar
    MetaStoreHelp
    Community Manager

    Hi there!

     

    We just wanted to check in with you to see if you need more help.

    If you need more help, we hope to see you soon in our private message!