mbaker3
mbaker3

Reputation: 1203

Amazon Appstore Deeplink to Manage Subscriptions

I'm trying to deeplink to the Amazon Appstore's Manage Subscriptions page from my app and I'm curious if it's possible. I've managed to accomplish this for the Google Play Store and iOS App Store.

I've gone through the documentation at the link below but there's no mention of linking to the Manage Subscriptions page. https://developer.amazon.com/docs/in-app-purchasing/iap-deep-linking-to-the-amazon-client.html

The closest I've come to accomplishing what I want is opening this link: http://www.amazon.com/gp/mas/your-account/myapps/yoursubscriptions

This will open the right page on the devices browser, but I'd prefer if I could open to the Manage Subscriptions page in the Amazon Appstore app.

Upvotes: 4

Views: 694

Answers (3)

xalioth
xalioth

Reputation: 31

The scheme proposed by @levon actually works on Amazon Fire tablets, so the best solution would be to use it with a fallback, something like this:

void openSubscriptionManagement() {
    try {
        // Open Amazon App Store to manage subscriptions
        Intent intent = new Intent("android.intent.action.VIEW", Uri.parse("amzn://apps/library/subscriptions"));
        startActivity(intent);
    } catch (Exception e) {
        try {
            String url = "https://www.amazon.com/gp/mas/your-account/myapps/yoursubscriptions";
            Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
            startActivity(intent);
        } catch (Exception e2) {
            Log.e(LOG_TAG, "Error opening URL", e2);
        }
    }
}

Upvotes: 2

Levon
Levon

Reputation: 1691

This is the scheme you want: "amzn://apps/library/subscriptions" and here's code that should work:

Intent intent = new Intent("android.intent.action.VIEW", Uri.parse("amzn://apps/library/subscriptions"));
startActivity(intent);

Upvotes: 1

Pavel Chuchuva
Pavel Chuchuva

Reputation: 22475

It looks like this is still not possible, see https://forums.developer.amazon.com/questions/16617/link-to-manage-subscription.html

There is not a link that you as a developer would be able to use to allow a customer to be able to manage their subscriptions. You would need to have your customers go to manage their subscription either via one of the Amazon Apps on their device, or via the Amazon.com website under their user's profile.

Upvotes: 2

Related Questions