Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting Android replacement mode when using AdaptyUI #130

Open
agladyshev opened this issue Dec 4, 2024 · 2 comments
Open

Allow setting Android replacement mode when using AdaptyUI #130

agladyshev opened this issue Dec 4, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@agladyshev
Copy link

agladyshev commented Dec 4, 2024

Hi there.

When updating subscriptions on Android, the platform requires explicitly stating Replacement Mode to determine how subscription change is handled. Currently, if the app offers the same subscription for, let's say, a week, a month or a year, and an active subscriber tries to change subscription using Adapty paywall, a new subscription would be purchased for full price and the user would have 2 active subscriptions.

According to docs, we can set AdaptyAndroidSubscriptionUpdateParameters? subscriptionUpdateParams, if makePurchase is called manually.

final result = await adapty.makePurchase( product: product, subscriptionUpdateParams: subscriptionUpdateParams, );

But there is not such option available using AdaptyUI().createPaywallView() and showing paywall from paywall builder. It would be great if we had an option to set this parameter globally or when creating specific paywall view, or alternatively, in paywall builder.

Please let me know if I'm missing anything!

@agladyshev
Copy link
Author

I think I might have misunderstood how different billing periods should be treated in Google Play. I have separate subscriptions instead of having multiple base plans for the same subscription.
Still, in case of changing subscription to an entirely different one, the change described above might still be useful

@x401om x401om added the enhancement New feature or request label Dec 18, 2024
@x401om
Copy link
Collaborator

x401om commented Dec 18, 2024

Hi @agladyshev! Thank you for the issue, we're going to introduce this parameter soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants