The Hybrid development model is no longer a new topic. It not only allows new businesses to be released quickly, but also does not need to consider the time of app release, providing extremely flexible services for business updates and iterations. Compared with web development, the Hybrid development model provides rich device APIs, allowing business forms to be more diverse and rich.
The mPaaS offline package originated from Alipay's native solution. It has undergone rigorous business tests. It allows you to directly use the same framework-layer code as Alipay, have a unified container and kernel, and obtain lower Crash and ANR rates compared to the system kernel, which has strong adaptability and good and elastic expansion capabilities. Customize JSAPI based on specific business needs.
In order to optimize the user experience of HTML5 containers and reduce white screen time, we have introduced offline package technology in H5 containers. Offline packages can be simply understood as a zip compressed package, which contains HTML, CSS, JS, images and other resources required for front-end pages. After being built into the client, the H5 container will directly obtain resources from the offline package when opening the offline package page. This is the access time of milliseconds, eliminating the white screen opening of the page.
Through the unified UC kernel provided by mPaaS, it is possible to quickly solve the compatibility and adaptation problem of "a set of code is different due to different system kernels" on Android devices.
In order to improve the stability of HTML5 containers, we used UC WebView on Android system, and its crash rate and ANR rate are much lower than that of the system browser, and completely avoided the fragmentation problem of Android system Webview.
For offline packages, we have classified "business resource packages" and "public resource packages". The public resource package contains framework JS, CSS, common pictures, etc. At the same time, only one copy of such resources is saved in the entire App; the business resource package only saves the static resources of the page required by the business, and each service is independently decoupled from each other. This ensures that the page resources of a business can come from both the business resource package and the public resource package, and fully optimize the size of the app. Based on the above solution, Native services can be converted into HTML5, thereby further optimizing the size of the app, realizing dynamic business distribution and downloading on demand.
Apply for trial mPaaS offline package
Step 1: Access mPaaS Inside
Access to mPaaS Inside
Step 2: Connect to mPaaS Nebula container
Access to mPaaS Nebula container
Step 3: Package, pre-install to the client, compile and run
Pre-install offline packages, compile and run
Step 1: Create a project and connect to mPaaS Nebula container components
Access to mPaaS Nebula container
Step 2: Use mPaaS Nebula container
Using mPaaS Nebula container
Step 3: Use mPaaS offline package
Pre-install offline packages, compile and run
Apply for UC core key, which is expected to take effect within half a working day
For specific access documents, please refer to: mPaaS container documents
This project is under the Apache 2.0 License. See the LICENSE file for the full license text.
Copyright (C) 2015-present, Ant Financial Services Group
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Disclaimer