Update SubscriptionStoreView to use productIDs instead of groupID#14
Closed
donny-son wants to merge 1 commit into
Closed
Update SubscriptionStoreView to use productIDs instead of groupID#14donny-son wants to merge 1 commit into
donny-son wants to merge 1 commit into
Conversation
Switch PaywallView from SubscriptionStoreView(groupID:) to SubscriptionStoreView(productIDs:) which is more reliable in sandbox and review environments. The groupID-based initializer can silently fail to show purchase options if the group ID doesn't exactly match App Store Connect, while productIDs-based lookup is explicit and more robust. https://claude.ai/code/session_01KxGjmR7VhiKWLvDUxuahy8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updated the StoreKit 2 subscription configuration to use product IDs directly instead of a subscription group ID, and removed the now-unused group ID constant.
Key Changes
subscriptionGroupIDconstant from SubscriptionManager.swift as it is no longer neededPaywallViewto initializeSubscriptionStoreViewwithproductIDs: [subscriptionProductID]instead ofgroupID: subscriptionGroupIDImplementation Details
This change simplifies the subscription store configuration by using a more direct approach with explicit product IDs rather than relying on a subscription group identifier. This aligns with modern StoreKit 2 best practices and makes the subscription product configuration more explicit and maintainable.
https://claude.ai/code/session_01KxGjmR7VhiKWLvDUxuahy8