If you wish to make purchases outside of Superwall’s SDK and paywalls, you can use observer mode to report purchases that will appear in the Superwall dashboard, such as transactions:

This is useful if you are using Superwall solely for revenue tracking, and you’re making purchases using frameworks like StoreKit or Google Play Billing Library directly. Observer mode will also properly link user identifiers to transactions. To enable observer mode, set it using SuperwallOptions when configuring the SDK:

There are a few things to keep in mind when using observer mode:

  1. On iOS, if you’re using StoreKit 2, then Superwall solely reports transaction completions. If you’re using StoreKit 1, then Superwall will report transaction starts, abandons, and completions.
  2. When using observer mode, you can’t make purchases using our SDK — such as Superwall.shared.purchase(aProduct).

For more on setting up revenue tracking, check out this doc.