Skip to content

Add public Purchases.showManageSubscriptions() API#3434

Draft
facumenzella wants to merge 1 commit into
mainfrom
feat/show-manage-subscriptions-public-api
Draft

Add public Purchases.showManageSubscriptions() API#3434
facumenzella wants to merge 1 commit into
mainfrom
feat/show-manage-subscriptions-public-api

Conversation

@facumenzella
Copy link
Copy Markdown
Member

Closes #3433

Summary

  • Adds Purchases.showManageSubscriptions(context, callback?) as a public API on Android, mirroring the existing iOS Purchases.showManageSubscriptions() API
  • Uses CustomerInfo.managementURL when available (handles Stripe, web purchases, etc.), falls back to the store's default URL (GOOGLE_PLAY_MANAGEMENT_URL, AMAZON_STORE_MANAGEMENT_URL, GALAXY_STORE_MANAGEMENT_URL)
  • New ManageSubscriptionsCallback interface with onSuccess() / onError(error) for callers that need a result
  • API signatures updated via Metalava

Test plan

  • 4 unit tests: management URL from CustomerInfo, store fallback URL, success callback, error callback on fetch failure — all pass
  • Full :purchases:testDefaultsBc8DebugUnitTest suite passes
  • API signatures regenerated via scripts/api-dump.sh

🤖 Generated with Claude Code

Mirrors the iOS Purchases.showManageSubscriptions() public API. Uses
CustomerInfo.managementURL when available, otherwise falls back to the
store's default management URL (Play Store, Amazon, Galaxy Store).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ShowManageSubscriptions is not at parody with iOS - Should handle all stores

1 participant