H5 page and native APP interaction method and device and storage medium
An interactive method and page technology, applied in the field of R&D management, can solve problems such as difficulty in updating, waste of development manpower, and poor APP code quality, and achieve the effect of reducing the amount of business development, improving code quality, and reducing business burden.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0042] The embodiment of the present invention provides an interaction method between an H5 page and a native APP, which is applied to a mobile terminal of the Android system, such as figure 1 As shown, the method specifically includes the following steps:
[0043] Step S101: When the target APP loads an H5 page, load a preset file into the H5 page; wherein, the preset file includes: a message queue and an interaction protocol.
[0044] Among them, H5 page is an abbreviation of HTML5 page, and HTML5 is a language description method for constructing Web content.
[0045] Specifically, the preset file includes: a message queue for storing interaction messages sent from the H5 page to the target APP, and an interaction protocol agreed in advance between the H5 page and the target APP.
[0046] Further, the loading of the preset preset file into the H5 page specifically includes:
[0047] Step A1: Obtain the preset file, and read the preset file into the memory of the target APP...
Embodiment 2
[0082] An embodiment of the present invention provides an interaction device between an H5 page and a native APP, such as figure 2 As shown, the device specifically includes the following components:
[0083] 1) Loading module 201, configured to load a preset file into the H5 page when the target APP loads the H5 page; wherein, the preset file includes: a message queue and an interaction protocol.
[0084] Specifically, the loading module 201 is used for:
[0085] Obtain the preset file, and read the preset file into the memory of the target APP;
[0086] converting the preset file into a character string;
[0087] The character string in the memory is loaded into the H5 page by calling the webpage view.
[0088] Further, the device also includes:
[0089] A registration module, configured to register in the target APP a task parser for parsing interactive messages and a plurality of task processors for processing different types of interactive services when the target AP...
Embodiment 3
[0109] This embodiment also provides a computer device, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack server, a blade server, a tower server, or a cabinet server (including an independent server, or A server cluster composed of multiple servers), etc. Such as image 3 As shown, the computer device 30 in this embodiment at least includes but is not limited to: a memory 301 and a processor 302 that can be communicated with each other through a system bus. It should be pointed out that, image 3 Only computer device 30 is shown having components 301-302, but it should be understood that implementing all of the illustrated components is not a requirement and that more or fewer components may instead be implemented.
[0110] In this embodiment, the memory 301 (that is, a readable storage medium) includes a flash memory, a hard disk, a multimedia card, a card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), s...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com