A Flutter plugin to display an in-app update prompt for iOS using the App Store product page. This avoids navigating the user out of your app, providing a seamless and native update experience.
- ✅ Show in-app update prompt using
SKStoreProductViewController - ✅ Native Swift implementation
- ✅ No manual setup required in iOS AppDelegate
- ✅ Pass dynamic App Store ID via MethodChannel
- ✅ Works directly from Flutter with a single call
Add the package to your pubspec.yaml:
dependencies:
in_app_update_flutter: ^1.0.0Then run:
flutter pub getimport 'package:in_app_update_flutter/in_app_update_flutter.dart';
await InAppUpdateFlutter().showUpdate(appStoreId: '1234567890');Make sure to pass your App Store ID (from the app’s public iTunes URL).
- Go to your app’s App Store URL
Example:https://apps.apple.com/app/id1234567890 - Extract the numeric ID (without the
idprefix) - Pass it like this:
await InAppUpdateFlutter().showUpdate(appStoreId: "1234567890");- ✅ Supports iOS 12.0+
- ❌ Does not work on simulators
- ❌ Not supported in TestFlight builds (use App Store or dev builds on real devices)
A complete working example is available in the example/ directory.
cd example
flutter runPublished by pulkit.sh
Pull requests and feedback are welcome!
For major changes, please open an issue first to discuss what you’d like to change.