horse revenue Docs

Help

Troubleshooting

The problems people run into most, what causes them, and how to fix each one. Turn on logLevel .debug first. The SDK's log usually names the cause.

#A purchase doesn't unlock

  • The product isn't mapped. On Products, check that the product grants the entitlement your app checks. An unmapped product sells, but it unlocks nothing.
  • The wrong entitlement id. isEntitled("pro") must use exactly the id on Entitlements. Ids are case-sensitive.
  • Sandbox is switched off. On SDK & settings, Sandbox purchases grant entitlements must be on for TestFlight and Sandbox purchases to unlock.
  • It's a reinstall. With the default restore policy, a fresh install stays locked until the person taps Restore. See restoring.
  • The access was blocked for testing. Check the customer's page for a blocked entitlement.

#A package is missing from the offering

The SDK leaves out packages whose product the App Store doesn't return, and logs a warning. Check that:

  • The product id in Horse matches App Store Connect exactly.
  • The product is Ready to Submit or approved, and available in the storefront you're testing in.
  • In Xcode, with a StoreKit configuration file, the product is in that file.
  • The Paid Apps agreement is active in App Store Connect. Without it, the App Store returns no products at all.

#App Store notifications don't arrive

  • The URL in App Store Connect is the one on SDK & settings, for both Production and Sandbox, and Version 2 is selected.
  • The app's numeric Apple ID is filled in. Without it, production notifications are turned away.
  • The URL wasn't rotated since you pasted it. Rotating it makes the old one stop working.
  • Send test (Sandbox) on App Store notifications shows whether Apple can reach Horse.

#The paywall shows the wrong thing

  • Your old paywall appears. No design is published for that offering, or the device has never been online. Publish the design and open the app online once.
  • It promises a trial the person can't have. It shouldn't: the SDK checks eligibility with StoreKit first. Check that the texts with a free trial are set on the plan, not only the default texts.
  • The price looks wrong. Prices come from the App Store in the device's storefront and currency. A Sandbox Apple Account's storefront may not be your country.
  • A block is missing. An older SDK skips block types it doesn't know. Update the app's package.

#Meta shows "skipped: no device identifier"

The app isn't sending the ids Meta matches on. Call collectDeviceIdentifiers() and setFBAnonymousID at launch and after the tracking prompt, with the HorseKitAttribution library. See Meta.

#The app crashes at launch

Horse.shared was used before Horse.configure. Configure first, in your App's init or application(_:didFinishLaunchingWithOptions:), and check Horse.isConfigured in code that can run earlier.

#Still stuck?

Write to info@horserevenue.app with the app's bundle id, the customer's app user id or original transaction id, and the SDK's debug log. Or open an issue on GitHub.