<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:
- 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:
my object is available globally.
Step 3: Detect the Environment
JSAPI calls only work inside the SuperApp WebView. Detect the environment before usingmy.*:
Step 4: Use JSAPI
All JSAPI calls follow the same callback pattern:Supported APIs
Basic
Basic
| API | Description |
|---|---|
my.getRunScene | Get the launch scene of the Mini App |
UI — Navigation Bar
UI — Navigation Bar
UI — Feedback & Dialogs
UI — Feedback & Dialogs
| API |
|---|
my.alert |
my.confirm |
my.prompt |
my.showLoading |
my.hideLoading |
my.showToast |
my.hideToast |
my.showActionSheet |
UI — Input & Display
UI — Input & Display
| API | Description |
|---|---|
my.choosePhoneContact | Select a contact from the phone book |
my.datePicker | Open a native date picker |
my.hideKeyboard | Dismiss the soft keyboard |
my.multiLevelSelect | Multi-level cascading selector |
my.setBackgroundColor | Set the window background color |
my.setCanPullDown | Enable or disable pull-to-refresh |
Media — Image
Media — Image
| API |
|---|
my.chooseImage |
my.previewImage |
my.saveImage |
my.getImageInfo |
my.compressImage |
Media — Video
Media — Video
| API |
|---|
my.chooseVideo |
Storage
Storage
| API |
|---|
my.getStorage |
my.setStorage |
my.removeStorage |
my.clearStorage |
File Management
File Management
| API |
|---|
my.saveFile |
my.getFileInfo |
my.getSavedFileInfo |
my.getSavedFileList |
my.removeSavedFile |
my.chooseFileFromDisk |
my.openDocument |
Location & Maps
Location & Maps
| API |
|---|
my.getLocation |
my.openLocation |
my.chooseLocation |
my.calculateRoute |
Network
Network
| API |
|---|
my.request |
my.uploadFile |
my.downloadFile |
Device
Device
| API |
|---|
my.getSystemInfo |
my.getNetworkType |
my.getClipboard |
my.setClipboard |
my.watchShake |
my.onAccelerometerChange |
my.offAccelerometerChange |
my.onCompassChange |
my.offCompassChange |
my.vibrateShort |
my.vibrateLong |
my.makePhoneCall |
my.setScreenBrightness |
my.getScreenBrightness |
my.setKeepScreenOn |
my.getScreenOrientation |
my.setScreenOrientation |
my.scan |
my.getBatteryInfo |
my.addPhoneContact |
my.getSetting |
my.openSetting |
my.showAuthGuide |
Biometric Authentication
Biometric Authentication
| API |
|---|
my.checkLocalBioAuthSupported |
my.startLocalBioAuth |
Sharing & Mini App Navigation
Sharing & Mini App Navigation
Auth & Payment
Auth & Payment
| API |
|---|
my.getAuthCode |
my.tradePay |
Usage Examples
Get auth code for user identity
Get auth code for user identity
Show native alerts and toasts
Show native alerts and toasts
Trigger a payment
Trigger a payment
Set the navigation bar title
Set the navigation bar title
Step 5: Handle Payments
Payment flow in an H5 Mini App:Limitations vs. Native
H5 Mini Apps have a narrower set of available APIs compared to Native:| Capability | Native | H5 |
|---|---|---|
| Full JSAPI access | ✅ | Partial |
Payment (my.tradePay) | ✅ | ✅ |
| Auth code | ✅ | ✅ |
| Native navigation | ✅ | Limited |
| Platform UI components | ✅ | ❌ |
| WebView access | Via component | Runs inside one |
Testing
H5 Mini Apps can be tested directly:- Configure your Entrance URL to point to a sandbox or staging version of your page
- Open the Mini App from within the Rebell SuperApp (sandbox)
- Inspect behavior in browser DevTools when running locally — JSAPI calls will silently fail outside the SuperApp
- 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