Flutter SDK+ Integration (Shoppable Ads)
This guide covers how to integrate Shoppable Ads into your Flutter app using SDK+. Shoppable Ads enable post-purchase upsell offers with in-app catalog browsing and instant checkout (via Apple Pay or Stripe) — all within the Rokt placement.
For the general Rokt Flutter SDK+ reference, see the Flutter SDK+ Integration Guide.
注記
If you are using the Legacy Rokt SDK (rokt_sdk), see the Flutter SDK Integration (Legacy) guide instead.
注記
Shoppable Ads in Flutter are currently supported on iOS only.
PrerequisitesPrerequisites への直接リンク
- iOS 15.6+ deployment target
- mparticle_flutter_sdk 2.x (SDK+)
- Rokt SDK+ for iOS —
RoktSDKPlusCocoaPods pod inios/Podfile(rokt-sdk-plus-ios), required for Apple Pay / Stripe payment processing - A Rokt account with Shoppable Ads enabled — contact your Rokt account manager
Step 1: Install dependenciesStep 1: Install dependencies への直接リンク
FlutterFlutter への直接リンク
flutter pub add mparticle_flutter_sdk
After adding the SDK+ Flutter dependency to your application, the following (or similar) lines are added to your package's pubspec.yaml file:
pubspec.yaml
dependencies:
mparticle_flutter_sdk: ^2.0.0
iOS native (Podfile)iOS native (Podfile) への直接リンク
Add the following pods to your ios/Podfile:
ios/Podfile
pod 'RoktSDKPlus', '~> 9.2'
Then install the pods:
cd ios && bundle exec pod install