79636809

Date: 2025-05-24 13:26:26
Score: 1
Natty:
Report link

My mistake was using the wrong parameter.

For Activity I used "this" instead of the correct Activity (LocalContext.current)

val activity = LocalContext.current as Activity 

Purchases.sharedInstance.purchaseWith(
    PurchaseParams.Builder(activity = activity, packageToPurchase = aPackage).build()
...
)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: buleva