Skip to content

1.0.0-beta.3

Pre-release
Pre-release
Compare
Choose a tag to compare
@smejl smejl released this 10 Apr 16:18
· 91 commits to master since this release
13ab2b0

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 }