Skip to content

android and javascript bridge, inspired by wechat webview jsbridge

Notifications You must be signed in to change notification settings

dtdream/JsBridge

 
 

Repository files navigation

Introduction

If your app minSdkVersion is higher than 17, it is recommended to use the official solution.

Otherwise you can try it.For more information see the wiki

Download

repositories {
    // ...
    maven { url "https://jitpack.io" }
}

dependencies {
    implementation 'com.github.dtdream:jsbridge:$latest_version'
}

Notice

Listen for the WebViewJavascriptBridgeReady event, ensuring that the "earlier triggered" event takes effect

document.addEventListener('WebViewJavascriptBridgeReady', function() {
               //do your work here
  },
  false
)

License

This project is licensed under the terms of the MIT license.

About

android and javascript bridge, inspired by wechat webview jsbridge

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 74.8%
  • JavaScript 19.1%
  • HTML 6.1%