Building Shopify Mobile with Native and Web Technology - Shopify

This post details the technical implementation of the Mobile Bridge framework for Shopify's mobile applications. It explains how a JavaScript middleware is injected into web views to intercept and adapt calls to the Embedded App SDK (EASDK). This middleware forwards calls to platform-specific JavaScript files, which then communicate with native code (Swift for iOS via WKWebView and postMessage, Java for Android via injected objects). The system intercepts navigation bar configurations, collapses redundant web navigation elements into native bars, and uses HTML postMessages to communicate user interactions from native back to the web. This enables a hybrid architecture where native and web views coexist seamlessly, optimizing screen real estate and providing a consistent user experience for embedded third-party apps without requiring code changes from app developers.
More from the Shopify Mobile Hybrid Architecture trail
- Mobile Bridge: Making WebViews Feel Native (2025) - Shopify
- Migrating our Largest Mobile App to React Native - Shopify
- Implementing Server-Driven UI Architecture on the Shop App - Shopify
- Remote rendering: Shopify’s take on extensible UI - Shopify
- A Kotlin Style .copy Function for Swift Structs - Shopify