DSBridge-Android icon indicating copy to clipboard operation
DSBridge-Android copied to clipboard

:earth_americas: A modern cross-platform JavaScript bridge, through which you can invoke each other's functions synchronously or asynchronously between JavaScript and native.

Results 106 DSBridge-Android issues
Sort by recently updated
recently updated
newest added

使用的依赖是:implementation 'com.github.wendux:DSBridge-Android:master-SNAPSHOT' `Fatal Exception: android.view.WindowManager$BadTokenException Unable to add window -- token android.os.BinderProxy@e1d5cae is not valid; is your activity running? keyboard_arrow_up android.view.ViewRootImpl.setView (ViewRootImpl.java:798) android.view.WindowManagerGlobal.addView (WindowManagerGlobal.java:359) android.view.WindowManagerImpl.addView (WindowManagerImpl.java:93) android.app.Dialog.show (Dialog.java:357) arrow_right wendu.dsbridge.DWebView$6.onJsAlert...

一套完整的native-bridge-web协议与实现,清晰规范的开发Hybrid App ~

var dsBridge=require("dsbridge")无法引用

# DSBridge v3.0 change list DSBridge v3.0 is a milestone, Compared with v2.0.X, we have made a lot of changes. Note that V3.0 is **incompatible** with V2.0, but v2.0 will...

New

Hi, Thank you for this awsome project. I just got a question for you. Does these json code call from Main thread? Maybe it causes performance issue. ` @Keep private...

Sometime when use dsbridge in Javascript got this error [ ![Screenshot_20190815-195205](https://user-images.githubusercontent.com/3796164/64572102-9f3adc00-d32b-11e9-8f5c-a6e70510b0e3.png) ](url)

现在谷歌都没再维护 support 包了

## 场景 js调用native的一个定时器,同步返回一个定时器id,js在不需要这个定时器的时候可以用这个id让native关闭这个定时器,达到节省资源的目的 ``` var $t1 = $('#time1'); var time1Index = 0; var time1 = dsBridge.call("timer",{isOnce:false,time:3},function(res){ time1Index++; $t1.html('第一个定时器执行'+time1Index+'次') if(time1Index >= 4){ dsBridge.call("stopTimer",time1) } }); ```