Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于Android端怎么用该协议 #36

Closed
xiaolvyang opened this issue Jun 21, 2019 · 4 comments
Closed

关于Android端怎么用该协议 #36

xiaolvyang opened this issue Jun 21, 2019 · 4 comments

Comments

@xiaolvyang
Copy link

iOS封装的很好了,安卓端具体怎么样该协议呢,麻烦具体指点一下

@xiubojin
Copy link
Owner

修改bridge.js文件就可以了,让他们对自己的平台做一下适配。

@xiaolvyang
Copy link
Author

bridge.js文件需要修改吗,可否指点一下

@xiubojin
Copy link
Owner

这个得看android那边具体怎么设计,比如他们可以把js调用的target、action、callback拼接到url后面,然后在native通过拦截url获取到target、action、callback,拿到这些参数后在native进行调用相应的功能。

@xiaolvyang
Copy link
Author

多谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants