CN107426278A - Call method, device and the mobile terminal of H5 applications - Google Patents

Call method, device and the mobile terminal of H5 applications Download PDF

Info

Publication number
CN107426278A
CN107426278A CN201710271516.3A CN201710271516A CN107426278A CN 107426278 A CN107426278 A CN 107426278A CN 201710271516 A CN201710271516 A CN 201710271516A CN 107426278 A CN107426278 A CN 107426278A
Authority
CN
China
Prior art keywords
applications
mobile terminal
application
call
offline versions
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710271516.3A
Other languages
Chinese (zh)
Inventor
汪辰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201710271516.3A priority Critical patent/CN107426278A/en
Publication of CN107426278A publication Critical patent/CN107426278A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/544Remote

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the present application discloses a kind of call method, device and the mobile terminal of H5 applications, and this method includes:Detection H5 applies the offline versions in mobile terminal;If the offline versions of H5 applications are not present in the mobile terminal, online version and operation that the H5 is applied are called.In the embodiment of the present application, by when can't detect the offline versions of H5 applications, the online version of operation H5 applications, so as to ensure that user can call success when calling, not influenceing the normal use of user, providing the user more preferable Consumer's Experience.

Description

Call method, device and the mobile terminal of H5 applications
Technical field
The application is related to computer software technical field, more particularly to call method, device and the movement of a kind of H5 applications Terminal.
Background technology
In the H5 applications of prior art, when applying B using A calling is offline offline, if B there has been no in user's hand In machine client, it will cause malloc failure malloc, Consumer's Experience is very poor.
How to avoid the situation of offline application call failure from occurring, improve Consumer's Experience, be that the embodiment of the present application to be solved Technical problem certainly.
The content of the invention
The purpose of the embodiment of the present application is to provide a kind of call method, device and the mobile terminal of H5 applications.
In order to solve the above technical problems, what the embodiment of the present application was realized in:
First aspect, there is provided a kind of call method of H5 applications, this method include:
Detection H5 applies the offline versions in mobile terminal;
If the offline versions of H5 applications are not present in the mobile terminal, online version and fortune that the H5 is applied are called OK.
Second aspect, there is provided a kind of H5 application calls device, the device include:
Detection unit, detection H5 apply the offline versions in mobile terminal;
Call unit, if in the mobile terminal be not present the H5 application offline versions, call the H5 apply Line version is simultaneously run.
The third aspect, there is provided a kind of H5 application calls device, the device include:
Processor;And
It is arranged to store the memory of computer executable instructions, the executable instruction makes the processor when executed Perform following operate:
Detection H5 applies the offline versions in mobile terminal;
If the offline versions of H5 applications are not present in the mobile terminal, online version and fortune that the H5 is applied are called OK.
Fourth aspect, there is provided a kind of mobile terminal, the system include the H5 application calls of second aspect or the third aspect Device.
5th aspect, there is provided a kind of H5 application calls supervising device, the device include:
Monitoring unit, monitors H5 application invocation requests, and the H5 application invocation requests are applied for request call H5;
Detection unit, when monitoring the call request to H5 applications, detect the H5 and apply in the mobile terminal Offline versions;
Call unit, if the offline versions of H5 applications are not present in the mobile terminal, call the H5 should Online version and operation.
6th aspect, there is provided a kind of H5 application calls supervising device, the device include:
Processor;And
It is arranged to store the memory of computer executable instructions, the executable instruction makes the processor when executed Perform following operate:
H5 application invocation requests are monitored, the H5 application invocation requests are applied for request call H5;
When monitoring the call request to H5 applications, detect the H5 and apply offline version in the mobile terminal This;
If the offline versions of H5 applications are not present in the mobile terminal, the online version of the H5 applications is called This simultaneously runs.
7th aspect, there is provided a kind of mobile terminal, the system include the H5 application calls of the 5th aspect or the 6th aspect Supervising device.
Eighth aspect, there is provided a kind of computer-readable recording medium, the computer-readable recording medium storage one or Multiple programs, one or more programs are when the electronic equipment for being included multiple application programs performs so that the electronic equipment Perform following operate:
Detection H5 applies the offline versions in mobile terminal;
If the offline versions of H5 applications are not present in the mobile terminal, online version and fortune that the H5 is applied are called OK.
The technical scheme provided from above the embodiment of the present application, the method, apparatus of the embodiment of the present application and movement are eventually End, by the terminal be not present H5 application offline versions when call H5 application online version, so as to disobey Rely the situation of the offline versions that H5 is applied in mobile terminal, ensure the smooth calling to H5 applications, improve Consumer's Experience.
Brief description of the drawings
, below will be to embodiment or existing in order to illustrate more clearly of the embodiment of the present application or technical scheme of the prior art There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments described in application, for those of ordinary skill in the art, do not paying the premise of creative labor Under, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of the call method of one embodiment H5 applications of the application.
Fig. 2 is the particular flow sheet of the call method of one embodiment community H5 applications of the application.
Fig. 3 is the particular flow sheet of the calling monitoring method of one embodiment community H5 applications of the application.
Fig. 4 is the structural representation of one embodiment electronic equipment of the application.
Fig. 5 is the structural representation of one embodiment H5 application call devices of the application.
Fig. 6 is the structural representation of one embodiment electronic equipment of the application.
Fig. 7 is the structural representation of one embodiment H5 application call supervising devices of the application.
Embodiment
The embodiment of the present application provides a kind of H5 application calls method, apparatus and mobile terminal.
In order that those skilled in the art more fully understand the technical scheme in the application, it is real below in conjunction with the application The accompanying drawing in example is applied, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described implementation Example only some embodiments of the present application, rather than whole embodiments.It is common based on the embodiment in the application, this area The every other embodiment that technical staff is obtained under the premise of creative work is not made, it should all belong to the application protection Scope.
In order to facilitate the embodiment of the present application is understood, introduced first at this embodiment of the present application description in can introduce it is several will Element.
H5:That is the 5th generation version of HyperText Markup Language (HyperText Markup Language, HTML).H5 Purpose of design be to support multimedia on the mobile apparatus.In order to support multimedia, H5 introduce video, audio and Canvas etc. is marked.In addition, H5 has also introduced new function, thus it is possible to vary the interactive mode of user and document, including:It is offline to compile Volume function, from a H5 document to the drag-and -drop function another H5 document, etc..
Hybrid is applied:The H5 applications run in primary App on terminal platform beyond general browser.This The service logic of H5 applications has used the ability that Native is provided, and relies on these abilities, can not split.
Offline H5 applications:Whole code is compressed according to specification, compressed package is formed, user's hand is issued to by network In machine, make user's access performance optimal.
Fig. 1 is the flow chart of the call method of one embodiment H5 applications of the application.Fig. 1 method can be applied by H5 Calling device performs.In specific H5 applications, the H5 application calls device can be the One function module of Hybrid applications, The functional module of either other H5 applications.In addition, Fig. 1 method by H5 application calls supervising device by can also be performed.Fig. 1 Method may include:
S101, detect the H5 and apply offline versions in mobile terminal.
S102, if detect the mobile terminal be not present the H5 application offline versions, call the H5 apply Line version is simultaneously run.
Specifically, ask H5 application online version when, can by the address for the online version that the H5 is applied, such as URL addresses etc., the online version of request call H5 applications and operation.
In the embodiment of the present application, by the terminal be not present H5 application offline versions when call H5 application Line version, so as to the situation for the offline versions applied independent of H5 in mobile terminal, ensure the smooth tune to H5 applications With improving Consumer's Experience.
It should be understood, of course, that this method may also include:If the offline versions of H5 applications in the mobile terminal be present, Call the offline versions that the H5 is applied and operation.
Alternatively, this method may also include:The offline versions of H5 applications are downloaded, and are installed on the mobile terminal, with The offline versions that the H5 is applied and operation are called when calling the H5 to apply next time.
In the embodiment of the present application, by downloading the offline versions of H5 applications, and installed on the mobile terminal so that use When family can call H5 applications in next time, offline versions and the operation of H5 applications can be directly invoked.
Alternatively, as one embodiment, the offline versions of H5 applications are downloaded, specifically can be achieved be:
When running the online version of H5 applications, parallel starting downloads the process of the offline versions of H5 applications.
In the embodiment of the present application, the Parallel download offline versions when running the online version of H5 applications so that Yong Huke To obtain offline versions as early as possible, so that next time calls.
Alternatively, as another embodiment, the offline versions of H5 applications are downloaded, specifically can be achieved be:
Precontract task is established, the precontract task is used to preengage the offline versions for downloading H5 applications;
When reaching the entry condition of the precontract task, start the precontract task.
In the embodiment of the present application, offline versions are downloaded by establishing precontract task so that mobile terminal can meet to open Start precontract task after dynamic condition, more preferable download policy can be provided the user.
Specifically, in a kind of implementation of the embodiment of the present application, the entry condition can include at the mobile terminal In WIFI connection modes.
In this implementation, restart precontract task when mobile terminal is in WIFI connection modes, it is possible to reduce move The consumption of the mobile data flow of dynamic terminal.
Specifically, in another implementation of the embodiment of the present application, the entry condition can include H5 applications and move back Go out.
In this implementation, restart precontract task when H5 applications are exited, can avoid in H5 application run-times Between with H5 application competitive resources, for H5 application operation good resource environment is provided.
It should be understood, of course, that the entry condition can also be other situations.For example, the entry condition includes:The mobile terminal Exited in WIFI connection modes and H5 applications;In another example the entry condition includes:The network quality of mobile terminal is more than predetermined Threshold value, etc..Several possible entry conditions of precontract task are enumerated above, in specific application, it is also possible to it be present Its entry condition, the embodiment of the present application are numerous to list herein.
Alternatively, as one embodiment, when downloading the offline versions of H5 applications, this method also includes:Display should The download progress of the offline versions of H5 applications.
In the embodiment of the present application, the download progress of the offline versions by showing H5 applications, it can make it that user can be with The download situation of offline versions can be clearly seen.
Specifically, the download progress can be represented with download progress bar, or be represented with the percentages downloaded, this Shen Please embodiment this is not restricted.
Alternatively, as one embodiment, step S102 specifically can be achieved be:
If detecting that the offline versions of H5 applications are not present in the mobile terminal, user's request to the mobile terminal is The online version of no calling H5 applications;
After the online version that the user allows to call that the H5 is applied, online version and operation that the H5 is applied are called.
In the embodiment of the present application, by whether being adjusted to user's request in offline versions of the mobile terminal in the absence of H5 applications The online version applied with H5, has provided the user selectable scheme, has enabled to user to obtain more preferable Consumer's Experience.
Alternatively, when this method is performed by H5 application calls supervising device, this method also includes:Monitor H5 application calls Request, wherein, the H5 application invocation requests are applied for request call H5;
Wherein, step S101 specifically can be achieved be:When monitoring the call request to H5 applications, detect the H5 and apply The offline versions of the mobile terminal.
In the embodiment of the present application, examined by monitoring H5 application invocation requests, and according to the H5 application invocation requests listened to The offline versions with the presence or absence of corresponding H5 applications are surveyed, and call what the H5 was applied in the offline versions applied in the absence of the H5 Online version, so as to the situation for the offline versions applied independent of H5 in mobile terminal, ensure to the smooth of H5 applications Call, improve Consumer's Experience.
Alternatively, the H5 applications that the H5 application invocation requests monitored in the embodiment of the present application are called, can be all H5 is applied.
Or alternatively, the H5 applications that the H5 application invocation requests monitored in the embodiment of the present application are called, it can refer to Fixed H5 applications.For example, a H5 list of application can be safeguarded, when the H5 applications that the H5 application invocation requests listened to are called In the H5 list of applications, then perform the embodiment of the present application method.Specifically, H5 applications are may include in the H5 list of applications Mark, and online version address, etc. corresponding to H5 applications.
Below, the method for the embodiment of the present application will be further described in conjunction with specific embodiments.
Fig. 2 is the particular flow sheet of the call method of one embodiment H5 applications of the application.
201, open H5 applications A.
In the embodiment of the present application, first have to open a H5 application, H5 applications A might as well be assumed to be.It should be understood that Fig. 1 institutes Show the H5 application call devices of embodiment, can be the H5 application A of the embodiment of the present application, or the H5 of the embodiment of the present application should With the One function module in A.
202, H5 application A detect whether the offline versions that H5 applications B be present.
H5 applications A is before H5 applications B is called, it is necessary to detect whether H5 be present in the mobile terminal where H5 applications A Using B offline versions.
If detecting H5 applications B offline versions in mobile terminal be present, step 203 is performed;
If detecting the offline versions that H5 applications B is not present in mobile terminal, step 204 is performed.
203, H5 application A call H5 applications B offline versions.
When detecting the information that H5 applications B in mobile terminal be present, then H5 applications A can directly invoke the offline of H5 applications B Version.
204, H5 application A call H5 applications B online version and operation.
When detect in mobile terminal be not present H5 applications B information, then H5 applications A can call H5 applications B online version This simultaneously runs.
Specifically, for example, H5 applications A can by the URL addresses of H5 applications B online version, request call H5 applications B's Online version and operation, etc..Of course, it is also possible to the mode of other calling H5 applications B online version be present, the application is implemented This is not restricted for example.
205, H5 application A initiate RPC flows, and H5 application B information is downloaded in request.
After H5 applications B online version is called, H5 applications A can also initiate remote procedure call protocol (Remote Procedure Call Protocol, RPC) flow, request download H5 applications B offline versions.
For example, RPC requests can be transmitted in H5 applications A, H5 applications B is carried in RPC requests applies ID.Asked by RPC, H5 applications A can obtain H5 applications B configuration information.Wherein, H5 applications B offline version can be included in H5 applications B configuration information This resource address etc..After H5 applications A obtains the resource address of H5 applications B offline versions, the download that can initiate H5 applications B please Ask.
Alternatively, H5 applications A can initiate H5 applications B download request immediately, in the online of H5 applications A calling H5 applications B Parallel starting downloading process during version.
Or alternatively, H5 applications A can create reservation downloading task, H5 applications B download is downloaded in reservation, then up to Start precontract task after to the entry condition of precontract task.Specifically, entry condition, for example, it may be mobile terminal is in WIFI connection modes, or H5 applications are exited, or other conditions.It should be understood, of course, that the entry condition can also be more The combination of individual condition.
206, H5 application B are downloaded.
H5 applications B, which starts, to be downloaded.When H5 applications B starts and downloaded, it can show that H5 applications B offline versions are downloaded into Degree.Specifically, the download progress can be a progress bar, or progress percentage, etc..
207, H5 application B are installed.
After H5 applications B is downloaded, you can carry out H5 applications B installation.
Fig. 3 is the particular flow sheet of the monitoring call method of another embodiment H5 applications of the application.
301, H5 application call supervising devices monitor H5 applications C call request.
It should be understood that in the embodiment of the present application, H5 application calls supervising device can be disposed on mobile terminals, and monitoring, which intercepts, to move The call request of H5 applications in dynamic terminal.
Alternatively, H5 application calls supervising device can monitor the call request of all H5 applications, or the H5 that monitoring is specified The call request of application.The H5 specified is applied, for example, it may be H5 applications in some H5 list of application, etc..
It might as well assume that H5 applications C is satisfactory H5 applications, and H5 application call supervising devices monitor H5 applications C's Call request.
302, detect whether H5 applications C offline versions be present.
After H5 application call supervising devices monitor H5 applications C call request, it can detect whether H5 applications C be present first Offline versions.
If detecting H5 applications C offline versions in mobile terminal be present, H5 application call supervising devices can perform Step 303;
If detecting the offline versions that H5 applications C is not present in mobile terminal, H5 application calls supervising device can be held Row step 304.
303, call H5 applications C offline versions and operation.
When H5 application call supervising devices detect the information that H5 applications C in mobile terminal be present, then H5 application calls are supervised Control device can directly invoke H5 applications C offline versions.
304, call H5 applications C online version and operation.
H5 applications C information is not present in mobile terminal when H5 application call supervising devices detect, then H5 application calls Supervising device can call H5 applications C online version and operation.
For example, H5 application calls supervising device can call H5 applications C's by the URL addresses of H5 applications C online version Online version and operation, etc..In addition, H5 application calls supervising device can safeguard a H5 application call list, H5 store The mark of application and corresponding online version address;Or H5 application calls supervising device can store H5 otherwise The mark of application and the mapping relations of corresponding online version address, the embodiment of the present application are without limitation.
305, H5 application call supervising devices initiate RPC flows, and H5 application C information is downloaded in request.
306, H5 application C are downloaded.
307, H5 application C are installed.
Step 305-307 specific implementation refers to the step 205-207 of embodiment illustrated in fig. 2, and the embodiment of the present application exists This is repeated no more.
Fig. 3 is the structural representation of one embodiment electronic equipment of the application.Fig. 3 is refer to, in hardware view, the electricity Sub- equipment includes processor, alternatively also includes internal bus, network interface, memory.Wherein, memory may include interior Deposit, such as high-speed random access memory (Random-Access Memory, RAM), it is also possible to also including non-volatile memories Device (non-volatile memory), for example, at least 1 magnetic disk storage etc..Certainly, the electronic equipment is also possible that other Hardware required for business.
Processor, network interface and memory can be connected with each other by internal bus, and the internal bus can be ISA (Industry Standard Architecture, industry standard architecture) bus, PCI (Peripheral Component Interconnect, Peripheral Component Interconnect standard) bus or EISA (Extended Industry Standard Architecture, EISA) bus etc..The bus can be divided into address bus, data/address bus, controlling bus Deng.For ease of representing, only represented in Fig. 3 with a four-headed arrow, it is not intended that an only bus or a type of total Line.
Memory, for depositing program.Specifically, program can include program code, and the program code includes computer Operational order.Memory can include internal memory and nonvolatile memory, and provide instruction and data to processor.
Processor read from nonvolatile memory corresponding to computer program into internal memory then run, in logical layer H5 application call devices are formed on face.Processor, the program that memory is deposited is performed, and specifically for performing following operate:
Detection H5 applies the offline versions in mobile terminal;
If the offline versions of H5 applications are not present in the mobile terminal, online version and fortune that the H5 is applied are called OK.
The method that above-mentioned H5 application calls device or H5 applications A as disclosed in the application Fig. 1, embodiment illustrated in fig. 2 performs It can apply in processor, or realized by processor.Processor is probably a kind of IC chip, has the place of signal Reason ability.In implementation process, each step of the above method can by the integrated logic circuit of the hardware in processor or The instruction of software form is completed.Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be Digital Signal Processing Device (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other can Programmed logic device, discrete gate or transistor logic, discrete hardware components.It can realize or perform the application implementation Disclosed each method, step and logic diagram in example.General processor can be that microprocessor or the processor can also It is any conventional processor etc..The step of method with reference to disclosed in the embodiment of the present application, can be embodied directly in hardware decoding Computing device is completed, or performs completion with the hardware in decoding processor and software module combination.Software module can position In random access memory, flash memory, read-only storage, programmable read only memory or electrically erasable programmable memory, register Deng in the ripe storage medium in this area.The storage medium is located at memory, and processor reads the information in memory, with reference to it Hardware completes the step of above method.
The electronic equipment can also carry out Fig. 1 method, and realize H5 application calls device or H5 applications A in Fig. 1, Fig. 2 institute Show the function of embodiment, the embodiment of the present application will not be repeated here.
The embodiment of the present application additionally provides a kind of mobile terminal, includes the H5 application call devices of embodiment illustrated in fig. 4.
Certainly, in addition to software realization mode, the electronic equipment of the application is not precluded from other implementations, for example patrols Collect mode of device or software and hardware combining etc., that is to say, that the executive agent of following handling process is not limited to each patrol Collect unit or hardware or logical device.
The embodiment of the present application also proposed a kind of computer-readable recording medium, the computer-readable recording medium storage one Individual or multiple programs, one or more programs include instruction, and the instruction is when the portable electronic for being included multiple application programs When equipment performs, the method for portable electric appts execution embodiment illustrated in fig. 1 can be made.
Fig. 5 is the structural representation of one embodiment H5 application calls device 500 of the application.Fig. 5 is refer to, in one kind In Software Implementation, H5 application calls device 500 may include:Detection unit 510 and call unit 520.
Detection unit 510, detection H5 apply the offline versions in mobile terminal;
Call unit 520, if the offline versions of H5 applications are not present in the mobile terminal, call what the H5 was applied Online version is simultaneously run.
In the embodiment of the present application, H5 application calls device 500 passes through in the terminal in the absence of the offline version of H5 applications This when, calls the online version of H5 applications, so as to the situation for the offline versions applied independent of H5 in mobile terminal, protects The smooth calling to H5 applications is demonstrate,proved, improves Consumer's Experience.
Alternatively, download unit 530 is may also include as one embodiment, H5 application calls device 500, downloading the H5 should Offline versions, and installed on the mobile terminal.
Alternatively, in a kind of implementation of the present embodiment, the online version of H5 applications is run in call unit 520 When, the parallel starting of download unit 530 downloads the process of the offline versions of H5 applications.
Or alternatively, in another implementation of the present embodiment, H5 applications are run in call unit 520 During online version, download unit 530 establishes precontract task, and the precontract task is used to preengage the offline versions for downloading H5 applications; When reaching the entry condition of the precontract task, start the precontract task.
Further, the entry condition includes:The mobile terminal is in WIFI connection modes, and/or, H5 applications are moved back Go out.
Alternatively, H5 application calls device 500 may also include progress display unit 540, and the H5 is downloaded in download unit 530 During the offline versions of application, the download progress of the offline versions of H5 applications is shown.
Alternatively, H5 application calls device 500 may also include request unit 550, if the H5 is not present in the mobile terminal Whether the offline versions of application, user request of the request unit 550 to the mobile terminal call the online version that the H5 is applied;Adjust With unit 520 after the online version that the user allows to call that the H5 is applied, online version and operation that the H5 is applied are called.
Alternatively, if the offline versions of H5 applications in the mobile terminal be present, call unit 520 also calls the H5 The offline versions of application and operation.
In the embodiment of the present application, H5 application calls device 500 can also carry out Fig. 1 method, and realize that H5 application calls fill The function in Fig. 1, embodiment illustrated in fig. 2 is put, the embodiment of the present application will not be repeated here.
Present invention also provides a kind of mobile terminal, the mobile terminal may include the H5 application calls of embodiment illustrated in fig. 5 Device 500, or the H5 application call devices stored in the electronic equipment of embodiment illustrated in fig. 4.
Fig. 6 is the structural representation of one embodiment electronic equipment of the application.Fig. 6 is refer to, in hardware view, the electricity Sub- equipment includes processor, alternatively also includes internal bus, network interface, memory.Wherein, memory may include interior Deposit, such as high-speed random access memory (Random-Access Memory, RAM), it is also possible to also including non-volatile memories Device (non-volatile memory), for example, at least 1 magnetic disk storage etc..Certainly, the electronic equipment is also possible that other Hardware required for business.
Processor, network interface and memory can be connected with each other by internal bus, and the internal bus can be ISA (Industry Standard Architecture, industry standard architecture) bus, PCI (Peripheral Component Interconnect, Peripheral Component Interconnect standard) bus or EISA (Extended Industry Standard Architecture, EISA) bus etc..The bus can be divided into address bus, data/address bus, controlling bus Deng.For ease of representing, only represented in Fig. 6 with a four-headed arrow, it is not intended that an only bus or a type of total Line.
Memory, for depositing program.Specifically, program can include program code, and the program code includes computer Operational order.Memory can include internal memory and nonvolatile memory, and provide instruction and data to processor.
Processor read from nonvolatile memory corresponding to computer program into internal memory then run, in logical layer H5 application call supervising devices are formed on face.Processor, the program that memory is deposited is performed, and specifically for performing following grasp Make:
H5 application invocation requests are monitored, the H5 application invocation requests are applied for request call H5;
When monitoring the call request to H5 applications, detect the H5 and apply offline versions in the mobile terminal;
If the offline versions of H5 applications are not present in the mobile terminal, online version and fortune that the H5 is applied are called OK.
Above-mentioned H5 application calls supervising device or H5 applications A as disclosed in the application Fig. 1, embodiment illustrated in fig. 3 performs Method can apply in processor, or be realized by processor.Processor is probably a kind of IC chip, has signal Disposal ability.In implementation process, each step of the above method can pass through the integrated logic circuit of the hardware in processor Or the instruction of software form is completed.Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be Digital Signal Processing Device (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other can Programmed logic device, discrete gate or transistor logic, discrete hardware components.It can realize or perform the application implementation Disclosed each method, step and logic diagram in example.General processor can be that microprocessor or the processor can also It is any conventional processor etc..The step of method with reference to disclosed in the embodiment of the present application, can be embodied directly in hardware decoding Computing device is completed, or performs completion with the hardware in decoding processor and software module combination.Software module can position In random access memory, flash memory, read-only storage, programmable read only memory or electrically erasable programmable memory, register Deng in the ripe storage medium in this area.The storage medium is located at memory, and processor reads the information in memory, with reference to it Hardware completes the step of above method.
The electronic equipment can also carry out Fig. 1 method, and realize H5 application calls supervising device or H5 applications A in Fig. 1, figure The function of 3 illustrated embodiments, the embodiment of the present application will not be repeated here.
The embodiment of the present application additionally provides a kind of mobile terminal, includes the H5 application calls monitoring dress of embodiment illustrated in fig. 6 Put.
Certainly, in addition to software realization mode, the electronic equipment of the application is not precluded from other implementations, for example patrols Collect mode of device or software and hardware combining etc., that is to say, that the executive agent of following handling process is not limited to each patrol Collect unit or hardware or logical device.
The embodiment of the present application also proposed a kind of computer-readable recording medium, the computer-readable recording medium storage one Individual or multiple programs, one or more programs include instruction, and the instruction is when the portable electronic for being included multiple application programs When equipment performs, the method for portable electric appts execution embodiment illustrated in fig. 1 can be made.
Fig. 7 is the structural representation of one embodiment H5 application calls supervising device 700 of the application.Fig. 7 is refer to, In a kind of Software Implementation, H5 application calls supervising device 700 may include:Detection unit 720 and call unit 730.
Monitoring unit 710, monitors H5 application invocation requests, and the H5 application invocation requests are applied for request call H5;
Detection unit 720, when monitor to the H5 application call request when, detect the H5 apply the mobile terminal from Line version;
Call unit 730, if the offline versions of H5 applications are not present in the mobile terminal, call what the H5 was applied Online version is simultaneously run.
In the embodiment of the present application, H5 application calls supervising device 700 is being moved eventually by monitoring H5 application invocation requests The online version for calling the H5 to apply during the offline versions for the H5 applications that H5 application invocation requests are called is not present in end, so as to It can ensure the smooth calling to H5 applications independent of the situation of the offline versions applied of H5 in mobile terminal, improve use Experience at family.
Alternatively, as one embodiment, H5 application calls supervising device 700 may also include download unit 740, and downloading should The offline versions of H5 applications, and installed on the mobile terminal.
Alternatively, in a kind of implementation of the present embodiment, the online version of H5 applications is run in call unit 730 When, the parallel starting of download unit 740 downloads the process of the offline versions of H5 applications.
Or alternatively, in another implementation of the present embodiment, H5 applications are run in call unit 730 During online version, download unit 740 establishes precontract task, and the precontract task is used to preengage the offline versions for downloading H5 applications; When reaching the entry condition of the precontract task, start the precontract task.
Further, the entry condition includes:The mobile terminal is in WIFI connection modes, and/or, H5 applications are moved back Go out.
Alternatively, H5 application calls supervising device 700 may also include progress display unit 750, be downloaded in download unit 740 During the offline versions of H5 applications, the download progress of the offline versions of H5 applications is shown.
Alternatively, H5 application calls supervising device 700 may also include request unit 760,
If the offline versions of H5 applications, user of the request unit 760 to the mobile terminal is not present in the mobile terminal Whether request calls the online version that the H5 is applied;
Call unit 730 is after the online version that the user allows to call that the H5 is applied, the online version of calling the H5 to apply This simultaneously runs.
Alternatively, if the offline versions of H5 applications in the mobile terminal be present, call unit 730 also calls the H5 The offline versions of application and operation.
In the embodiment of the present application, H5 application calls supervising device 700 can also carry out Fig. 1 method, and realize that H5 applications are adjusted It is will not be repeated here with supervising device in Fig. 1, the function of embodiment illustrated in fig. 3, the embodiment of the present application.
Present invention also provides another mobile terminal, the mobile terminal may include that the H5 applications of embodiment illustrated in fig. 7 are adjusted With supervising device 700, or the H5 application call supervising devices stored in the electronic equipment of embodiment illustrated in fig. 6.
Present invention also provides a kind of computer-readable recording medium, the computer-readable recording medium storage one or more Individual program, one or more programs are when the electronic equipment for being included multiple application programs performs so that the electronic equipment is held Row is following to be operated:
Detection H5 applies the offline versions in mobile terminal;
If the offline versions of H5 applications are not present in the mobile terminal, online version and fortune that the H5 is applied are called OK.
Present invention also provides another computer-readable recording medium, the computer-readable recording medium storage one or Multiple programs, one or more programs are when the electronic equipment for being included multiple application programs performs so that the electronic equipment Perform following operate:
H5 application invocation requests are monitored, the H5 application invocation requests are applied for request call H5;
When monitoring the call request to H5 applications, detect the H5 and apply offline versions in the mobile terminal;
If the offline versions of H5 applications are not present in the mobile terminal, online version and fortune that the H5 is applied are called OK.
In a word, the preferred embodiment of the application is the foregoing is only, is not intended to limit the protection domain of the application. All any modification, equivalent substitution and improvements within spirit herein and principle, made etc., should be included in the application's Within protection domain.
System, device, module or the unit that above-described embodiment illustrates, it can specifically be realized by computer chip or entity, Or realized by the product with certain function.One kind typically realizes that equipment is computer.Specifically, computer for example may be used Think personal computer, laptop computer, cell phone, camera phone, smart phone, personal digital assistant, media play It is any in device, navigation equipment, electronic mail equipment, game console, tablet PC, wearable device or these equipment The combination of equipment.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moved State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM), Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus Or any other non-transmission medium, the information that can be accessed by a computing device available for storage.Define, calculate according to herein Machine computer-readable recording medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability Comprising so that process, method, commodity or equipment including a series of elements not only include those key elements, but also wrapping Include the other element being not expressly set out, or also include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that wanted including described Other identical element also be present in the process of element, method, commodity or equipment.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment Divide mutually referring to what each embodiment stressed is the difference with other embodiment.It is real especially for system For applying example, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method Part explanation.

Claims (15)

1. a kind of call method of H5 applications, including:
Detection H5 applies the offline versions in mobile terminal;
If the offline versions of H5 applications are not present in the mobile terminal, the online version of the H5 applications is called simultaneously Operation.
2. the method as described in claim 1, methods described also includes:
The offline versions of the H5 applications are downloaded, and are installed on the mobile terminal, to call the H5 to apply next time When call offline versions and the operation of H5 application.
3. method as claimed in claim 2,
Downloading the offline versions of the H5 applications includes:When running the online version of the H5 applications, parallel starting downloads institute State the process of the offline versions of H5 applications.
4. method as claimed in claim 2,
Downloading the offline versions of the H5 applications includes:Precontract task is established, the precontract task, which is used to preengage, downloads the H5 The offline versions of application;
When reaching the entry condition of the precontract task, start the precontract task.
5. method as claimed in claim 4, the entry condition includes:The mobile terminal is in WIFI connection modes, and/ Or the H5 applications are exited.
6. method as claimed in claim 4, when downloading the offline versions of the H5 applications, methods described also includes:Display The download progress of the offline versions of the H5 applications.
7. the method as described in claim 1,
If the offline versions of H5 applications are not present in the mobile terminal, the online version and fortune of the H5 applications are called Row includes:
If the offline versions of H5 applications are not present in the mobile terminal, whether user's request to the mobile terminal adjusts The online version applied with the H5;
After the online version that the user allows to call the H5 applications, online version and the operation of the H5 applications are called.
8. the method as described in claim 1, methods described also includes:If the H5 applications in the mobile terminal be present Offline versions, then call offline versions and the operation of the H5 applications.
9. the method as described in claim 1,
Before detection H5 applies the offline versions in mobile terminal, methods described also includes:Monitor H5 application invocation requests, institute H5 application invocation requests are stated to apply for request call H5;
Wherein, detection H5 applies the offline versions in mobile terminal to include:When monitoring the call request to H5 applications, inspection Survey the H5 and apply offline versions in the mobile terminal.
10. a kind of H5 application calls device, including:
Detection unit, detection H5 apply the offline versions in mobile terminal;
Call unit, if the offline versions of H5 applications are not present in the mobile terminal, call the H5 applications Online version is simultaneously run.
11. a kind of H5 application calls device, including:
Processor;And
It is arranged to store the memory of computer executable instructions, the executable instruction makes the processor when executed Perform following operate:
Detection H5 applies the offline versions in mobile terminal;
If the offline versions of H5 applications are not present in the mobile terminal, the online version of the H5 applications is called simultaneously Operation.
12. a kind of H5 application calls supervising device, including:
Monitoring unit, monitors H5 application invocation requests, and the H5 application invocation requests are applied for request call H5;
Detection unit, when monitor to the H5 application call request when, detect the H5 apply the mobile terminal from Line version;
Call unit, if the offline versions of H5 applications are not present in the mobile terminal, call the H5 applications Online version is simultaneously run.
13. a kind of H5 application calls supervising device, including:
Processor;And
It is arranged to store the memory of computer executable instructions, the executable instruction makes the processor when executed Perform following operate:
H5 application invocation requests are monitored, the H5 application invocation requests are applied for request call H5;
When monitoring the call request to H5 applications, detect the H5 and apply offline versions in the mobile terminal;
If the offline versions of H5 applications are not present in the mobile terminal, the online version of the H5 applications is called simultaneously Operation.
14. a kind of computer-readable recording medium, the computer-readable recording medium storage one or more program, described one Individual or multiple programs are when the electronic equipment for being included multiple application programs performs so that the electronic equipment performs following grasp Make:
Detection H5 applies the offline versions in mobile terminal;
If the offline versions of H5 applications are not present in the mobile terminal, the online version of the H5 applications is called simultaneously Operation.
15. a kind of computer-readable recording medium, the computer-readable recording medium storage one or more program, described one Individual or multiple programs are when the electronic equipment for being included multiple application programs performs so that the electronic equipment performs following grasp Make:
H5 application invocation requests are monitored, the H5 application invocation requests are applied for request call H5;
When monitoring the call request to H5 applications, detect the H5 and apply offline versions in the mobile terminal;
If the offline versions of H5 applications are not present in the mobile terminal, the online version of the H5 applications is called simultaneously Operation.
CN201710271516.3A 2017-04-24 2017-04-24 Call method, device and the mobile terminal of H5 applications Pending CN107426278A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710271516.3A CN107426278A (en) 2017-04-24 2017-04-24 Call method, device and the mobile terminal of H5 applications

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710271516.3A CN107426278A (en) 2017-04-24 2017-04-24 Call method, device and the mobile terminal of H5 applications

Publications (1)

Publication Number Publication Date
CN107426278A true CN107426278A (en) 2017-12-01

Family

ID=60424015

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710271516.3A Pending CN107426278A (en) 2017-04-24 2017-04-24 Call method, device and the mobile terminal of H5 applications

Country Status (1)

Country Link
CN (1) CN107426278A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111045747A (en) * 2019-11-06 2020-04-21 用友网络科技股份有限公司 H5 mobile application rapid loading method, system, terminal and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2096831A1 (en) * 2008-02-26 2009-09-02 Alcatel Lucent Method and device for managing video traffic
CN104166735A (en) * 2014-09-04 2014-11-26 百度在线网络技术(北京)有限公司 Map searching method and device
CN104252371A (en) * 2014-09-04 2014-12-31 百度在线网络技术(北京)有限公司 Method and device for optimizing map loading performance
CN104301337A (en) * 2013-07-16 2015-01-21 苏州精易会信息技术有限公司 Cloud-based multi-application managing method
CN104657151A (en) * 2015-03-16 2015-05-27 百度在线网络技术(北京)有限公司 Method and device for displaying application programs
CN104955005A (en) * 2014-03-26 2015-09-30 阿里巴巴集团控股有限公司 Method and device for depositing for communication terminal
CN105180924A (en) * 2015-09-07 2015-12-23 广东欧珀移动通信有限公司 Navigation method based on restaurant queuing and mobile terminal
CN105893094A (en) * 2016-03-31 2016-08-24 百度在线网络技术(北京)有限公司 Achieving method and device for application program plug-in
CN105975296A (en) * 2016-04-26 2016-09-28 百度在线网络技术(北京)有限公司 Mobile application upgrading method and device
CN106375320A (en) * 2016-09-06 2017-02-01 珠海市魅族科技有限公司 Geographic position information sharing method and apparatus

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2096831A1 (en) * 2008-02-26 2009-09-02 Alcatel Lucent Method and device for managing video traffic
CN104301337A (en) * 2013-07-16 2015-01-21 苏州精易会信息技术有限公司 Cloud-based multi-application managing method
CN104955005A (en) * 2014-03-26 2015-09-30 阿里巴巴集团控股有限公司 Method and device for depositing for communication terminal
CN104166735A (en) * 2014-09-04 2014-11-26 百度在线网络技术(北京)有限公司 Map searching method and device
CN104252371A (en) * 2014-09-04 2014-12-31 百度在线网络技术(北京)有限公司 Method and device for optimizing map loading performance
CN104657151A (en) * 2015-03-16 2015-05-27 百度在线网络技术(北京)有限公司 Method and device for displaying application programs
CN105180924A (en) * 2015-09-07 2015-12-23 广东欧珀移动通信有限公司 Navigation method based on restaurant queuing and mobile terminal
CN105893094A (en) * 2016-03-31 2016-08-24 百度在线网络技术(北京)有限公司 Achieving method and device for application program plug-in
CN105975296A (en) * 2016-04-26 2016-09-28 百度在线网络技术(北京)有限公司 Mobile application upgrading method and device
CN106375320A (en) * 2016-09-06 2017-02-01 珠海市魅族科技有限公司 Geographic position information sharing method and apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111045747A (en) * 2019-11-06 2020-04-21 用友网络科技股份有限公司 H5 mobile application rapid loading method, system, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN110489101B (en) Interface simulation method, system, medium and electronic equipment
US9918228B2 (en) Session completion through co-browsing
WO2022016847A1 (en) Automatic test method and device applied to cloud platform
CN110865898B (en) Method, device, medium and equipment for converging crash call stack
CN106528210B (en) A kind of operation method and device of application program
US8621613B1 (en) Detecting malware in content items
CN110727566B (en) Method, device, medium and electronic equipment for acquiring process crash information
CN112395098B (en) Application program interface calling method and device, storage medium and electronic equipment
CN113411400B (en) Information calling method and device, electronic equipment and readable storage medium
CN107957687A (en) The control method and device of InterWorking Equipment function
US10129278B2 (en) Detecting malware in content items
CN111625422B (en) Thread monitoring method, thread monitoring device, electronic equipment and computer readable storage medium
CN112256372B (en) Information processing method and device and electronic equipment
CN107678805A (en) The call method and device of a kind of application programming interfaces
CN112612460B (en) Interface encapsulation and calling method, electronic device and storage medium
CN111949297B (en) Block chain intelligent contract upgrading method and device and electronic equipment
CN107426278A (en) Call method, device and the mobile terminal of H5 applications
CN104570967B (en) Long-range control method and system based on android system
CN104536884A (en) Code testing method and device
CN116700779A (en) Code dynamic adjustment method, device, equipment, medium and program product
CN110764995B (en) Method, device, medium and electronic equipment for detecting file access abnormality
CN111984496B (en) Method, device, medium and electronic equipment for monitoring stack memory leakage
CN111382381B (en) User data sharing method and device, mobile terminal and storage medium
CN116263824A (en) Resource access method and device, storage medium and electronic equipment
CN111367590A (en) Interrupt event processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1247468

Country of ref document: HK

TA01 Transfer of patent application right

Effective date of registration: 20200922

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200922

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20171201

RJ01 Rejection of invention patent application after publication