dooboolab-community / flutter_inapp_purchase

(Sun Rised!) Flutter plugin for In App Purchase.
MIT License
549 stars 236 forks source link

Subscription Auto-Canceling Issue #442

Open mustakimpawle opened 1 year ago

mustakimpawle commented 1 year ago

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 commented 1 year ago

Did you find any solution? @mustakimpawle

RomanSoviak commented 6 months ago

Did you find the solution?

DagmawiN commented 5 months ago

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.

github-actions[bot] commented 2 months ago

This issue is stale because it has been open 90 days with no activity. Leave a comment or this will be closed in 7 days.

RomanSoviak commented 2 months ago

Any updates?