I’m currently using Unity's IAP package for my in-app purchase system, but I’d like to use RevenueCat in Observer Mode.
In the documentation, I found the following example:
// Observer mode can be configured through the Unity Editor. // If you'd like to do it programmatically instead, // make sure to check "Use runtime setup" in the Unity Editor, and then: Purchases.PurchasesConfiguration.Builder builder = Purchases.PurchasesConfiguration.Builder.Init(<api_key>); Purchases.PurchasesConfiguration purchasesConfiguration = builder.SetUserDefaultsSuiteName("user_default") .SetObserverMode(true) .SetAppUserId(appUserId) .Build(); purchases.Configure(purchasesConfiguration);
However, the method SetObserverMode(true)
doesn't seem to exist, and I get an error saying the method is not found.
Am I missing something? Is this method removed or replaced? And is this all I need to do to enable Observer Mode programmatically, or is there additional configuration required?
Thanks in advance!