sendInappPurchase

open fun sendInappPurchase(sku: String, price: BigDecimal, currency: String)

Sends in-app purchase statistics to Pushwoosh.

Purchase information is automatically stored in the following default tags:

  • "In-app Product" - product SKU
  • "In-app Purchase" - purchase amount
  • "Last In-app Purchase date" - purchase timestamp
Example:

  // Track in-app purchase
  Pushwoosh.getInstance().sendInappPurchase(
      "premium_subscription",
      new BigDecimal("9.99"),
      "USD"
  );

Parameters

sku

purchased product ID

price

price of the product

currency

currency of the price (ex: "USD")