flutter_inapp_purchase
11.4.1, released 3 days ago by hyo.dev
Flutter plugin for implementing in-app purchases and subscriptions.
What it does
A comprehensive plugin for handling in-app purchases across mobile platforms. It implements the OpenIAP Client Protocol to provide standard purchase flows and product fetching.
AI-written summary of version 11.3.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to sell digital goods, in-app products, or subscriptions in your Flutter app.
- You want cross-platform IAP consistency using the OpenIAP protocol.
Skip it when
- You prefer using the official Flutter `in_app_purchase` package without third-party protocol wrappers.
- Your app does not require any monetization or billing features.
Strengths
- Conforms to the OpenIAP Client Protocol for shared purchase behaviors.
- Supports multiple stores (Google Play, Apple App Store, Amazon, Horizon).
- Active maintenance and clear developer documentation.
Weaknesses
- Requires platform-specific configuration and native dependency resolution for Apple and Android targets.
- Android store SDK behavior depends on gradle property configurations.
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 3
Requires native Apple platform targets of iOS 15.0+ or macOS 14.0+. On older Flutter versions or when SPM is disabled, run pod install in the ios/macos directories.
import 'package:flutter_inapp_purchase/flutter_inapp_purchase.dart';
final iap = FlutterInappPurchase.instance;
await iap.initConnection();
final products = await iap.fetchProducts<Product>(
skus: ['product_id'],
type: ProductQueryType.InApp,
);Alternatives
Packages that do the same job and could replace flutter_inapp_purchase.
- in_app_purchase
Official Flutter package for in-app purchases maintained by the Flutter team.
94Compare - adapty_flutter
Focuses on paywall management and subscription analytics alongside IAP.
92Compare
Works with
Packages commonly used together with flutter_inapp_purchase: ones it builds on, ones built on it, and its own family.