File tree 3 files changed +5
-3
lines changed
packages/in_app_purchase/in_app_purchase_ios 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
- ## NEXT
1
+ ## 0.1.3+5
2
2
3
+ * Updated example app to handle restored purchases properly.
3
4
* Update dev_dependency ` build_runner ` to ^2.0.0 and ` json_serializable ` to ^5.0.2.
4
5
5
6
## 0.1.3+4
Original file line number Diff line number Diff line change @@ -399,7 +399,8 @@ class _MyAppState extends State<_MyApp> {
399
399
} else {
400
400
if (purchaseDetails.status == PurchaseStatus .error) {
401
401
handleError (purchaseDetails.error! );
402
- } else if (purchaseDetails.status == PurchaseStatus .purchased) {
402
+ } else if (purchaseDetails.status == PurchaseStatus .purchased ||
403
+ purchaseDetails.status == PurchaseStatus .restored) {
403
404
bool valid = await _verifyPurchase (purchaseDetails);
404
405
if (valid) {
405
406
deliverProduct (purchaseDetails);
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: in_app_purchase_ios
2
2
description : An implementation for the iOS platform of the Flutter `in_app_purchase` plugin. This uses the iOS StoreKit Framework.
3
3
repository : https://github.com/flutter/plugins/tree/master/packages/in_app_purchase/in_app_purchase_ios
4
4
issue_tracker : https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+in_app_purchase%22
5
- version : 0.1.3+4
5
+ version : 0.1.3+5
6
6
7
7
environment :
8
8
sdk : " >=2.14.0 <3.0.0"
You can’t perform that action at this time.
0 commit comments