Skip to content

in_app_purchase: add back queryPastPurchases #82677

@xvrh

Description

@xvrh

The package in_app_purchase version 0.6.0 removed the method queryPastPurchases saying:

The InAppPurchaseConnection.queryPastPurchases method has been removed. Instead, you should use InAppPurchase.restorePurchases

Use case

Restoring purchases is not the only use case of queryLastPurchases.
I use it during my purchase process to detect an existing subscription and propose an upgrade rather than creating a new subscription (with ChangeSubscriptionParam).
Going through purchaseStream is not convenient.

Proposal

Please consider adding queryPastPurchases back for android.

Metadata

Metadata

Assignees

Labels

P3Issues that are less important to the Flutter projectc: proposalA detailed proposal for a change to Flutterp: in_app_purchasePlugin for in-app purchasepackageflutter/packages repository. See also p: labels.r: fixedIssue is closed as already fixed in a newer version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions