Flutter mobile application integrated with Shopware 6 via ExpertiveMobileAppConnector.
- Flutter SDK 3.0+
- Dart 3.0+
- Shopware 6.6+ with ExpertiveMobileAppConnector plugin
Configuration is passed at build time via --dart-define (recommended for production).
| Variable | Description |
|---|---|
SHOPWARE_BASE_URL |
Shopware public URL (must end with /) |
SHOPWARE_SALES_CHANNEL_ID |
Mobile sales channel UUID (32 hex chars) |
MOBILE_APP_SECRET |
Shared secret from plugin config (per sales channel) |
Copy lib/core/config/app_config.example.dart to lib/core/config/app_config.dart for local development, or use dart-define only.
- Extensions → Mobile App Connector → Configure
- Select your mobile sales channel in the top selector
- Enable Mobile App Active
- Set Mobile App Secret (same value as
MOBILE_APP_SECRETin the app build) - Configure CMS pages, colors, logo
cd FlutterforShopware
flutter pub get
flutter run \
--dart-define=SHOPWARE_BASE_URL=https://your-shop.com/ \
--dart-define=SHOPWARE_SALES_CHANNEL_ID=your32charhexsaleschannelid \
--dart-define=MOBILE_APP_SECRET=your-secretVS Code: set the same values in .vscode/launch.json under toolArgs.
flutter build apk --release \
--dart-define=SHOPWARE_BASE_URL=https://your-shop.com/ \
--dart-define=SHOPWARE_SALES_CHANNEL_ID=your32charhexsaleschannelid \
--dart-define=MOBILE_APP_SECRET=your-secretflutter build appbundle --release \
--dart-define=SHOPWARE_BASE_URL=https://your-shop.com/ \
--dart-define=SHOPWARE_SALES_CHANNEL_ID=your32charhexsaleschannelid \
--dart-define=MOBILE_APP_SECRET=your-secretflutter build ios --release \
--dart-define=SHOPWARE_BASE_URL=https://your-shop.com/ \
--dart-define=SHOPWARE_SALES_CHANNEL_ID=your32charhexsaleschannelid \
--dart-define=MOBILE_APP_SECRET=your-secretNote:
SHOPWARE_ACCESS_KEYis no longer required. The access key is fetched automatically at startup via/store-api/flutter/bootstrap.
lib/
├── main.dart
├── core/
│ ├── config/ # App configuration
│ ├── models/
│ ├── services/ # API & layout services
│ └── api_client.dart
├── screens/
├── widgets/
└── data/repositories/
| Issue | Check |
|---|---|
| "Unable to connect" on startup | Sales channel ID, secret, and Mobile App Active in admin |
| Empty home page | Home CMS page configured in plugin for that sales channel |
| API errors | SHOPWARE_BASE_URL must be HTTPS in production |
MIT License