Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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! :)

like image 762
maudem Avatar asked Apr 22 '16 23:04

maudem


People also ask

Can I purchase Subscription with Google Play?

Google is launching a way to buy Android app subscriptions outside of the app itself. Alongside the Android 11 beta news and updates to Android developer tools, Google has quietly rolled out a significant change in how Android app developers can market their subscriptions on the Google Play Store.

What happens if I cancel a subscription purchased on Google Play?

If a user cancels a subscription purchased from an app on Google Play, our policy is that the user will not receive a refund for the current billing period, but will continue to receive their subscription content for the remainder of the current billing period, regardless of the cancellation date.

Why do ads redirect me to a website without selecting it?

This appears to be because a dodgy ad-script (i.e. Javascript running in the web page) is somehow able to redirect my device to open a link to an application in the store without me selecting it directly.

Can You mislead users about subscription services in your app?

You, as a developer, must not mislead users about any subscription services or content you offer within your app. It is critical to communicate clearly in any in-app promotions or splash screens. We do not allow apps that subject users to deceptive or manipulative purchase experiences (including in-app purchases or subscriptions).

How do I get rid of the Play Store on Android?

From the main device settings, go to Apps, then find Play Store in the list, and click Clear defaults.


1 Answers

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.

like image 149
maudem Avatar answered Sep 20 '22 18:09

maudem