Overview & Architecture
The app connects directly to your Magento 2 GraphQL endpoint (https://your-store.com/graphql) and fetches its live visual configuration from PointOfCode Mobile App Studio on startup.
app_config.json, launching the app opens a bilingual Setup & Preview screen so you can test any Magento store URL immediately.sync_studio_identity.mjs) before building for stores to sync your Studio launcher icon, boot splash mark, and OS app name into Android & iOS.What Updates Live vs. What Requires a Store Rebuild
| Change Type | Where to Change | Requires Store Rebuild? |
|---|---|---|
| Themes, Colors, Fonts & Radius | POC Studio Dashboard → Publish | No — updates live on launch |
| Home Sections, Banners & Carousels | POC Studio Dashboard → Publish | No — updates live on launch |
| In-App Logos, Splash Image & Social Links | POC Studio → App Config → Branding | No — updates live on launch |
| Onboarding Walkthrough Slides | POC Studio → Walkthrough → Publish | No — updates live on launch |
| Launcher Icon, OS Name & Package ID | sync_studio_identity.mjs / Gradle / Xcode |
Yes — compiled into binary |
| Permanent Store URL & Firebase Files | app_config.json, Firebase configs |
Yes — bundled in release |
What's in the Package
Download Mobile App Studio from My Account → My Licenses on store.pointofcode.com. The ZIP contains two folders.
| Folder | Contents | Where it goes |
|---|---|---|
magento-modules | The four Magento modules: Core, MobileAppCore, MobileAppApiGraphQl, MobileAppStudio | Your Magento server, in app/code/PointOfCode/ |
flutter-source | The full Flutter source of the iOS and Android app, with this guide in docs/ | Your development machine. Do not upload it to the Magento server. |
Setup happens in three parts: install the Magento modules and enter your license key, connect Studio (the web dashboard at studio.pointofcode.com) to your store, then build and publish the app.
System Requirements
Make sure your build machine and Magento 2 server meet these requirements before building or releasing.
| Component | Requirement | Notes |
|---|---|---|
| Flutter SDK | 3.x (Dart >=3.0.0 <4.0.0) |
Verify with flutter doctor |
| Android Toolchain | JDK 17, Android SDK 35/36, Min SDK 26 | Required for Gradle release builds |
| iOS Toolchain | macOS, Xcode 15+, CocoaPods | Deployment target iOS 15.5+ |
| Node.js | Node 18+ & Python 3 (Pillow) | Only needed if running sync_studio_identity.mjs |
| Magento 2 Backend | Magento 2.4.x with the Mobile App Studio package installed (PointOfCode_Core, MobileAppCore, MobileAppApiGraphQl, MobileAppStudio) | Must be served over valid HTTPS |
Install the Magento Modules
Run these steps on your Magento server, as the web server user (commonly www-data).
Upload the modules
Upload the four folders inside magento-modules to app/code/PointOfCode/ in your Magento root, so you have app/code/PointOfCode/Core, MobileAppCore, MobileAppApiGraphQl and MobileAppStudio. If Core already exists from another PointOfCode extension, keep the one with the higher version in its composer.json.
Enable and deploy
bin/magento module:enable PointOfCode_Core PointOfCode_MobileAppCore PointOfCode_MobileAppApiGraphQl PointOfCode_MobileAppStudio
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f
bin/magento cache:flush
In developer mode you can skip setup:di:compile and setup:static-content:deploy. In production mode, reload PHP-FPM afterwards so it stops using the previously compiled code.
Check the modules are enabled
bin/magento module:status PointOfCode_Core PointOfCode_MobileAppCore PointOfCode_MobileAppApiGraphQl PointOfCode_MobileAppStudio
License & Connect Studio
Studio has no password of its own. It connects to your store with a Magento Integration access token that you create and can revoke at any time.
Enter your license key
In the Magento admin go to Stores → Configuration → PointOfCode → Mobile App Studio, paste your key (POC-XXXX-XXXX-XXXX-XXXX, from your purchase email or My Account → My Licenses) into License Key and click Save Config. Magento shows "Mobile App Studio license activated for yourstore.com".
Allow Integration tokens as Bearer tokens (Magento 2.4.4 and later)
Go to Stores → Configuration → Services → OAuth → Consumer Settings, set Allow OAuth Access Tokens to be used as standalone Bearer tokens to Yes, save and flush the cache. Or from the command line:
bin/magento config:set oauth/consumer/enable_integration_as_bearer 1
bin/magento cache:flush
Create the Integration
Go to System → Extensions → Integrations → Add New Integration. Name it Mobile App Studio, leave the callback URLs empty and confirm with your admin password. On the API tab set Resource Access to Custom and tick Mobile App Studio (this selects all its children, including Push Notifications). Do not grant unrelated resources such as Catalog or Sales. Click Save.
Activate it and copy the Access Token
In the Integrations grid click Activate, then Allow. Copy the Access Token. Treat it like a password: with it and your store URL, anyone can edit your app content.
Connect Studio
Open studio.pointofcode.com, enter your store URL (for example https://mystore.com, without /graphql) and the Access Token, and connect. The Studio Guide covers the dashboard in detail.
Magento Settings for the App
The app reads products, prices, stock, customers and orders live from Magento. Check these settings in the Magento admin.
| Setting | Where in Magento | Notes |
|---|---|---|
| Store views | Stores → All Stores | Each store view (for example en and ar) gets its own content in Studio. Note the store ID, website ID and store code for app_config.json. |
| Currency | Stores → Configuration → General → Currency Setup | For example USD, SAR, KWD or EGP. |
| Catalog | Catalog → Categories / Products | Products must be enabled, in stock, assigned to the website and a category, and indexed. |
| CMS pages | Content → Pages | About us, terms, privacy policy and similar pages shown in the app. |
| Shipping methods | Stores → Configuration → Sales → Delivery Methods | The methods offered at app checkout. |
| Payment methods | Stores → Configuration → Sales → Payment Methods | See the list below. |
Payment methods in the app
In this version the app checkout supports these Magento payment methods. Enable the ones you want; the app shows each one available for the cart and selected in Studio. If the Studio selection is empty, all supported methods available for the cart are shown.
| Method | Code |
|---|---|
| Cash On Delivery | cashondelivery |
| Bank Transfer Payment | banktransfer |
| Check / Money order | checkmo |
| Purchase Order | purchaseorder |
Quick Start & Instant Preview
The template ships with clean placeholders and zero hardcoded credentials. You can preview a live store in seconds without editing native build files first.
Install Flutter Packages
Run flutter pub get in the project root to resolve all dependencies.
Run the App
Run flutter run on a phone emulator or physical device. Because app_config.json still has the template URL, the app automatically opens the Store Setup & Live Preview screen.
Enter Your Magento Store URL
Paste https://your-store.com (no need to add /graphql) and tap Connect & Preview. The app validates the Studio GraphQL snapshot and boots straight into your live storefront.
Optional: Pass Store URL via Command Line
During development you can also override the store endpoint without modifying app_config.json:
flutter pub get
flutter run --dart-define=BASE_URL=https://your-store.com
google-services.json and GoogleService-Info.plist. Configure the required Firebase and APNs services and test delivery on your own builds and devices; Firebase files alone do not verify push delivery. See Firebase & Push Notifications.
assets/config/app_config.json Reference
Before compiling a production release for your customers, update assets/config/app_config.json with your permanent store URL and defaults.
{
"app": {
"name": "Your Brand Name",
"name_ar": "اسم المتجر",
"package_name": "com.yourbrand.app",
"version": "1.0.0",
"build_number": 1
},
"magento": {
"base_url": "https://shop.yourbrand.com",
"graphql_endpoint": "/graphql",
"store_id": "1",
"website_id": "1",
"default_store_code": "en",
"default_currency": "USD"
},
"theme_id": "luxe-noir",
"mock_mode": false
}
magento.base_urlmagento.default_store_code & magento.default_currency"en" / "USD"price_format.app.package_name"com.pointofcode.app"applicationId / iOS bundle ID so Share App, Rate App, and Store Update links point to your listing.branding.* & theme_idassets/brand/studio_*.pngpayment.enabled_methodscashondelivery, banktransfer, checkmo, and purchaseorder.White-Label Identity & Native Asset Sync
While in-app logos and splash graphics update live from Studio, Android and iOS require home-screen launcher icons and OS display names to be baked into the app binary before submission.
Option A — Sync Directly from Your Live Store
node scripts/sync_studio_identity.mjs \
--endpoint https://shop.yourbrand.com/graphql \
--store en
Option B — Sync from an Exported Studio JSON
In POC Studio (App Config → Branding & social), click Export build identity and pass the file:
node scripts/sync_studio_identity.mjs --file studio-identity-en.json
What the Script Updates Automatically
- Android Icons & Splash:
mipmap-*/ic_launcher.png, adaptive icon layers,ic_launcher-playstore.png, monochrome notification icondrawable/ic_status.png, anddrawable/splash_mark.png. - iOS Icons & Splash:
Assets.xcassets/AppIcon.appiconset/*andLaunchImage.imageset/*. - OS Display Names: Android
values/strings.xml&values-ar/strings.xml, iOSInfo.plist&project.pbxproj. - Offline Bootstrap: Updates fallback fields in
assets/config/app_config.json.
Firebase & Push Notifications
Push campaigns are sent from Studio through Firebase Cloud Messaging. You need one Firebase project for your app.
Create the Firebase project and apps
At console.firebase.google.com, create a project. Add an Android app with your applicationId (for example com.yourbrand.app) and an iOS app with your PRODUCT_BUNDLE_IDENTIFIER.
Add the config files to the app
Download google-services.json to android/app/google-services.json and GoogleService-Info.plist to ios/GoogleService-Info.plist, replacing the placeholders.
Set up iOS push (APNs)
In your Apple Developer account, create an APNs authentication key and upload it in Firebase under Project settings → Cloud Messaging → Apple app configuration. In Xcode, add the Push Notifications capability to the Runner target.
Let Studio send campaigns
In Firebase go to Project settings → Service accounts and click Generate new private key. In Studio open App settings → Firebase (push), paste the whole JSON file into Service account JSON, save and publish. See the Studio Guide for campaigns.
Test on real devices
Install your release builds on a real Android phone and iPhone, allow notifications, then send a test campaign from Studio. The devices appear under Devices in Studio once they register.
Optional: Google Maps (address picker)
To use the map address picker, enable Maps SDK for Android, Maps SDK for iOS and Places API in Google Cloud, create restricted keys, then set maps_api_key in android/app/src/main/res/values/strings.xml and GMSServices.provideAPIKey(...) in ios/Runner/AppDelegate.swift.
Android Release Setup
Complete these 4 steps before building a signed Play Store App Bundle (.aab).
Set Your Application ID & Namespace
Update applicationId and namespace in android/app/build.gradle (from com.pointofcode.app to e.g. com.yourbrand.app), and match the package folder of android/app/src/main/kotlin/.../MainActivity.kt.
Replace android/app/google-services.json
Create an Android app in Firebase Console matching your exact applicationId and replace the placeholder android/app/google-services.json.
Optional: Google Maps & Facebook Keys
If your store uses Google Maps address picking or Facebook Login, replace YOUR_GOOGLE_MAPS_API_KEY, YOUR_FACEBOOK_APP_ID, and YOUR_FACEBOOK_CLIENT_TOKEN in android/app/src/main/res/values/strings.xml.
Configure Release Keystore (android/key.properties)
Copy android/key.properties.example to android/key.properties and fill in your keystore path, alias, and passwords. Gradle automatically uses signingConfigs.release when key.properties is present.
# android/key.properties
storePassword=YOUR_KEYSTORE_PASSWORD
keyPassword=YOUR_KEY_PASSWORD
keyAlias=YOUR_KEY_ALIAS
storeFile=/absolute/path/to/your-release-keystore.jks
# Build signed Android App Bundle for Google Play
flutter build appbundle --release
iOS Release Setup
Open ios/Runner.xcworkspace in Xcode on macOS to finalize bundle IDs, signing, and Firebase.
Bundle Identifiers & Signing Team
In ios/Runner.xcodeproj/project.pbxproj (or Xcode → Signing & Capabilities), update PRODUCT_BUNDLE_IDENTIFIER for both Runner (e.g. com.yourbrand.app) and notificationWidget (e.g. com.yourbrand.app.notificationWidget), and select your Apple DEVELOPMENT_TEAM. Use your own Apple Developer team, certificates and provisioning profiles for both targets, and validate the signed archive before release.
Replace ios/GoogleService-Info.plist & URL Schemes
Download GoogleService-Info.plist from your Firebase project and place it at ios/GoogleService-Info.plist. Configure APNs and the push capability as described in Firebase & Push Notifications. If using Google Sign-In, copy REVERSED_CLIENT_ID into ios/Runner/Info.plist.
Optional: Google Maps & Facebook Keys
Replace YOUR_GOOGLE_MAPS_API_KEY in ios/Runner/AppDelegate.swift and Facebook placeholders in ios/Runner/Info.plist if those features are enabled.
Install Pods & Build IPA
Run CocoaPods and archive for App Store Connect:
flutter pub get
cd ios && pod install && cd ..
flutter build ipa --release
Managing Content Live in POC Studio
Once your store is connected, all visual merchandising and design updates happen inside POC Studio and reflect in the mobile app upon publishing.
Troubleshooting & FAQ
The app opens on the "Store Setup & Live Preview" screen instead of my store.
magento.base_url in assets/config/app_config.json is still empty or set to the template placeholder (https://your-store.example.com). Connect once from the screen to preview, or replace base_url in app_config.json for permanent builds.
How do I switch back or test a different store URL after connecting?
Open Account → Settings in the app and tap Change Store inside the Store Preview card, or uninstall/clear app data.
Network or SSL certificate errors when connecting.
Production builds strictly enforce valid HTTPS certificates (cleartext HTTP and invalid certificate bypasses are disabled). Ensure your Magento domain has a valid SSL certificate.
Products or categories appear empty after search or "View all".
Verify that products in Magento Admin are enabled, in stock, assigned to the target website/category, and indexed (run php bin/magento indexer:reindex).
Google Play rejects an uploaded bundle with "signed in debug mode".
Ensure android/key.properties exists and points to your release .jks keystore before running flutter build appbundle --release.
Studio says the token is invalid or unauthorized.
Check the Integration is Active, its Resource Access includes Mobile App Studio, and Integration tokens are allowed as Bearer tokens (see License & Connect Studio). If you reauthorized the Integration, paste the new token in Studio.
Studio says the license is invalid.
Open Stores → Configuration → PointOfCode → Mobile App Studio and click Save Config; the message says exactly what is wrong. If Studio says your support period has ended, renew it from My Account → My Licenses. Your app keeps working for shoppers either way.
I changed something in Studio but the app did not change.
Studio saves drafts. Click Publish in Studio, then reopen the app.
Customers are signed out after a while.
Magento customer sessions in the app last as long as the customer token lifetime, one hour by default. You can raise it in Stores → Configuration → Services → OAuth → Access Token Expiration → Customer Token Lifetime (hours).
A payment method does not appear at app checkout.
The app supports Cash On Delivery, Bank Transfer, Check / Money order and Purchase Order. Make sure the method is enabled for the store view in Magento. See Magento Settings for the App.
Push campaigns fail or devices receive nothing.
Check the Firebase service account JSON is saved in Studio and published, the app's Firebase files belong to the same Firebase project, APNs is configured for iOS, and Magento cron is running. Delivery details are in var/log/mas_notifications.log on the Magento server.
/graphql(for examplehttps://shop.yourbrand.com). Setting a real domain skips the setup screen on startup.