Build a Mini App using the Rebell Mini Program framework with platform-native components and full JSAPI access.
Native Mini Apps are built using the Rebell Mini Program framework — a component-based, JavaScript-driven approach that renders using platform-native UI elements inside the SuperApp.
Mini Program Studio is available for download in your personal area.
This is the recommended approach for new Mini App development. It provides the best performance, deepest SuperApp integration, and full access to all JSAPIs.
Download and install Mini Program Studio from the Rebell developer portal.After installation, log in with your merchant credentials and select your Mini App from the project list.
app.js — defines global state and lifecycle hooks:
Copy
App({ onLaunch(options) { // Called once when the Mini App is first launched console.log('App launched', options); }, onShow(options) { // Called when the Mini App becomes visible }, onHide() { // Called when the Mini App goes to background }, globalData: { userId: null, },});
app.json — declares pages and global window settings:
All platform capabilities are accessed via the my global object. Examples:
Get user identity (auth code)
Copy
my.getAuthCode({ success: (res) => { const authCode = res.authCode; // Send authCode to your backend to exchange for user token }, fail: (err) => console.error(err),});
Never call Rebell Payment APIs directly from the Mini App. All payment creation must go through your merchant backend to protect your signing credentials.