Search code examples
androidgoogle-playgoogle-play-servicesin-app-billingin-app-subscription

Redirect user to the Subscription page in the playstore


I've been reading this website : http://developer.android.com/google/play/billing/billing_subscriptions.html Because I read that "Currently, the In-app Billing API does not provide support for programatically canceling subscriptions from inside the purchasing app", I would like to redirect the user to this page to manage his own subscription.

I'm not able to find how to open the subscription page from an application. I was thinking about opening it like a external link with :

Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.google.com"));
startActivity(browserIntent);

But I don't even know the link I need to put in... -_-

Thanks in advance for your answer! :)


Solution

  • Ok, so I haven't received a better answer (actually... no answer at all..yet). For other that might research an answer, here is mine :

        Intent browserIntent = new Intent(Intent.ACTION_VIEW,
                       Uri.parse("https://play.google.com/store/account/subscriptions"));
        startActivity(browserIntent);
    

    Note: It seems, that the market: syntax is deprecated and the web intent is automatically forwarded to the PlayStore app.