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

Webview

A webview opens your website inside the other company's app. It is the quickest way in — and the hardest to trust.

Saloni's story

Saloni already has a good website, so the next idea is simple: open it inside the Shoppingate app. Shoppingate adds a button that opens Saloni's website in a webview, and builds a small wrapper so the website can get the signed-in user and take payment.

It works on day one, and Saloni can change its website any time. But it still feels like a website: it loads from the network on every open, and it doesn't feel like part of the app.

Shoppingate has bigger worries. Nobody checks what Saloni puts on its website. A link on any page can take the user to any other site — and once the wrapper's functions are there, any page that loads can call them. Before the webview even opens, the user is asked to accept everything at once.

How it works

The host app shows a web page inside a webview — a browser window without the browser around it. To give the page the signed-in user or payment, the host adds a wrapper: a bridge between the page and the app's functions.

SHOPPINGATE APPWebviewshows Saloni's websiteloaded from the network every timeWrapperuser, payment — open toany page that loadsSaloni's serverwhatever is here goes liveloadsAny other sitethe page can point anywhereno check✕✕
Regular webview: the app opens Saloni's website. A wrapper can share the user and payment, but the app doesn't control what loads or who calls its functions.

Benefits and limits

What works
  • ✓You reuse the website you already have.
  • ✓You change it any time, with no app release.
  • ✓One website for every phone.
  • ✓With a wrapper, the page can use the signed-in user and payment.
What it costs
  • ✕No review: whatever is on your server goes live, unchecked.
  • ✕The host doesn't control what loads. The page can point anywhere, at any time.
  • ✕The wrapper's functions are open to any page that loads.
  • ✕The user is asked for everything at once, before the webview opens.
  • ✕No standard place in the app showing what the partner collects, or why.
  • ✕It loads from the network every time, and feels like a website.
  • ✕No tools, no release management, and no place in the app where users find it.

How a Mini App solves it

A web view Mini App keeps your website — no rewrite — but makes it a trusted part of the Shoppingate app. Your website opens inside a small Mini App that is reviewed like any other, and the rules of the platform apply to it.

SHOPPINGATE APPSALONI MINI APP — REVIEWED<web-view>Saloni's web app, with the SDKThe app's functionsPublic for all · Private only when approvedpermission asked per featureSaloni's serverapproved domain✓approved domainsAny other sitedoesn't loadblocked✕
Web view Mini App: Saloni's website runs inside a small reviewed Mini App. It loads only from approved domains, and reaches the app's functions only through the rules.
The problem
With a Mini App
The page can point anywhere
Only domains reviewed and approved by Shoppingate load. Anything else doesn't.
The wrapper's functions are open to any page
Every function is managed in the Dev portal. Public ones are open to every Mini App; Private ones, like payment, only to Mini Apps approved for them.
Everything asked for at once
Each permission is asked only when the user needs that feature. They can say no to one and still use the rest.
No standard place for privacy
Your privacy policy is shown inside the app — what you collect and why, how long you keep it, how to contact you — the same way for every Mini App.
No tools, no place to be found
SG Studio to build and test, the Dev portal to publish, and search inside Shoppingate.
Only a web page
Combine both: build the screens that need to be fastest as native screens, and keep the rest as your website.

Your website stays on your own server and keeps working as it does today. It follows a few standards and loads a small SDK. See Web view mini-app.

Saloni's story

Saloni keeps its website and wraps it in a web view Mini App. Shoppingate knows exactly which domains Saloni loads, which functions Saloni may call, and what Saloni tells users about their data. Users get Saloni inside Shoppingate, already signed in, asked only for what they need.

NextMini App architectureHow all the parts fit together, on the phone and on the servers.→