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

A mobile app and web page communication method and system

A communication method and page technology, applied in the field of mobile APP, can solve problems such as blocking threads, affecting performance, inconsistency, etc., and achieve the effect of avoiding blocking threads

Active Publication Date: 2020-06-05
北京空地时代科技有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] Since the mobile APP (that is, the application software on the mobile terminal) needs to distinguish devices such as android and ios, the security restrictions and communication method standards are inconsistent, which makes the interaction process between the APP and the Web page very cumbersome
[0003] At present, the native API (Application Programming Interface) of APP and Web only provides a simplex call method, that is, "APP calls Web" or "Web calls APP", and because this call is a synchronous call, it will block the thread , affecting performance

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
  • A mobile app and web page communication method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] Such as figure 1 As shown, the communication method between the mobile APP and the Web page includes the following steps:

[0020] (1) Wrap the native API to make half-duplex calls;

[0021] (2) Reject the callback and cancel the synchronous blocking;

[0022] (3) Custom communication serial number;

[0023] (4) When the asynchronous return result is received, it is processed separately according to the instruction type;

[0024] (5) If there is a matching serial number, it is determined that this message is the result of an asynchronous return of a command sent by the APP, and jumps to step (4).

[0025] The present invention realizes half-duplex calls by packaging native APIs, rejects callbacks, cancels synchronous blocking, and customizes communication serial numbers. When receiving asynchronous return results, it will be processed separately according to the instruction type. If there is a matching serial number, it will be determined. This message is processed ...

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 discloses a mobile APP and Web page communication method for realizing full duplex asynchronous communication of a mobile APP and a Web page, avoiding thread blockage and generating no influence to the performance of a mobile device. This mobile APP and Web page communication method comprises the following steps: (1) packaging a native API to realize half duplex call; (2) refusing callback, and cancelling synchronous blockage; (3) self defining a communication serial number; (4) when asynchronous return results are received, separately processing the asynchronous return results according to an instruction type; (5) if a matched serial number exists, determining the message is the asynchronous return result of a certain instruction sent by the APP, and skipping to step (4).

Description

technical field [0001] The invention belongs to the technical field of mobile APP, and in particular relates to a communication method and system between a mobile APP and a Web page. Background technique [0002] Since the mobile APP (that is, the application software on the mobile terminal) needs to distinguish devices such as android and ios, the security restrictions and communication method standards are inconsistent, which makes the interaction process between the APP and the Web page very cumbersome. [0003] At present, the native API (Application Programming Interface) of APP and Web only provides a simplex call method, that is, "APP calls Web" or "Web calls APP", and because this call is a synchronous call, it will block the thread , affecting performance. In order to support complex business scenarios and high-performance requirements, it is urgent to realize "full-duplex asynchronous communication between APP and Web". Contents of the invention [0004] The te...

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/08G06F9/54
CPCG06F9/547H04L67/02H04L67/125
Inventor 屠文珂杨英俞晖延琦邱磊李见伟卢杰文赵孟恩付玉豪
Owner 北京空地时代科技有限公司
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