I have 3 inapp purchase subscriptions in 1 SubscriptionGroup: Basic, Standard, Premium, and in testing I do the the following actions:
(Purchase) Basic
(Upgrade) Standard
(Upgrade) Premium
(Downgrade) Basic
(Upgrade) Standard
How can I determine from the apple inapp purchase transactions which is the currently owned Subscription? And which is the renewal product?
I understand given Apples rules on subscriptions "Premium" would be owned and "Standard" would renewed. However, I don't have access to the auto_renew_product_id information in the receipt from our api provider and need to determine the renewal product from just the transactions and dates.
After running through the above Subscription actions the 3 products had the following details:
Basic:
{
"renewalIntent": "Renew",
"lastRenewalDate": "2021-03-04T00:29:42.000Z",
"purchaseDate": "2021-03-04T00:25:28.000Z",
"expiryDate": "2021-03-04T00:34:42.000Z"
}
Standard:
{
"renewalIntent": "Renew",
"lastRenewalDate": "2021-03-04T00:29:42.000Z",
"purchaseDate": "2021-03-04T00:27:29.000Z",
"expiryDate": "2021-03-04T00:34:42.000Z"
}
Premium:
{
"renewalIntent": "Renew",
"lastRenewalDate": "2021-03-04T00:29:42.000Z",
"purchaseDate": "2021-03-04T00:29:45.000Z",
"expiryDate": "2021-03-04T00:34:42.000Z"
}
As you can see all Subscriptions still have a "Renew" intent, and all the same purchase and lastRenewalDate. Apple seems to give them all the same purchaseDate even though they were purchased a number of minutes apart..?
How can I determine the current/renew product form this? Is there another field I should look at.
(Purchase) Basic
(Upgrade) Standard
(Upgrade) Premium
(Downgrade) Basic
(Upgrade) Standard
How can I determine from the apple inapp purchase transactions which is the currently owned Subscription? And which is the renewal product?
I understand given Apples rules on subscriptions "Premium" would be owned and "Standard" would renewed. However, I don't have access to the auto_renew_product_id information in the receipt from our api provider and need to determine the renewal product from just the transactions and dates.
After running through the above Subscription actions the 3 products had the following details:
Basic:
{
"renewalIntent": "Renew",
"lastRenewalDate": "2021-03-04T00:29:42.000Z",
"purchaseDate": "2021-03-04T00:25:28.000Z",
"expiryDate": "2021-03-04T00:34:42.000Z"
}
Standard:
{
"renewalIntent": "Renew",
"lastRenewalDate": "2021-03-04T00:29:42.000Z",
"purchaseDate": "2021-03-04T00:27:29.000Z",
"expiryDate": "2021-03-04T00:34:42.000Z"
}
Premium:
{
"renewalIntent": "Renew",
"lastRenewalDate": "2021-03-04T00:29:42.000Z",
"purchaseDate": "2021-03-04T00:29:45.000Z",
"expiryDate": "2021-03-04T00:34:42.000Z"
}
As you can see all Subscriptions still have a "Renew" intent, and all the same purchase and lastRenewalDate. Apple seems to give them all the same purchaseDate even though they were purchased a number of minutes apart..?
How can I determine the current/renew product form this? Is there another field I should look at.