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
Introduction

SDK

An SDK puts your code inside the other company's app. You build your own screens, and they ship as part of that app.

Saloni's story

Saloni wants to own its screens, so it tries an SDK. Saloni's developers build the spa as a library, and Shoppingate adds it to the Shoppingate app.

Now Saloni controls its screens — but not when they reach users. A bug fix in the booking has to wait for Shoppingate's next release, then for the app stores, then for each user to update. Some users never update, so Saloni keeps supporting old versions of its own code.

Shoppingate is uneasy too. Saloni's code runs with the whole app's access, and every partner's SDK makes the app bigger. When one SDK crashes, the whole Shoppingate app crashes.

How it works

You give the other company a package of your code — the SDK. They build it into their app, and it ships with every release of that app. Inside, your code runs as part of the app, with the same access as the app's own code.

SHOPPINGATE APP — ONE BUILDShoppingate codeSaloni SDKbuilt in, with theapp's full accessOther partners' SDKseach one makes the app biggerand adds its own riskApp store reviewfor every changenew releaseUsers update the appuntil then, the old version✕
SDK: Saloni's code is built into the Shoppingate app itself, so every change ships as a new app release.

Benefits and limits

What works
  • ✓You build your own screens and your own flow.
  • ✓Fast, because your code runs as part of the app.
  • ✓Full use of the phone — camera, location and more.
  • ✓Close integration with the host app.
What it costs
  • ✕Every change waits for the host's app release, the app store review, and users updating.
  • ✕Users on old versions keep your old code, so you support many versions at once.
  • ✕Your code runs with the app's full access — to its data and the phone. The host has to trust it completely.
  • ✕A crash in your code can crash the whole app.
  • ✕Every SDK makes the app bigger and adds its own libraries, which can clash with others.
  • ✕The two codebases are tied together, and both teams depend on each other's tools and versions.

How a Mini App solves it

A Mini App keeps the good part of an SDK — your own screens, with the user and the phone within reach — but ships separately from the Shoppingate app, and runs in its own space.

SHOPPINGATE APPSaloni Mini Appin its own spaceOther Mini Appseach in its own spaceThe app's functionsuser, payment, camera, location…asked for, approved, and allowed by the userSaloni uploads a versionfrom SG StudioShoppingate reviewthen live — no app updatepublish✓
With a Mini App: Saloni ships on its own schedule, runs in its own space, and reaches the user and the phone only through the app's functions.
The problem
With a Mini App
Every change waits for an app release
Your Mini App is published on its own. Upload a version; after review it is live.
Users stuck on old versions
Users get the published version when they open your Mini App. No app update.
Your code has the app's full access
Your Mini App reaches the user, payment and the phone only through the app's functions — Private ones only when approved, and each feature only when the user allows it.
One crash takes down the whole app
Each Mini App runs in its own space, separate from the app and from other Mini Apps.
Every SDK makes the app bigger
Mini Apps aren't built into the app. They load when the user opens them.
Two codebases tied together
Your code stays yours, built with your own tools, in SG Studio.

And if speed is why you wanted an SDK: in a native Mini App, your screens are drawn by the Shoppingate app itself, and the Mini App is downloaded on the first open, then kept on the phone — so it opens fast every time after.

Saloni's story

With a Mini App, Saloni's booking fix is live for everyone after one review. Shoppingate's app stays the same size, and Saloni's code only reaches what Shoppingate approved and the user allowed.

NextWebviewSaloni's third try: open its website inside the Shoppingate app.→