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

Subscription Auto-Canceling Issue #442

Open
mustakimpawle opened this issue Jul 26, 2023 · 3 comments
Open

Subscription Auto-Canceling Issue #442

mustakimpawle opened this issue Jul 26, 2023 · 3 comments

Comments

@mustakimpawle
Copy link

Plugin Name: flutter_inapp_purchase

Version: 5.4.2

Platform : Android

Expected behavior: Subscription should not get auto cancel after purchased.

Tested environment : Real Device

Flutter Doctor:
[✓] Flutter (Channel stable, 3.3.7, on macOS 12.6.5 21G531 darwin-x64, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
[✓] Android Studio (version 2021.3)
[✓] VS Code (version 1.80.1)
[✓] Connected device (1 available)
[✓] HTTP Host Availability

• No issues found!

Attachment:
error

@nexoftcengizhan
Copy link

Did you find any solution? @mustakimpawle

@RomanSoviak
Copy link

Did you find the solution?

@DagmawiN
Copy link

I am facing the same thing with this issue.

In more detail, this is what happens:
A user finishes subscribing and the purchase receipt is validated, completed and the purchase detail (i.e. orderId) is stored for later use.
Function in use: _inAppPurchase.finishTransaction(productItem);

After that, the user can use the subscription for a while but later on, maybe the app has restarted or the user reinstalled the app, in the app it checks whether the subscription is active using the orderId that was stored with the help of either one of these functions:
1. _inAppPurchase.getAvailablePurchases()
2. _inAppPurchase.checkSubscribed(sku: orderId)

And both functions detect, after sometime, as an inactive subscription even if the subscription is still going in the playstore subscriptions.

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

No branches or pull requests

4 participants