Hello!
Could anyone please explain to me how does restoring purchases for anonymous user IDs work? I’m using
for await customerInfo in Purchases.shared.customerInfoStream {
let hasNoActiveEntitlements = customerInfo.entitlements.active.isEmpty
Superwall.shared.subscriptionStatus = hasNoActiveEntitlements ? .inactive : .active
}
to sync subscription status between RevenueCat and Superwall, but it works inconsistently, sometimes it never gets inside the for loop and sometimes it works without issues. Maybe I don’t get the idea and this code needs to be called after the app is in some specific state?