Skip to content

Update SubscriptionStoreView to use productIDs instead of groupID#14

Closed
donny-son wants to merge 1 commit into
v1.8from
claude/fix-iap-payment-sheet-GxEIG
Closed

Update SubscriptionStoreView to use productIDs instead of groupID#14
donny-son wants to merge 1 commit into
v1.8from
claude/fix-iap-payment-sheet-GxEIG

Conversation

@donny-son

Copy link
Copy Markdown
Contributor

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

  • Removed subscriptionGroupID constant from SubscriptionManager.swift as it is no longer needed
  • Updated PaywallView to initialize SubscriptionStoreView with productIDs: [subscriptionProductID] instead of groupID: subscriptionGroupID

Implementation 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

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
@donny-son donny-son closed this Mar 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants