Hi there. I’m looking to implement simple subscription code, but it turns out that subscriptions aren’t that simple. Here’s a good article to start
For now I understand that I need store the status of subscription, order id, and last payment time locally and check periodically with App Store if the subscription is still valid. But it seems that juce::InAppPurchases lacks necessary methods for this or they are hidden internally (verifyReceipt).
restoreProductsBoughtList doesn’t fit here as it invokes asking for user’s Apple Id, and we don’t wan’t that at each start of the app. All manuals say that this method should be invoked manually by user. Similar problem is discussed in this topic, but there are no answers at all:
My questions: is it possible to setup subscription feature with juce::InAppPurchases or do I need to develop my own wrapper around StoreKit? Can someone share some insights/details of implementing subscriptions in Juce environment?
Hey @lunelasuis Been a while since your post, but wondering if you ever solved this satisfactorily? I’m just starting to research how to do this. Apple’s API for StoreKit may have been updated in the meantime, I think, but I can’t tell what the impact is yet.
Upcoming Requirements: App Store Receipt Signing Certificate
The SHA-1 intermediate certificate used for signing App Store receipts expires on January 24, 2025. If your app performs on-device receipt validation, make sure it supports the SHA-256 algorithm; alternatively, use the AppTransaction and Transaction APIs to verify App Store transactions. Learn More