1.0.3
Receipt Validation
Qonversion SDK provides a method for checking user subscription status. That makes your app flow more flexible. For example, you can check that the user subscription has not expired yet but was canceled. Or you can check that the subscription is in billing retry status and show a special offer to such user.
Qonversion.checkUser({ result in
guard let activeProduct = result.activeProducts.first else {
// Flow for users without any active subscription
return
}
if activeProduct.state == .trial, activeProduct.status == .active {
// Flow for users with active subscription
}
}) { _ in }
Debug Mode
Set debug mode for checking user receipt on correct environment and collect data in sandbox
Qonversion.setDebugMode(true)