Skip to content

Commit 713c820

Browse files
committed
fix: update subscription flow screen to use getAvailablePurchases
1 parent 8956aed commit 713c820

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/lib/src/screens/subscription_flow_screen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ Platform: ${error.platform}
190190

191191
Future<void> _loadActiveSubscriptions() async {
192192
try {
193-
final purchases = await _iap.getActivePurchases();
193+
final purchases = await _iap.getAvailablePurchases();
194194
setState(() {
195195
_activeSubscriptions = purchases
196196
.where((p) => subscriptionIds.contains(p.productId))

0 commit comments

Comments
 (0)