Skip to content

Use Amazon deep link for Amazon subscription management#3291

Merged
vegaro merged 2 commits into
mainfrom
cesar/amazon-mgmt-url-deeplink
Mar 31, 2026
Merged

Use Amazon deep link for Amazon subscription management#3291
vegaro merged 2 commits into
mainfrom
cesar/amazon-mgmt-url-deeplink

Conversation

@vegaro

@vegaro vegaro commented Mar 31, 2026

Copy link
Copy Markdown
Member

Summary

  • On Amazon devices, try opening amzn://apps/library/subscriptions deep link first when the user wants to manage their subscription from Customer Center
  • Falls back to the backend-provided web URL (https://www.amazon.com/gp/mas/your-account/myapps/yoursubscriptions) if the deep link is unavailable (e.g. non-Amazon device)
  • Also adds Amazon deep link to Store.managementUrl for offline entitlements consistency

Test plan

  • Test on Amazon Fire device: verify amzn:// deep link opens Amazon App Store subscription management
  • Test on non-Amazon device with Amazon subscription: verify fallback to web URL works
  • Verify Google Play and other store cancellation flows are unaffected

🤖 Generated with Claude Code


Note

Medium Risk
Changes the Customer Center cancel flow to launch an Amazon Appstore deep link before falling back to a web managementURL, which could affect subscription-management navigation on Amazon/non-Amazon devices. Limited scope and covered by new unit tests, but involves external intent handling.

Overview
Improves Amazon subscription cancellation/management from Customer Center by trying the amzn://apps/library/subscriptions deep link first and falling back to the backend-provided web managementURL when the deep link can’t be opened.

Also adds an Amazon management URL constant and wires it into Store.managementUrl (used for offline entitlements consistency), with new tests covering the deep-link and fallback behavior.

Written by Cursor Bugbot for commit f7214cc. This will update automatically on new commits. Configure here.

On Amazon devices, open amzn://apps/library/subscriptions to manage
subscriptions directly in the Amazon App Store. Falls back to the
backend-provided web URL if the deep link is not available.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vegaro vegaro requested review from a team as code owners March 31, 2026 15:40
@vegaro vegaro added the pr:feat A new feature label Mar 31, 2026
Tests verify the deep link is tried first and that the web URL
fallback works when the deep link is unavailable.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

@tonidero tonidero left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you!

@codecov

codecov Bot commented Mar 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.48%. Comparing base (a485da9) to head (f7214cc).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3291   +/-   ##
=======================================
  Coverage   79.47%   79.48%           
=======================================
  Files         357      357           
  Lines       14351    14352    +1     
  Branches     1960     1960           
=======================================
+ Hits        11406    11407    +1     
  Misses       2141     2141           
  Partials      804      804           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vegaro vegaro changed the title Try Amazon deep link for subscription management Try Amazon deep link for Amazon subscription management Mar 31, 2026
@vegaro vegaro changed the title Try Amazon deep link for Amazon subscription management Use Amazon deep link for Amazon subscription management Mar 31, 2026
@vegaro vegaro added this pull request to the merge queue Mar 31, 2026
Merged via the queue into main with commit 186e198 Mar 31, 2026
35 checks passed
@vegaro vegaro deleted the cesar/amazon-mgmt-url-deeplink branch March 31, 2026 17:01
github-merge-queue Bot pushed a commit that referenced this pull request Apr 2, 2026
**This is an automatic release.**

## RevenueCat SDK
### ✨ New Features
* Use Amazon deep link for Amazon subscription management (#3291) via
Cesar de la Vega (@vegaro)
* Introduce purchases codegen package (#3163) via Jaewoong Eum
(@skydoves)
### 🐞 Bugfixes
* Fix Test Store Purchase dialog not cancelling purchase on outside tap
(#3289) via Antonio Pallares (@ajpallares)

## RevenueCatUI SDK
### Paywallv2
#### 🐞 Bugfixes
* Fix mixed currencies in paywall price variables (PW-133) (#3119) via
Facundo Menzella (@facumenzella)

### 🔄 Other Changes
* Add docs for the codegen plugin (#3288) via Jaewoong Eum (@skydoves)
* Run integration tests against all backend environments (#3278) via
Toni Rico (@tonidero)
* Use merge queue for release PR merging (#3281) via Antonio Pallares
(@ajpallares)
* ci: warn when pre-built material-icons are imported in
:ui:revenuecatui (#3282) via Facundo Menzella (@facumenzella)

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Low risk: this is a version/release bookkeeping update plus docs/CI
deployment path changes, with no functional runtime logic changes beyond
the reported version string.
> 
> **Overview**
> Cuts the `9.29.0` release by switching all references from
`9.29.0-SNAPSHOT` to `9.29.0` (Gradle `VERSION_NAME`, internal
`frameworkVersion`, and sample/test app dependency versions).
> 
> Updates documentation publishing to point to the `9.29.0` docs
directory (CircleCI S3 sync path and `docs/index.html` redirect), and
rolls forward `CHANGELOG.md`/`CHANGELOG.latest.md` with the 9.29.0
release notes.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
bf217fd. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr:feat A new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants