How registration works#
Apps are registered by the SALOPHA team in the admin console (admin.salopha.com › Mini-apps) from your manifest. A wizard holds every field; the step «Branding and runtime» holds the colours, logo, runtime mode and automatic sign-in. After editing, the team releases a version and publishes it, optionally to a percentage of users. Every user-visible change ships with a new release version (x.y.z).
You can also do all of this yourself on the developer platform (developers.salopha.com): organisation, draft manifest, releases on internal, beta and production channels, review and publishing. See Developer platform lifecycle.
Send your manifest, icon and privacy policy URL to [email protected]. You receive your app id, client id and client secret. The secret is shown once; ask for a rotation if it leaks.
Manifest fields#
| Field | Meaning |
|---|---|
name, shortDescription, description | Localised text: { "ar": "…", "en": "…" } |
icon | { "source": "network", "value": "https://…/icon-512.png" }, the directory icon (512 × 512) |
launchUrl | Your HTTPS start page |
allowedOrigins | Exact origins the bridge answers. One origin per app keeps cookies and storage simple. |
scopes | Capabilities the app may use. Each one is reviewed and approved. See Scopes. |
autoGrantScopes | Persistent scopes granted without a consent sheet (official apps and trusted developers only) |
ownership | official (shown first, «SALOPHA services»), partner or thirdParty |
branding | primaryColor, onPrimaryColor, splashBackground, splashBackgroundDark, logoUrl, iconUrl, splashStyle (logoAndName or logo) |
runtime | cacheMode, networkOnlyPaths, precacheUrls, display, allowShortcut, splashMinMs, readyTimeoutMs |
supportedCountries, platforms | Where the app is offered. Platforms: android, ios, web, desktop. |
minHostVersion, minSdkVersion | Oldest SALOPHA app and SDK the app supports |
shareableObjectTypes | Object types your app can send as chat cards, e.g. store, item |
transactionTypes | Transaction types you publish, with an optional status map. See Transactions. |
chatActions | Up to 6 things people do with your app from a chat. See Chat actions. |
audience | Who can use the app: people, businesses, or both, with business eligibility and join approval. Absent = people only. See Business audience and joins. |
identities | Optional (SDK 1.6). { "switchable": true, "kinds": ["personal", "business"], "liveSwitch": true } shows an identity switcher in the runtime header. Needs a business kind in audience. See Switching identity. |
privacyUrl, supportUrl, keywords | Shown on the details page and used by search |
supportedLocales, isRtlSupported, ageRating, screenshots, frameColor | Languages your pages support, right-to-left support, the age rating (e.g. everyone), details-page screenshots and the frame colour |
runtime.orientation | portrait to lock phones to portrait |
Around the manifest, the registration also carries the app's appId, slug, categoryId, release version and changelog, the developer (name, website, support email) and the webhookUrl base (the platform appends /webhooks, /objects/search and so on).
Runtime modes#
runtime.cacheMode decides where your pages come from:
| Mode | Behaviour | Use for |
|---|---|---|
online | Every open loads from the network. Nothing is kept on the device. | Dashboards with sensitive HTML |
networkFirst (default) | Normal HTTP caching; the HTTP cache is used when offline. | Most apps |
local ("installed") | Android keeps your pages and static files on the device per release version and serves them from there. Only networkOnlyPaths (default /api/) go to the network. precacheUrls are fetched in the background after the first open. iOS uses the web view's HTTP cache. | Apps that should feel installed |
Rules for local:
- Never put personal data in HTML. Render it in the browser from your API.
- Every user-specific or changing response must sit under a
networkOnlyPathsprefix (APIs, uploads). - Responses that set cookies are never kept.
- New pages reach users only with a new release version, which replaces the device copy automatically.
Display#
runtime.display sets the bar above your app:
| Value | Bar | Available to |
|---|---|---|
standard | SALOPHA bar showing your page's domain | Every app (always for third-party apps) |
immersive | Compact bar in your app's colour, without the domain | Official apps and trusted developers |
Splash and ready#
From the tap, SALOPHA shows your splash (logo and colours, no loading text) until the page calls ready(). SDK 1.1+ calls it automatically after initialize() and the window load event. To wait for your first screen, construct the SDK with autoReady: false and call app.ready() yourself. Two manifest values bound the wait:
splashMinMs: the splash stays at least this long, so it never flashes.readyTimeoutMs: the longest the host waits forready()before revealing the page anyway.
Platforms and versions#
platformslists where the app is offered. Addwebanddesktoponce your app uses SDK 1.3 (see Web and desktop).minHostVersionis the oldest SALOPHA app that can open your app:0.1.5for bridge protocol 1.1,0.1.6for chat actions (protocol 1.2). Older hosts simply don't offer what they can't run.minSdkVersionis the oldest SDK the host should accept from your page.
Registration file#
For apps the SALOPHA team operates, a registration file does the whole registration in one command. It creates or updates the developer and the app (published), approves the declared scopes, freezes a release when version is new, issues client credentials (the secret is printed or written once), and optionally registers an event-signing key and the webhook base URL.
node dist/src/scripts/register-miniapp.js <file.json> [--rotate-secret] [--secrets-out <file>] [--event-key <spki.pem>]
{
"appId": "my_shop",
"slug": "my-shop",
"categoryId": "shopping",
"version": "1.0.0",
"developer": { "id": "dev_my_company", "name": "My Company", "website": "https://example.com", "supportEmail": "[email protected]" },
"changelog": { "ar": "الإصدار الأول", "en": "First release" },
"webhookUrl": "https://shop.example.com/api/v1/platform",
"manifest": {
"name": { "ar": "متجري", "en": "My Shop" },
"shortDescription": { "ar": "…", "en": "…" },
"icon": { "source": "network", "value": "https://shop.example.com/icon-512.png" },
"launchUrl": "https://shop.example.com/",
"allowedOrigins": ["https://shop.example.com"],
"ownership": "partner",
"platforms": ["android", "ios", "web", "desktop"],
"supportedCountries": ["IQ"],
"supportedLocales": ["ar", "en"],
"minSdkVersion": "1.3.0",
"minHostVersion": "0.1.6",
"scopes": ["profile.basic", "notifications.service", "share.object", "addresses.read"],
"autoGrantScopes": [],
"branding": { "primaryColor": "#0F766E", "onPrimaryColor": "#FFFFFF", "logoUrl": "https://shop.example.com/logo.png", "iconUrl": "https://shop.example.com/icon-512.png", "splashStyle": "logoAndName" },
"runtime": { "cacheMode": "local", "networkOnlyPaths": ["/api/", "/uploads/"], "precacheUrls": ["/"], "display": "standard", "allowShortcut": true, "splashMinMs": 700, "readyTimeoutMs": 8000 },
"shareableObjectTypes": ["item"],
"transactionTypes": ["shop_order"],
"privacyUrl": "https://shop.example.com/privacy",
"supportUrl": "https://shop.example.com/help"
}
}
What the console manages#
- Edit: the manifest, including branding, runtime mode, display, the shortcut switch, splash timings, automatic sign-in scopes and chat actions.
- Versions: create a release, then publish it (with a rollout percentage).
- Permissions: approve each requested scope.
- Integration: the webhook base URL and event-signing keys.
- Overview: rotate the client secret (shown once) and the kill switch.
- Analytics: subscribers (users who opened the app at least once), daily, weekly and monthly active users, opens, favourites, home-screen shortcuts, notification opt-ins and sends, rating, 30 and 90-day series, and a searchable subscriber list.