-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
Hello,
I'm considering to change the business model of my app from paid up front to freemium. I was going to use AppTransaction
in StoreKit 2 to check for the originalAppVersion
. Unfortunately AppTransaction
doesn't support the volume purchase program and triggers an Apple ID sign in when an app was purchased through the VPP.
I was looking at this library and it looks like it should be possible to check for UnofficialReceipt.provisioningType
for ProvisioningType.ProductionVPP
to check if the app was purchased through the volume purchase program.
- Does anyone have a sample VPP app receipt file so I could check a real-world example of how this would look like?
- Does a VPP app receipt file contain the
originalAppVersion
or is itnil
? AppTransaction
of StoreKit 2 has a fieldoriginalPurchaseDate
that contains the original purchase date of the app itself while I cannot find this in theReceipt
struct - only inInAppPurchaseReceipt
. Is this not available outside of StoreKit 2, or is this field just not yet added to this library? I'm asking because if a VPP receipt did not contain theoriginalAppVersion
, we could use theoriginalPurchaseDate
of the app receipt instead.
Thanks for your help!
Metadata
Metadata
Assignees
Labels
No labels