Hybrid development Dsbridge (both Android and iOS supported)

Source: Internet
Author: User

What is Javascript Bridge

With the continuous popularization and optimization of H5, as well as the increasing demand for dynamic mobile, developers often need to embed some Web pages in the app, then interact between the web and native, such as passing data, calling functions, and connecting the web to native requires a bridge, Often referred to as JavaScript bridge, it is also important to choose a good JavaScript bridge in your project.

Javascript Bridge Status

At present, there are some open source on GitHub, among which the most widely used non-Webviewjavascriptbridge, Jsbridge, however, recently open source a new project Dsbridge, known as the best use of JavaScript bridge. The author carefully contrasted a bit, dsbridge minute seconds kill all ah.

The following is a comparison of Dsbridge and Webviewjavascriptbridge article:dsbridge VS Webviewjavascriptbridge, the article in the face of each side than has been very detailed, here, a brief summary of To make a record.

Key features compared to Dsbridge and Webviewjavascriptbridge:
    1. Dsbridge truly cross-platform! The original Webviewjavascriptbridge only supports iOS, but someone on Android also implements the same front-end calling protocol as Webviewjavascriptbridge, so it can be ios/ Android uses the same set of JS invoke protocol, but in itself, Webviewjavascriptbridge iOS and Android platform is not a one, so there is no official cross-platform technical support, and Dsbridge officially supports both iOS and Android.
    2. Dsbridge supports synchronous calls! This is the second to kill all the other, it is a ride dust. Synchronization in a more complex application of how important, I believe that the use of node should be deeply touched. Please refer to the http://www.jianshu.com/p/d967b0d85b97for more details in the original text.
    3. Three-terminal friendly, both on iOS, Android, or the web, it's simple and elegant to use, which is art compared to Webviewjavascriptbridge.
    4. Dsbridge is a Chinese program with detailed documentation and problem feedback channels.
Other

Dsbridge, although just open source, relatively young, not like Webviewjavascriptbridge and JavaScript Bridge has accumulated over the years, the current popularity is not high, but on GitHub and the author blog to see, There are a number of users in use, feedback is very good, the author of the feedback can be timely response, the recent GitHub on the Android version of the English document has been completed, Dsbridge need a publicity and user accumulation process. Dsbridge test coverage is very full, according to the latest update record on GitHub, added stress test, in the case of asynchronous continuous call 10,000 times, the Dsbridge still firm! iOS support iOS7 above, while allowing free choice of wkwebview and UIWebView, and the Android side is relatively simple, I believe you can read its source code.

Dsbridge GitHub Address:

IOS: Https://github.com/wendux/DSBridge-IOS
Android: https://github.com/wendux/DSBridge-Android

Hybrid development Dsbridge (both Android and iOS supported)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.