Change subscription from plan a -> b -> a Fails

Hello,

I have two plans for my IAP subscription (auto renew). They are both $3.99 at the moment. They are in the same group. I'm going to change the prices after I figure this out so they're not the same. But I shouldn't have this error.

If I sign up (in the sandbox) with the "normal" plan, it's great. Then I change my plan to the "Pro" plan using the popup like this:

AppStore.showManageSubscriptions(in: windowScene as! UIWindowScene)

Then I get the status of the plan like with a request to the apple server api: ${appleApiUrl}/inApps/v1/subscriptions/${user.originalTransactionId}

And everything is great, it shows "Pro" plan as the last transaction.

But then if I open the dialog again and switch back to the "normal" plan, when I call the apple server api it just shows the last transaction is the pro plan. So I can't detect that somebody switched back. It's unlikely to happen, but definitely could. Please fix! Thank you!

Replies

Sounds like a downgrade - changing plans are either instant or wait till next renewal date. Are you checking the renewal info for the product ID their subscription will renew to?

upgrade/downgrade behavior is determined on your setup in App Store Connect. Check these out for more info https://developer.apple.com/app-store/subscriptions/ https://help.apple.com/app-store-connect/#/dev75708c031

I get it. So they can upgrade any time, but will be downgraded only at the end of the current period they are subscribed for. Thank you!