russell-archer / StoreHelper

Implementing In-App Purchases with StoreKit2 in Xcode 13 - 15 using SwiftUI, Swift 5.7 - 5.9, iOS 15 - 17 and macOS 12 - 14. Also supports tvOS and visionOS.
MIT License
410 stars 48 forks source link

Auto-renew subscription eligibility #56

Closed radiolondra closed 1 year ago

radiolondra commented 1 year ago

Hi, in StoreDemoApp Product storekit file I changed the Gold subscription introductory offer to offer a 1 week free trial period. I also changed the Subscription Renewal Rate of 1 month = 5 minutes to make local tests.

Running the app, Gold subscription buy product button caption correctly shows the 1 week free and I successfully bought it.

Then, without waiting the 5 minutes for the auto-renew, in the app I cancelled the subscription, and under Gold subscription I can see "Subscription cancelled. Will expire at..." with the date of expiring. So it knows that the trial period is still active.

But once the subscription has expired, under Gold I can see just a green mark. I expected to find some button saying "Renew" or "Buy" (obviously without the free trial because the user already used it and is no more eligible for the introductory offer...).

Is this normal? I mean, if a user cancels his subscription while in trial, at the end of the trial he should be able to buy the subscription again (without trial), or am I wrong? Thanks

Screenshot 2023-06-20 alle 10 58 16
radiolondra commented 1 year ago

hmmmmm... I found where I can buy the subscription again. Using the toast button Manage Subscriptions. OK, don't mind, sorry.