Why Expresso exists
Expresso was created to help merchants move faster. It gives merchants a way to:- Change application behavior with JavaScript.
- Create new components for the mobile application.
- Reuse business rules that already exist on their website.
- Bring website logic into the mobile app in a controlled way.
What embedded JavaScript means
Expresso is not a WebView, so you write JavaScript against the APIs that Expresso provides. Common website APIs are not available, including:windowdocument- DOM APIs like
querySelector,createElement, oraddEventListeneron HTML elements - CSSOM APIs
- navigation APIs like
historyandlocation - cookies
localStorage- IndexedDB
- Service Workers
- Web Workers
- Canvas and WebGL
How you should think about it
Think of Expresso as a JavaScript layer for mobile app customization. You are not building a web page. You are writing JavaScript that can:- Read product, cart, customer, and store data.
- Call supported services.
- Customize app extensions.
- Update supported components.