Get started with dsbridge CDN

MIT licensed

DS Bridge: Lightweight library for iOS/Android app-web view data exchange via JS.

Tags:
  • dsbridge
  • javascript-bridge
  • jsbridge
  • webviewjavascriptbridge
  • support-x5

Stable version

Copied!

How to start using dsbridge CDN


<!DOCTYPE html>
<html>
<head>
    <title>Get started with dsbridge CDN - cdnhub.io</title>
    <script src="https://cdn.cdnhub.io/dsbridge/3.1.4/dsbridge.js"></script>
</head>
<body>
    <button id="sendMessage">Send Message</button>

    <script>
        document.getElementById('sendMessage').addEventListener('click', () => {
            dsBridge.dispatch('com.example.APP_NAME', { message: 'Hello dsBridge!' }, (response) => {
                console.log('Response:', response);
            });
        });
    </script>
</body>
</html>
Copied!
Copied!

All versions