Skip to main content
Question

Unity to VisionOS - Nothing happens

  • 22 June 2024
  • 2 replies
  • 34 views

Hello! I’m doing a game for VisionOS using Unity and I’m trying to using RevenueCat, but without success. I’ve followed the guides and everything seems to be properly setup.

However, when I run the game I get no logs (or errors) from RevenueCat whatsoever. I have the logLevel set to verbose.

Calling any method on the Purchases behavior simply does nothing. I suspect it’s because the Purchases class has the following code:

private void Start()
{
#if UNITY_ANDROID && !UNITY_EDITOR
_wrapper = new PurchasesWrapperAndroid();
#elif UNITY_IPHONE && !UNITY_EDITOR
_wrapper = new PurchasesWrapperiOS();
#else
_wrapper = new PurchasesWrapperNoop();
#endif
if (!string.IsNullOrEmpty(proxyURL))
{
_wrapper.SetProxyURL(proxyURL);
}

if (useRuntimeSetup) return;

Configure(string.IsNullOrEmpty(appUserID) ? null : appUserID);
GetProducts(productIdentifiers, null);
}

 

I’ve tried to manually change the files but then I get thrown into a pile of build errors on Xcode…

Does anyone have any hints? Is RevenueCat SDK for Unity supposed to work with VisionOS builds?

This post has been closed for comments

2 replies

Badge

Another unclear question in my head (and in the docs) is if I need to run the RevenueCat setup for iOS (VisionOS in this case) after exporting the Xcode project from Unity.

Or will the exported Xcode project from Unity already be fully setup? It doesn’t seem like it… But again, no errors are thrown. ¯\_(ツ)_/¯

Userlevel 3
Badge +3

Hi @luis-fonseca,

Sorry for the delay answering this! As you experienced, right now VisionOS is not fully supported in our Unity SDK but we are working on an implementation and would appreciate your help testing it to make sure it works for you. Would you be available to test this fix and let us know the result? I attached a `.unitypackage` with the updated code in case it helps.

Any information you can provide with the Xcode issues could also help us on this. Please feel free to open a ticket through our dashboard or emailing support@revenuecat.com referencing this issue if you prefer a more private setting.

Also happy to work together to get this working!

Best,

Toni