uniapp launch applet SDK, will be a technology-driven change in the industry do?

Background
February 8, 2020, the famous cross-end development technology framework uniapp release applet SDK. To borrow a word to explain the official SDK features:

"Uni applet SDK, is a native App for integrating the SDK, which can help the native App ability to quickly achieve applets"

It has been recognized as a cross-industry side development technology framework, uniapp and on the road-side development across a big step forward.

The applet sdk release, marks the applet technology in the field of full competition era.

It allows many native app at a very low cost of technology, ecological building your own small program (note, their own). It solves the problem of small infrastructure program built from eco-technical end.

For many years engaged in software development industry in 19 years began into the pit uniapp, to replace the traditional vue technical solutions. In a production environment, to achieve the development h5, applets, app multiport fast low cost.

Technology-driven innovation
in the future based applications uniapp will get a whole new scenario - a seamless embedded in a variety of native app, which is a program h5 ease of integration challenges.

As we know, they use a conventional integrated app SDK package, Webview embedded, these three schemes docking interface. However, these programs often in terms of development costs, experience is difficult to get a better balance.

1.SDK package. Suitable partial underlying business, such as various live SDK, IMSDK, push SDK. However, for a number of applications for heavy service, SDK integrated manner the presence of relatively large defects, different terminals need to develop a different SDK. It can out of business layer developers are more concerned about the issue. Past the face of large business applications, packaged into SDK it is clearly inappropriate.

2.Webview embedded form, a bad experience, after all, is the website of experience in the service side, even using the SPA vue build single-page application, are still difficult to solve mutual problems and to call native. Subject to webview capability, a lot of page switching effect is not ideal.

3. Interface docking mode, you can certainly get the best experience, but also the highest cost, the current app development, it is in large part the work of the FE, if through the docking interface, then for app developers, its existence meaning only to save the back-end development of human.

Taking these three common integration approach, an experience excellent, low-cost integrated model has been the industry demand, the single also have not been met.

uniapp applet SDK seems to capture this demand, the flow, the introduction of the applet SDK. Currently limited to large extent open-source vendors to obtain a separate source.

Practice
the author in the early practitioners also learned to develop Android applications, so their hands to build a set of Android development environment. For many years engaged in the development of Android, the process of building the environment is also very bumpy. But eventually successfully run the sample project uniapp provided.

An example of the first on the official:

uniapp launch applet SDK, will be a technology-driven change in the industry do?
The following is the author to transform a company's own products for docking. Determined by checking the check box, set different AppID, thereby opening the different interfaces.

uniapp launch applet SDK, will be a technology-driven change in the industry do?

We can see, we have successfully opened their own application development. And you can also start to corresponding sub-page directly.

Repeat it here directly open application scenarios subpages.

In carrying out the process of docking operations. For example, a developer scenario is a community dock on their original business app, do community-based operations, so this time, we tend to do a scenario is that he needs to be within the original app interface, a release implants button. Click this button to open the community directly, and jump to publish interface.

This experience is great.

Corresponding to the boot code:

uniapp launch applet SDK, will be a technology-driven change in the industry do?

How entrainment startup parameters?

uniapp launch applet SDK, will be a technology-driven change in the industry do?

The above code is set a parameter a, a value of 1, at startup as a startup parameter.

In uniapp which only needs to acquire the parameters corresponding to the api.

Among the development, developers are concerned about how to interact with the host application program embedded. In particular, we do need this user login-free time, h5 webview only way in which url, entrainment of the current user token, you can achieve free landing. So uniapp side can achieve this demand by launching an elegant formal parameters.

In addition, the official also provides a complete set of documentation api applet SDK's for developers to review. I initially looked at, some adjustments can be achieved routinely interface UI. To meet different business scenarios use. It also provides some closed, the callback function triggered. Essential to meet business needs.

Shortcoming?
After I real test. Our products will be made shortly after the 1.9.0 version of the full Community system is actually placed. We got a relatively good performance, but there are still insufficient.

First v3 compiler, uniapp recent launch of the latest compilers, the official said the improved performance and so on, due to historical reasons, said short community-based older compiler development, the real test, there is little in the style V3 compatible problem. It led to a little misplaced.

After packing resources into demo demo, found that running a small program SDK environment, there are also styles dislocation problem. But fortunately, the overall interaction is OK. Run more smoothly, trunk function unaffected.

Real down, the overall feeling uniapp applet currently available SDK has the following disadvantages:

Compile the test is cumbersome, currently only in the development environment, simulation run small version of the program, no major problems after the test, the app into the resource bundle exported. Then the real machine debugging. If the compiler there is no difference, then this debug basically acceptable. There are some differences afraid to compile, lead to some scratching their heads pit.
V3 compiler itself backwards compatibility issues. Some believe v3-based application development does not have this problem, but for some some accumulation of APP, such as the author's products, it is more a headache. Need to debug them individually, adjusted repair. I tested the old version of the compiler, the dislocation is extremely serious. After the use of v3, it has changed. Sdk compiler and prove itself in a process of improvement.
Package size of the problem, since the author is in the hands of the official presentation of the case. It is not possible to compare before and after. But comments from the official website of view, developers have found this little program integration SDK, bulky package of 48MB, it was increased only by reducing the function of 12MB. Touches Resource Kit volume exported also to accept, can be ignored.
The problem of dynamic download and upload resources package, the current official website has not been clearly documented. If you can achieve dynamic resource pack download and run, which means you can achieve such as micro-channel applet ecology. Imagination is very large. Especially for there are ten million users of the app, a huge attraction.
Although the API is currently good, but need to give some time to develop. For complex scenarios, but also we need more support API.
At present, because the official open-source strategy, the need to communicate with their own official app manufacturers obtain applet SDK source code, there is no official indication of the cost.
Finally,
the domestic Internet market, incremental difficult to obtain, and expensive, in the stock market, how to open up more business scenarios, lower cost and more brisk pace integrated application ready-made software vendors is a next few years important application scenarios.

Uniapp time the launch of the applet SDK, if we can stick with it, one day out of the laboratory into the production environment.

Future has come, the technical problems are resolved, the rest is operational strength of competition time. App domestic manufacturers, it is time to think about the future direction.

Author: Yi Xiao (micro signal yixiao100), short product director said that OSX community forum system, 5 years management experience in social community products. Software Solutions founder wanted.

Guess you like

Origin blog.51cto.com/14647651/2481577