My paywall has unexpected presentation behaviour

If you are seeing a paywall when you think you shouldn't or vice versa, we recommend running through the following list to debug:

  1. If you're using Advanced Configuration to implement subscription-related logic yourself, check when you're setting Superwall.shared.subscriptionStatus. It's important that the variable here is kept in sync with the subscription status of the user. If it isn't, the paywall won't display when it is supposed to. If the status is .unknown or .active, the paywall won't show (unless you're specifically overriding that). See here for more information about that.

  2. Check your device. If you have already purchased a subscription on your device, your paywall wouldn't show again. If you're using a local StoreKit file in your app for testing purposes, deleting and reinstalling your app will reset your device's subscription status.

  3. Check your campaign. Are you sending the necessary properties along with your trigger to match the rule? Is your trigger event name spelt correctly? If you have a holdout group in your campaign double check that this isn't the reason your paywall isn't displaying.

  4. Check that the products on your paywall are available and their identifiers are correct. If not, you'll see an error printed to the console. If you're using a StoreKit configuration file to test, make sure to add your products before trying to present the paywall.

In sandbox, my paywall shows free trial text but when I go to purchase, it doesn't show a free trial

If you've previously purchased a product within a subscription group and then deleted and reinstalled the app while testing in sandbox, this could happen. To fix this, restore products and try again. This is because we use the on-device receipt to determine whether a free trial is available. In sandbox, the app's receipt isn't retrieved until a purchase or restore is made. Therefore, the SDK won't be able to accurately determine whether the free trial is available. Fortunately, this won't happen in production.

My products aren't loading or aren't working in production

If your products haven't loaded, your paywall won't show and you'll get an error message printed to the console. Run through the following list to solve this:

  1. On the Superwall dashboard:
    1. Check that you have added products to all paywalls in the paywall editor. If any paywall doesn't contain a valid identifier you will see a error message in the console.
  2. In Xcode:
    1. If you're using a StoreKit configuration file locally, make sure your products have been added to it, either manually or by syncing with App Store Connect.
    2. Make sure your app's bundle ID is the same as your app in App Store Connect.
    3. Check you've added in-app purchase capability to your app's Xcode project.
  3. On App Store Connect:
    1. Make sure your free and paid apps agreements status are active.
    2. Make sure that your tax and banking information has been added.
    3. Make sure your product status is 'Ready to Submit'.
    4. Check that the IDs of your products match those in the paywall.
    5. Make sure you've waited at least 15 minutes after creating a product.
  4. In Production:
    1. Make sure you have waited for at least 72 hours after the release of a new app for your products to appear in your app. As soon as they appear on your App Store page, you'll know they're available in-app.
  5. If you're using RevenueCat:
    1. Check that your product IDs are added to RevenueCat and associated with an entitlement.
    2. If you're using offerings, make sure your product is associated with one.