Native API Bridge

Bridge the gap between your web application and native mobile device features seamlessly.

🚀 The Developer Advantage

You only need to focus on managing and building your website. Forget about touching complex native code like Java, Kotlin, or struggling with complicated SDKs. Simply use our lightweight JavaScript API inside your web project, and we handle the heavy native lifting for you.

Core Concept

Because your website runs inside an Android/iOS WebView container, it cannot directly communicate with device hardware or native SDKs using standard JavaScript. You must communicate with our Native Wrapper using the postMessage API.

1. Sending Commands (Web to Native App)

// Example: Tell the native app to load an Interstitial Ad
const payload = { action: 'load-interstitial' };
window.parent.postMessage(JSON.stringify(payload), '*');

2. Receiving Events (Native App to Web)

// Example: Listen for responses from the native app
window.addEventListener('message', function(event) {
    try {
        const msg = typeof event.data === 'string' ? JSON.parse(event.data) : event.data;
        if (msg && msg.event) {
            console.log("Event Name:", msg.event);
        }
    } catch(err) {}
});