๐ Authentication Methods
Login
Standard user login with credentials
{
"username": "test@example.com",
"password": "password123",
"captcha": "optional"
}
Native Login
Native authentication (biometric/device-based)
{
"authType": "biometric",
"deviceId": "device123"
}
Verify
Two-factor authentication and verification
{
"verificationCode": "123456",
"type": "sms",
"phoneNumber": "+1234567890"
}
๐ฐ Web3 Wallet Methods
Create/Switch AA Wallet
Create or switch to Account Abstraction wallet
{
"walletType": "aa",
"chainId": 1
}
Navigate to Transfer
Navigate to transfer page
{
"fromAddress": "0x...",
"toAddress": "0x...",
"amount": "1.0"
}
Get All Wallets
Get all wallets with their types
{
"includeHidden": false
}
Get Wallet Info
Get specific wallet information
{
"walletId": "wallet123",
"includeBalance": true
}
Check Backup Status
Check if main wallet is backed up
{
"walletId": "main"
}
Check Network Support
Check if network is supported by chain ID
{
"chainId": 1
}
Get Supported Networks
Get list of supported networks for wallet
{
"walletId": "wallet123"
}
๐ค Share Methods
Share
Basic text and link sharing
{
"title": "Test Share",
"body": "This is a test share",
"linkUrl": "https://okx.com"
}
Share Image
Share single image
{
"title": "Image Share",
"imageUrl": "https://example.com/image.jpg",
"linkUrl": "https://okx.com"
}
Share Multiple Images
Share multiple images
{
"images": [
"https://example.com/image1.jpg",
"https://example.com/image2.jpg"
],
"title": "Multi Image Share"
}
Show Share Popup
Show advanced share popup with preview
{
"shareParams": {
"contentType": 1,
"title": "OKX Share",
"body": "Check out OKX!",
"linkUrl": "https://okx.com",
"shareFrom": "test_app"
}
}
Create QR Code
Generate QR code image
{
"data": "https://okx.com",
"size": 200
}
Native Share
Use native Android sharing
{
"title": "Native Share",
"text": "Shared from OKX app"
}
โ๏ธ App Management Methods
Check App Update
Check for app updates
{
"forceCheck": false
}
Open System Settings
Open Android system settings
{
"settingsType": "general"
}
๐จ UI/UX Methods
Show Toast
Display toast message to user
{
"text": "Hello from OKX!"
}
WebView DOM Ready
Notify native that WebView DOM is ready
null
WebView Height Changed
Notify native of WebView height changes
{
"height": 800
}
Show Image Gallery
Open native image gallery with image list
{
"imageUrlList": [
"https://example.com/image1.jpg",
"https://example.com/image2.jpg"
],
"defaultSelectIndex": 0,
"clickedImageFrame": {
"x": 100,
"y": 200,
"width": 300,
"height": 400
},
"scrollY": 0
}
Open Hyperlink
Open external URL in browser
{
"url": "https://okx.com"
}
Content Updated
Notify native that content has been updated
null
๐ Method Discovery
Discover Available Methods
Scan for available JSBridge methods and APIs
Automatically scans window object for JSBridge properties
Test Simple Call (Safe)
Test basic JSBridge communication without blocking
Tests connectivity without making actual calls
Test postNativeMessage
Test the postNativeMessage callback method
Tests the real JSBridge callback pattern
Test showBox
Test the showBox callback method (like native code)
jsBridge.callback('showBox') - no parameters
Test Prompt (With Timeout)
Test prompt-based communication with timeout protection
โ ๏ธ May cause freezing - use with caution
๐ Test Output & Logs