Then you can provide Magify ClientId to RevenueCat. It is possible to do
- during RevenueCat initialization:
var clientId = MagifyService.Instance.ClientId;
Purchases.PurchasesConfiguration.Builder builder = Purchases.PurchasesConfiguration.Builder.Init("your_api_key");
Purchases.PurchasesConfiguration purchasesConfiguration = builder.SetAppUserId(clientId).Build();
purchases.Configure(purchasesConfiguration);
- after RevenueCat initialization:
var clientId = MagifyService.Instance.ClientId;
var purchases = GetComponent<Purchases>();
purchases.LogIn(clientId, (customerInfo, created, error) =>
{
if (error != null)
{
// show error
}
else
{
// show customerInfo
}
});