Setup & Release Guide

Mobile App Studio

Native iOS & Android shopping app for Magento 2. Install the Magento modules, connect Studio, configure your store endpoint, package identifiers, Firebase and release signing once, then manage themes, layouts, branding, content and push campaigns live from Studio without rebuilding.

Flutter iOS & Android Magento 2 GraphQL English LTR & Arabic RTL Live OTA Themes via Studio

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.

Instant Over-the-Air Updates
Switch themes, update colors and typography, reorder home sections, publish banners, customize onboarding slides, and edit social links from Studio without shipping a new app binary.
Guided Setup Mode
Before your domain is saved in app_config.json, launching the app opens a bilingual Setup & Preview screen so you can test any Magento store URL immediately.
Bilingual EN / AR Support
Full RTL layout mirroring, Arabic & English font pairings, store-code switching, and localized app titles & logos.
Automated Native Sync
Run one command (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.

FolderContentsWhere it goes
magento-modulesThe four Magento modules: Core, MobileAppCore, MobileAppApiGraphQl, MobileAppStudioYour Magento server, in app/code/PointOfCode/
flutter-sourceThe 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).

1

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.

2

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.

3

Check the modules are enabled

bin/magento module:status PointOfCode_Core PointOfCode_MobileAppCore PointOfCode_MobileAppApiGraphQl PointOfCode_MobileAppStudio
Magento cron
Magento cron must be running. It sends scheduled push campaigns, refreshes customer segments and revalidates your license.

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.

1

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".

2

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
3

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.

4

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.

5

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.

SettingWhere in MagentoNotes
Store viewsStores → All StoresEach 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.
CurrencyStores → Configuration → General → Currency SetupFor example USD, SAR, KWD or EGP.
CatalogCatalog → Categories / ProductsProducts must be enabled, in stock, assigned to the website and a category, and indexed.
CMS pagesContent → PagesAbout us, terms, privacy policy and similar pages shown in the app.
Shipping methodsStores → Configuration → Sales → Delivery MethodsThe methods offered at app checkout.
Payment methodsStores → Configuration → Sales → Payment MethodsSee 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.

MethodCode
Cash On Deliverycashondelivery
Bank Transfer Paymentbanktransfer
Check / Money ordercheckmo
Purchase Orderpurchaseorder
Online card gateways
Gateways that redirect to a payment page (for example Paymob, Stripe or PayPal) are not offered in the app checkout in this version. Customers can still use them on your website. Need another payment method in the app? Request a customization.

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.

1

Install Flutter Packages

Run flutter pub get in the project root to resolve all dependencies.

2

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.

3

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
Placeholder Firebase Safe-Boot
Firebase initialization is safely guarded on startup so you can preview the app before adding your own 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
}
Store Connection Required
Connects the app to your Magento 2 backend and determines which store view loads on first launch.
magento.base_url
Default: placeholder URL
Your live Magento HTTPS origin without trailing slash or /graphql (for example https://shop.yourbrand.com). Setting a real domain skips the setup screen on startup.
magento.default_store_code & magento.default_currency
Default: "en" / "USD"
Fallback Magento store view code and ISO currency used before the shopper changes language/currency or Studio overrides them via price_format.
app.package_name
Default: "com.pointofcode.app"
Should match your Android applicationId / iOS bundle ID so Share App, Rate App, and Store Update links point to your listing.
Branding & Payment Defaults Optional
Bundled fallback values used only offline before the first Studio snapshot is fetched.
branding.* & theme_id
Default: assets/brand/studio_*.png
Automatically overridden at runtime by whatever you upload and publish in POC Studio.
payment.enabled_methods
COD, Bank Transfer, Check/MO, Purchase Order
Supported built-in Magento checkout methods: cashondelivery, 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 icon drawable/ic_status.png, and drawable/splash_mark.png.
  • iOS Icons & Splash: Assets.xcassets/AppIcon.appiconset/* and LaunchImage.imageset/*.
  • OS Display Names: Android values/strings.xml & values-ar/strings.xml, iOS Info.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.

1

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.

2

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.

3

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.

4

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.

5

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.

Legacy server keys no longer work
Google shut down the legacy FCM server-key API in 2024. Use the service account JSON; Studio rejects a legacy server key.

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).

1

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.

2

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.

3

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.

4

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.

1

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.

2

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.

3

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.

4

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.

Themes & Tokens
Pick a base theme or customize primary/accent colors, surface cards, spacing, corner radius, and EN/AR fonts.
Home Layout & Sections
Drag and reorder hero sliders, category chip strips, product carousels, and promotional banner grids.
Branding & Social Links
Upload header logos, splash screens, app icon badges, and manage your Profile social links (hidden automatically when empty).
Studio Guide
The Studio Guide explains every Studio screen: store templates, themes, home screen content, app settings, push campaigns, publishing and restoring versions, and team access.
Versioned Publishing
Draft changes in Studio remain private in preview until you click Publish. The mobile app caches the latest valid published snapshot on disk for instant cold-start painting and refreshes in the background whenever a new version is published.

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.