Skip to main content
An H5 Mini App runs your web content inside a WebView within the Rebell SuperApp. There is no Mini Program framework, no IDE, and no build process required — just a hosted web page and a single <script> tag.
H5 is the fastest path to deploying an existing mobile web app as a Mini App. It is ideal as a migration strategy or for content-driven experiences.

How It Works

  • The SuperApp loads your web page at the configured Entrance URL
  • Your page runs inside a managed WebView
  • You access SuperApp capabilities through the JSBridge SDK — the same my.* namespace used by Native Mini Apps
  • No quality review or build pipeline is required

Step 1: Configure Your Entrance URL

In the Rebell developer portal, create an H5 Mini App and set the Entrance URL to your hosted web page: Create H5 Mini App in the developer portal
Requirements:
  • Must be HTTPS
  • Must be accessible from mobile devices
  • Domain must be whitelisted in your Mini App configuration

Step 2: Add the JSBridge SDK

Include the JSBridge script in the <head> of your HTML page:
Once loaded, the my object is available globally.

Step 3: Detect the Environment

JSAPI calls only work inside the SuperApp WebView. Detect the environment before using my.*:
my.JSBridge is a reserved object and cannot be overridden. console.log also cannot be replaced inside the Mini App runtime.

Step 4: Use JSAPI

All JSAPI calls follow the same callback pattern:
H5 Mini Apps support only a subset of the JSAPI available to Native Mini Apps. APIs that depend on the Mini Program runtime (e.g., page routing, custom components, worker threads) are not available inside a WebView.

Supported APIs

Usage Examples

Step 5: Handle Payments

Payment flow in an H5 Mini App:
1

User taps Pay

User initiates payment from your web page
2

Call your backend

Your page sends order details to your backend via fetch or XMLHttpRequest
3

Backend creates payment

Your backend calls the Rebell Payment API and returns a tradeNO
4

Call my.tradePay

Pass the tradeNO to my.tradePay — Rebell handles the rest
5

Handle result

On success, redirect or update the page. Your backend also receives a webhook.

Limitations vs. Native

H5 Mini Apps have a narrower set of available APIs compared to Native:
If you need deeper SuperApp integration or native UI components, consider migrating to a Native Mini App.

Testing

H5 Mini Apps can be tested directly:
  1. Configure your Entrance URL to point to a sandbox or staging version of your page
  2. Open the Mini App from within the Rebell SuperApp (sandbox)
  3. Inspect behavior in browser DevTools when running locally — JSAPI calls will silently fail outside the SuperApp
  4. Use isInsideSuperApp() to provide a fallback experience during development

Next Steps

JSAPI Reference

Full list of my.* APIs and their parameters

Payments

Complete guide to triggering payments from Mini Apps

Backend Authentication

Exchange auth codes for user identity on your backend