Trouble with In App Purchases IAP
I can't get IAP working. In the developer dashboard: I have created an app done the data privacy checkup activated IAP on the platform services page created and published a SKU for testing In unity Imported the Meta XR all-in-one SDK, and verified that platform services is a part of that Set my app ID for both "oculus rift" and "Meta Quest/2/Pro" In my script I have the following void Awake () { try { Core.AsyncInitialize(); #if UNITY_ANDROID && !UNITY_EDITOR IAP.GetViewerPurchases().OnComplete(ViewerPurchasesCallback); #elif UNITY_EDITOR Debug.LogWarning("Running in Unity Editor. Oculus platform initialization is skipped."); #endif } catch(UnityException e) { Debug.LogError("Platform failed to initialize due to exception."); Debug.LogException(e); // Immediately quit the application. UnityEngine.Application.Quit(); } } void ViewerPurchasesCallback(Message<PurchaseList> msg) { Debug.Log("Callback"); if (msg.IsError) { Debug.LogError("Error retrieving purchases: " + msg.GetError().Message); Debug.LogError("Error retrieving purchases: " + msg.GetError().Code); } else { foreach (Purchase purchase in msg.Data) { Debug.Log("User has purchased: " + purchase.Sku); } } } I get the error message "Error retrieving purchases: package not in library" "Error retrieving purchases: 2" I can not find any documentation with that error message or any information about error codes988Views0likes3CommentsOculus ID return 0 and Username is empty
Hello, We require to get the Display name and Username for unique identification of our devices as they are logged in with specific Oculus account. I have setup an account on Oculus developer dashboard as required as well as doing all the certifications and requirements > data use checkup. The code in the Game Manager class is as follows public bool InitOculus() { try { Core.Initialize(123****132); Users.GetLoggedInUser().OnComplete(LoggedInUser); } catch (UnityException e) { Debug.LogException(e); UnityEngine.Application.Quit(); } return true; } void LoggedInUser(Message msg) { string name = ""; string username = ""; if (msg.IsError) { Debug.LogError("Failed to retrieve Oculus user."); } else { User user = msg.GetUser(); ulong userId = user.ID; Debug.Log("USER ID IS " + userId); //ImageURL = user.ImageURL; username = user.OculusID; Users.Get(userId).OnComplete(message => { if (!message.IsError) { name = message.Data.DisplayName; } else { var e = message.GetError(); Debug.LogError($"Error loading display name: {e.Message}."); } }); } Debug.Log("Display Name " + name + " and the username is " + username); } I am posting here because there are some other posts regarding this issue but they are either too old to be valid or unanswered. Thank you in advance.545Views0likes0CommentsQuery if user is eligible for refund, or alternatively time spent in application.
Hello, We are interested in tracking whether or not a user is eligible for a refund of our app. Is there a platform API call we can make to get this information? Or, alternatively, is there a platform API call that tracks the total amount of time a user has spent in the app? There are ways to track the time ourselves, but we would have to take extra steps to ensure that users do not hack the time, that the data is not lost when the user uninstalls the app, and that time played on multiple devices is included. Thank you!494Views0likes0Commentsovr_PlatformInitializeAndroid and ovr_PlatformInitializeAndroidAsynchronous never returns.
I'm currently trying to set up my game to connect to the OVR Platform using ovr_PlatformInitializeAndroid or ovr_PlatformInitializeAndroidAsynchronous, however, what I'm currently seeing is that the program comes to a standstill when making those calls and never reaches the next line of code. What I've tried: I had a colleague test my code with their account on their device in the UK and it seemed to work (I am in NZ). I tried on a Quest 2 and Quest Pro and neither has worked. I created a new account and had that granted developer role and that still didn't work. I hotspotted my Quest to my mobile phone to use it's internet connection, and that didn't work. Unfortunately, as there seems to be no debug version of the library, I have no idea what could be preventing it from even producing an error code. Given it happens in the async call too it seems unlikely it has anything to do with communication. Any help would be greatly appreciated.1.1KViews0likes2CommentsApp Insta crashing after enabling MetaXRPlatform
Hi! My app instantly crashes when i try to open it after enabling the MetaXRPlatform plugin. It works flawlessly without the MetaXRPlatform. Testing on Quest 3 Built with Unreal 5.2.1 Meta Plugin V57 (1.89.0) MetaXRPlatform v57 (1.89.0) I've also tested with both Meta and Platform Plugins v56 (1.88.0) The only error i get is when i try to Logcat and i find this: cannot locate symbol "ovr_ApplicationInviteArray_GetSize" referenced by "/data/app/~~bvSnDS-fNz3PZusLcHZUYQ==/com.xxxxx.xxxxxx-sz5bGExZ1nd9G_ukRcJkgA==/lib/arm64/libUnreal.so"...Solved1.1KViews0likes1CommentOculus platform & Unreal listen server
Hello, I am looking into ways to possibly use a vendor platform (oculus/steam) to help me make and possibly run a lobby but then after matchmaking have the two players of the game connect directly to each other for the gameplay, with one player running as Unreal listen-server. Would this be possible with the Oculus platform? Cheers Fred2.8KViews0likes6CommentsUsers.GetOrgScopedID failing (breaking our games account login!)
Hi there. As of a couple of hours ago, calls to Users.GetOrgScopedID from our Unity based titles have started failing intermittently with the following error. "Failed: Server response is not valid JSON" The player account management for our games relies on this call returning a value in order to authenticate the user and allow them to play our games. I'm hoping to escalate this ASAP as it is preventing some of our players from accessing our games. Any insight would be greatly appreciated. Thanks!595Views0likes0CommentsOculus Platform wont initialize! DllNotFoundException: LibOVRPlatform64_1
We've been working on our game for about 1.5 years, done tons of builds etc. Occasionally, link won't connect and the only way that I have found to get it to reconnect is to uninstall oculus home and reinstall it, I've done this many times over the last year without any issues. Well this time, upon doing that oculus platform will NO LONGER INITIALIZE. It either gives no errors whatsoever, or I can some times get it to give a DllNotFoundException: LibOVRPlatform64_1. Searching around for help online it looks like this is a direct symptom of unity not knowing that the oculus home app is installed, or running. Which is of course is! It may be that I installed it in a different location than previous THIS time around and that caused this. But no matter what I do, deleting the library, rebuilding it, reinstalling oculus home, reimporting oculus integration, reinstalling oculus home. Over and over again, restarting, all of that in different orders. We tried for 7 hours straight today to get back to a place where we could initialize the platform. I've tried the standalone checkbox in oculus platform settings. All I can think is there must be a path somewhere that is held in old meta data or something that holds a wrong path and it simply does not know where oculus home is located? We are utterly dead in the water and this is incredibly frustrating as we need to get builds out and I have literally no idea what to do because there are no errors to tell us where the problem is. Is there a manifest, or an environmental variable somewhere that oculus uses? Any help would be greatly appreciated!1.6KViews0likes1CommentThe user isn't signed in
When running a dev build of my app built with Unity on the GO, I get the following error through the logs after the platform is initialized: The user isn't signed in or their account state wasn't in a recoverable state. I am signed in on the device, but not sure how to sign out to refresh the token if that's required, without factory resetting. Does anyone how to fix this? This also causes the following error when attempting to get user data: {"error":{"message":"Invalid OAuth 2.0 Access Token","type":"OCApiException","code":190,"error_data":[],"fbtrace_id":"AdktSl4ek+I"}}3.7KViews2likes7Comments