ShoppingateShoppingateDevelopers
shoppinggate.app ↗
Documentation
  • What is a Mini App
  • Why Mini Apps
  • API integration
  • SDK
  • Webview
  • Mini App architecture
  • Getting started
  • Choosing your path
  • Introduction
    • Introduction
    • Sign up & login
    • Dashboard & analytics
    • Mini-Programs
    • Submit & publish a version
    • App Binding
    • Privacy Settings
    • Allowed URL
    • Users & roles
    • Introduction
    • Become a Mini-App vendor
    • API keys
    • My Mini-Apps
    • Orders
    • Webhook
    • Deep-link config
    • Introduction
    • Install & log in
    • Create a project
    • The workspace
    • Preview & upload
  • Introduction
  • Configuration
  • Lifecycle
  • Routing & query
  • Host functions
  • orderPayment
  • Permissions
  • User info
  • Introduction
  • Configuration
  • SDK
  • Lifecycle
  • Routing & query
  • Host functions
  • orderPayment
  • Permissions
  • User info
  • Web app and shell calls
  • Look and feel
  • Overview
    • Verify user
    • Create order
    • Get order
    • Update order status
    • Charge an order
    • Send a notification
  • Subscriptions
    • Create a subscription
    • List subscriptions
    • Get a subscription
    • Update a subscription
    • Reschedule next charge
    • Change plan (upgrade)
    • Cancel a subscription
  • Webhooks
Get started

Choosing your path

There are two ways to build a Mini App: native or web view. Choose one before you start — the rest of these docs are split the same way.

Both are reviewed and published the same way, and both open inside the Shoppingate app. The difference is how you build your screens.

Native Mini App
Your screens, built as Mini App pages
  1. 1
    You write
    pages (.fxml, .ftss) and JavaScript, in SG Studio
  2. 2
    Your code calls
    the app's functions and the phone directly
  3. 3
    The Shoppingate app
    draws your screens as real app screens
The fastest and smoothest experience. Your existing web code doesn't come along — you build each screen.
Web view Mini App
Your existing web app, inside a small Mini App
  1. 1
    You write
    a small shell page with one <web-view>
  2. 2
    Your web app
    loads the SDK to reach the app's functions
  3. 3
    The Shoppingate app
    opens your web app full screen
No rewrite. Some functions go through your shell page, and your web app needs some work to feel like part of the app.

Which one fits

If…
Choose
You already have a web app
Web view. Your web app comes as it is, with no rewrite.
You are starting from nothing
Native. Build your screens once, for the Shoppingate app.
Speed and smoothness matter most
Native. Your screens are drawn by the Shoppingate app, and cached on the phone after the first open.
Your screens are mostly content — catalogues, articles, help pages
Web view is fine.
You need to take payment
Either. Both can call orderPayment.
You need the camera, photos, location and more
Either. A web view reaches some of them through your shell page — see Web app and shell calls.

Use both together

One Mini App can have native pages and a web view. Build the screens that need to feel fastest as native pages, and keep the rest as your web app.

One thing a web view can't do: open the permission settings. That needs a tap on a native button, so it goes on a native page in your shell. See Permissions.

Where to start

Native: Native mini-app. Web view: Web view mini-app.