Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Implementation method and device for hybrid application accessing web components

A technology of mixed applications and implementation methods, applied in electrical components, transmission systems, etc., can solve the problems of not supporting single sign-on, unable to call native API, unable to call each other Web components, etc., to improve user experience.

Active Publication Date: 2021-02-26
CHINA MOBILE GROUP ZHEJIANG +1
View PDF10 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] In order to solve the above-mentioned technical problems, the present invention provides a method and device for implementing a hybrid application that accesses Web components, which can solve the problem of not supporting single sign-on and hybrid application Web layers in the prior art after accessing Web components in a hybrid application. The problem that web components cannot call each other due to cross-domain and web components cannot call native API

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Implementation method and device for hybrid application accessing web components
  • Implementation method and device for hybrid application accessing web components
  • Implementation method and device for hybrid application accessing web components

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0060] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is only some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0061] Figure 4 It shows a schematic flowchart of a method for implementing a hybrid application accessing Web components provided by an embodiment of the present invention, as shown in Figure 4 As shown, the implementation method of the hybrid application accessing the Web component in this embodiment is as follows.

[0062] 401. Embedding th...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a realization method and device of a hybrid application accessing to a Web component. The method comprises the following steps: embedding the Web component into a pre-established container device in the hybrid application, enabling the Web component to respectively interact with a login management server and APP service of the hybrid application through the container device,thereby finishing the single sign-on of the Web component, interacting with a Web layer of the hybrid application through the container device, and interacting with a Bridge layer with the hybrid application through the container device, and then calling native API in a native layer of the hybrid application through the Bridge layer, wherein the hybrid application comprises the native layer, theBridge layer and the Web layer, the container device is in a free state in the hybrid application, the loading is performed through the Bridge layer so as to integrate with the Web layer. Through therealization method provided by the invention, the problems that the single sign-on is not supported after the Web component is accessed to the hybrid application, the Web layer and the Web component cannot be mutually called due to cross-domain and the Web component cannot call the native API in the prior art are solved.

Description

technical field [0001] The invention relates to the technical fields of application development under mobile terminals and Web front-end development, in particular to a method and device for realizing a hybrid application accessing Web components. Background technique [0002] In an environment where mobile business forms are changing with each passing day, it is difficult for native applications with long production cycles to keep up with the changes in business forms. So a batch of business units were replaced by Web pages (Web components) to achieve fast and flexible updates and releases. Due to the support of the application programming interface API of the native application, the functions of the accessed Web component are complete, and there is no difference from the native application. At the same time, it improves the development efficiency and the ability of system reuse. [0003] Hybrid application is an emerging mobile application architecture, which is a combin...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L29/06H04L29/08
CPCH04L63/0815H04L67/02
Inventor 傅成彦郭岳方炜杨俏
Owner CHINA MOBILE GROUP ZHEJIANG
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products