WO2023221001A1 - Web application program access method and apparatus - Google Patents

Web application program access method and apparatus Download PDF

Info

Publication number
WO2023221001A1
WO2023221001A1 PCT/CN2022/093695 CN2022093695W WO2023221001A1 WO 2023221001 A1 WO2023221001 A1 WO 2023221001A1 CN 2022093695 W CN2022093695 W CN 2022093695W WO 2023221001 A1 WO2023221001 A1 WO 2023221001A1
Authority
WO
WIPO (PCT)
Prior art keywords
web application
installation package
browser kernel
browser
quick
Prior art date
Application number
PCT/CN2022/093695
Other languages
French (fr)
Chinese (zh)
Inventor
姚向阳
Original Assignee
北京小米移动软件有限公司
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 北京小米移动软件有限公司 filed Critical 北京小米移动软件有限公司
Priority to CN202280004593.1A priority Critical patent/CN117425877A/en
Priority to PCT/CN2022/093695 priority patent/WO2023221001A1/en
Publication of WO2023221001A1 publication Critical patent/WO2023221001A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Definitions

  • the present disclosure relates to the technical field of web application development, and in particular, to a method and device for accessing a web application.
  • the above solution is difficult to apply to television terminal equipment, resulting in poor applicability of web applications and a small number of applications on the television terminal equipment.
  • the present disclosure provides a method and device for accessing a web application.
  • a method for accessing a web application includes: determining a quick application installation package to be processed, wherein the quick application installation package is generated by the web application according to the quick application
  • the relevant signature authentication policy is packaged and obtained; the quick application installation package is authenticated according to the quick application relevant signature authentication policy; and after the authentication is passed, the web application in the quick application installation package is run.
  • the quick application installation package includes: configuration information corresponding to at least one operating system.
  • the configuration information includes: a browser kernel startup policy corresponding to the operating system;
  • Running the web application in the quick application installation package includes: selecting a target browser kernel startup strategy corresponding to the operating system in the current device from at least one of the browser kernel startup strategies; following the target The browser kernel startup policy starts the browser kernel in the current device; calling the browser kernel to run the web application in the quick application installation package.
  • the configuration information also includes: key mapping relationships corresponding to the operating system; and calling the browser kernel to run the web application in the quick application installation package.
  • Processing includes: obtaining key instructions for the web application; determining the execution command corresponding to the key instructions according to the key instructions and the key mapping relationship corresponding to the operating system in the current device; calling the browser The kernel executes the web application program according to the execution command.
  • the invoking the browser kernel to execute the web application in accordance with the execution command includes: determining whether the execution command is a shutdown command for the web application; When the execution command is a non-closing command, the browser kernel is called to execute the web application program according to the execution command; when the execution command is a closing command, the browser kernel is called to run in the background.
  • the command executes the web application program, so that when the opening command is obtained, the browser kernel is called to execute the web application program according to the foreground running command.
  • the web application includes: at least one browser UA and a corresponding page display strategy; the calling of the browser kernel to the web application in the quick application installation package
  • the program performs operation processing, and further includes: sending at least one browser UA to the browser core; receiving a target browser UA sent by the browser core, wherein the target browser UA exists in at least one of the browser UAs.
  • sending the page display policy corresponding to the target browser UA to the browser kernel so as to call the browser kernel to display the page in the web application program according to the page display policy.
  • determining the quick application installation package to be processed includes: receiving a run request, wherein the run request includes: an identification; determining the type of the quick application installation package corresponding to the identification; wherein , when the type is the first type, it means that the quick application installation package is packaged by the web application according to the quick application related signature authentication policy; when the type is the first type, the quick application installation package is used as the Describe the pending quick app installation package.
  • a device for accessing a web application includes: a determining module for determining a quick application installation package to be processed, wherein the quick application installation package is composed of The web application is packaged according to the quick application-related signature authentication policy; the first processing module is used to authenticate the quick application installation package according to the quick application-related signature authentication policy; the second processing module is used to perform authentication after passing the authentication. Run the web application in the quick application installation package.
  • the quick application installation package includes: configuration information corresponding to at least one operating system, and the configuration information includes: a browser kernel startup policy corresponding to the operating system;
  • the second The processing module includes: a selection unit, a first processing unit and a second processing unit; the selection unit is used to select a target browser kernel corresponding to the operating system in the current device to start from at least one of the browser kernel startup strategies. Strategy; the first processing unit is used to start the browser kernel in the current device according to the target browser kernel startup strategy; the second processing unit is used to call the browser kernel to start the browser kernel on the fast device.
  • the web application in the application installation package is used for execution processing.
  • the configuration information also includes: key mapping relationships corresponding to the operating system; the second processing unit is specifically configured to obtain key instructions for the web application; according to the The key command and the key mapping relationship corresponding to the operating system in the current device determine the execution command corresponding to the key command; the browser kernel is called to execute the web application program according to the execution command.
  • the second processing unit is specifically configured to determine whether the execution command is a closing command for the web application; when the execution command is a non-closing command, call the browser The kernel executes the web application program according to the execution command; when the execution command is a shutdown command, the browser kernel is called to execute the web application program according to the background running command, so as to obtain the When the command is turned on, the browser kernel is called to execute the web application program according to the foreground running command.
  • the web application includes: at least one browser UA and a corresponding page display policy; the second processing module is also configured to send at least one browser UA to The browser kernel; receives the target browser UA sent by the browser kernel, wherein the target browser UA exists in at least one of the browser UAs; and displays the page display policy corresponding to the target browser UA. Sent to the browser kernel to call the browser kernel to display the page in the web application program according to the page display policy.
  • the determining module is specifically configured to receive a running request, where the running request includes: an identification; determining the type of the quick application installation package corresponding to the identification; wherein the type is When the first type is used, it means that the quick application installation package is packaged by the web application in accordance with the quick application-related signature authentication policy; when the type is the first type, the quick application installation package is used as the to-be-processed quick application installation package. Apply the installation package.
  • an electronic device including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to Implement the access method of the web application as described in the first aspect.
  • a non-transitory computer-readable storage medium which when instructions in the storage medium are executed by a processor, enables the processor to execute the web page as described in the first aspect. How to access the application.
  • Figure 1 is a flow chart of a web application access method according to an embodiment of the present disclosure
  • Figure 2 is a flow chart of a web application access method according to another embodiment of the present disclosure.
  • Figure 3 is a schematic structural diagram of a web application access device according to an embodiment of the present disclosure.
  • FIG. 4 is a structural block diagram of an electronic device according to an exemplary embodiment of the present disclosure.
  • the above solution is difficult to apply to television terminal equipment, resulting in poor applicability of web applications and a small number of applications on the television terminal equipment.
  • embodiments of the present disclosure provide methods and devices for accessing web applications.
  • FIG. 1 is a flow chart of a web application access method according to an embodiment of the present disclosure.
  • the access method of the web application in the embodiment of the present disclosure is executed by the access device of the web application.
  • the access device of the web application can be implemented by software and/or hardware.
  • the program access device may be configured in an electronic device, which may include a mobile terminal (such as a mobile phone), a tablet computer, and other terminal devices with a display screen and a browser.
  • the software is such as a browser on the terminal device, etc.
  • the data transmission method includes the following steps:
  • Step 101 Determine the quick application installation package to be processed, where the quick application installation package is packaged by the web application in accordance with the signature authentication policy related to the quick application.
  • the process of the electronic device performing step 101 may be, for example, receiving a run request, where the run request includes: an identifier; determining the type of the quick app installation package corresponding to the identifier; where the type is the first type
  • the quick application installation package is packaged by the web application according to the signature authentication policy related to the quick application; when the type is the first type, the quick application installation package is used as the quick application installation package to be processed.
  • the identification of the quick application installation package can uniquely identify the quick application installation package.
  • the identifier can be the name, number, etc. of the quick app installation package. It can be set according to actual needs and is not specifically limited here.
  • the quick app installation package includes: configuration information corresponding to at least one operating system, where the configuration information includes: a browser kernel startup policy corresponding to the operating system and a key mapping relationship corresponding to the operating system.
  • the web application includes: at least one browser UA and a corresponding page display strategy.
  • Step 102 Perform authentication processing on the quick application installation package according to the signature authentication policy related to the quick application.
  • the first type of quick application installation package is packaged by a web application in accordance with the quick application related signature authentication policy.
  • the first type of quick application installation package is authenticated in accordance with the quick application related signature authentication policy. If the authentication fails, , indicating that the quick app installation package may be forged or tampered with. If the authentication is passed, the browser kernel can be called to run the web application in the quick app installation package.
  • Step 103 After passing the authentication, run the web application in the quick application installation package.
  • a target browser kernel startup strategy corresponding to the operating system in the current device is selected from a variety of browser kernel startup strategies, and the browser kernel of the current device is started according to the target browser kernel startup strategy.
  • the key mapping relationship corresponding to the operating system in the current device determines the execution command corresponding to the key command, and calls the browser kernel to run the web application in the quick application installation package according to the execution command.
  • the access method of the web application in the embodiment of the present disclosure determines the quick application installation package to be processed, wherein the quick application installation package is packaged by the web application in accordance with the quick application related signature authentication policy; the quick application installation package is packaged according to the quick application related signature authentication policy; Apply the relevant signature authentication policy for authentication processing; after passing the authentication, run the web application in the quick application installation package, so that the web application can be packaged into a quick application, and the quick application can be processed according to the signature authentication policy related to the quick application.
  • the installation package performs authentication processing and runs the web application to prevent users from entering the link address of the web application in the browser on the device, or by clicking on the entry address of the web application on the page, thereby improving the security of the web application on the device. Usage efficiency enables web applications to be applied to TV terminal devices, etc., and increases the number of applications on TV terminal devices.
  • Figure 2 is a flow chart of a web application access method according to another embodiment of the present disclosure.
  • the access method of the web application includes the following steps:
  • Step 201 Determine the quick application installation package to be processed, where the quick application installation package is packaged by the web application in accordance with the signature authentication policy related to the quick application.
  • the quick app installation package includes: configuration information corresponding to at least one operating system, where the configuration information includes: a browser kernel startup policy corresponding to the operating system.
  • Step 202 Perform authentication processing on the quick application installation package according to the signature authentication policy related to the quick application.
  • Step 203 Select a target browser kernel startup strategy corresponding to the operating system in the current device from at least one browser kernel startup strategy.
  • the quick application installation package includes browser kernel startup strategies corresponding to multiple operating systems, for example, browser kernel startup strategy A, browser kernel startup strategy B, browser kernel startup strategy According to the browser kernel startup policy C, according to the operating system in the current device, determine the corresponding target browser kernel startup policy to be the browser kernel startup policy C.
  • Step 204 Start the browser kernel in the current device according to the target browser kernel startup policy.
  • Step 205 Call the browser kernel to run the web application in the quick application installation package.
  • the electronic device performs step 205, for example, by obtaining key instructions for the web application; determining the execution command corresponding to the key instructions according to the key instructions and the key mapping relationship corresponding to the operating system in the current device; Call the browser kernel to execute the web application according to the execution command.
  • the key instructions may include: up key, down key, left key, right key, confirm, return and other keys.
  • the key values of the key instructions may be different in different operating systems. According to the key mapping relationship corresponding to the operating system in the current device, the key values of the key instructions are adapted, that is, the key values of the key instructions are re-adapted. It is defined as the key value corresponding to the operating system. According to the redefined key value, the execution command corresponding to the key command is determined to call the browser kernel to execute the web application program according to the execution command.
  • the key command is, for example, the up key.
  • the key value of the up key is adapted according to the key mapping relationship corresponding to the operating system in the current device. For example, the key value is defined as 39, and the corresponding key command is determined based on the key value 39.
  • the execution command is "up”, and the browser kernel is called to execute the web application according to "up”.
  • the electronic device calls the browser kernel to execute the web application according to the execution command.
  • the process may be to determine whether the execution command is a closing command for the web application; when the execution command is a non-closing command, The browser kernel is called to execute the web application according to the execution command; when the execution command is a close command, the browser kernel is called to execute the web application according to the background running command, so that when the opening command is obtained, the browser is called The kernel executes the web application according to the foreground running command.
  • the browser kernel when the execution command corresponding to the key command is a close command, for example, "return", the browser kernel is called to run the web application in the background.
  • the browser kernel can be quickly called to follow the foreground command. Run commands to execute web applications and improve operating efficiency.
  • the web application includes: at least one browser UA and a corresponding page display policy.
  • the process of the electronic device calling the browser kernel to run and process the web application in the quick application installation package may also include, for example, sending at least one browser UA to the browser kernel; receiving the target browser UA sent by the browser kernel, where , the target browser UA exists in at least one browser UA; the page display policy corresponding to the target browser UA is sent to the browser kernel, so as to call the browser kernel to display the page in the web application according to the page display policy.
  • the browser UA (User Agent) is used to distinguish different browsers.
  • the browser UA can be the browser name, browser version number, etc.
  • step 201 and step 202 For detailed description of step 201 and step 202, reference may be made to the description of step 101 and step 102 in the embodiment shown in FIG. 1, which will not be described in detail here.
  • the access method of the web application in the embodiment of the present disclosure determines the quick application installation package to be processed, wherein the quick application installation package is packaged by the web application in accordance with the quick application related signature authentication policy; the quick application installation package is packaged in accordance with the quick application related signature authentication policy.
  • Apply relevant signature authentication policies for authentication processing select the target browser kernel startup policy corresponding to the operating system in the current device from at least one browser kernel startup policy; start the browser kernel in the current device according to the target browser kernel startup policy ; Call the browser kernel to run and process the web application in the quick application installation package, so that the web application can be packaged into a quick application, and the quick application installation package can be authenticated according to the signature authentication policy related to the quick application, and the web application can be authenticated.
  • the program is run and processed to prevent the user from entering the link address of the web application in the browser of the device, or by clicking the entry address of the web application on the page, thereby improving the efficiency of using the web application on the device and making the web application applicable in TV terminal equipment, etc., and increase the number of applications on TV terminal equipment.
  • Figure 3 is a schematic structural diagram of a web application access device according to an embodiment of the present disclosure.
  • the access device of the web application may include: a determination module 301, a first processing module 302 and a second processing module 303; wherein,
  • the determination module 301 is used to determine the quick application installation package to be processed, wherein the quick application installation package is packaged by the web application in accordance with the quick application related signature authentication policy;
  • the first processing module 302 is used to authenticate the quick application installation package according to the quick application-related signature authentication policy
  • the second processing module 303 is configured to run the web application in the quick application installation package after passing the authentication.
  • the quick application installation package includes: configuration information corresponding to at least one operating system, and the configuration information includes: a browser kernel startup policy corresponding to the operating system;
  • the second The processing module 303 includes: a selection unit, a first processing unit and a second processing unit; the selection unit is used to select a target browser kernel corresponding to the operating system in the current device from at least one of the browser kernel startup strategies. startup strategy; the first processing unit is used to start the browser kernel in the current device according to the target browser kernel startup strategy; the second processing unit is used to call the browser kernel to The web application in the quick application installation package is executed.
  • the configuration information also includes: key mapping relationships corresponding to the operating system; the second processing unit is specifically configured to obtain key instructions for the web application; according to the The key instructions and the key mapping relationship corresponding to the operating system in the current device determine the execution command corresponding to the key instructions; the browser kernel is called to execute the web application program according to the execution command.
  • the second processing unit is specifically configured to determine whether the execution command is a closing command for the web application; when the execution command is a non-closing command, call the browser The kernel executes the web application program according to the execution command; when the execution command is a shutdown command, the browser kernel is called to execute the web application program according to the background running command, so as to obtain the When the command is turned on, the browser kernel is called to execute the web application program according to the foreground running command.
  • the web application includes: at least one browser UA and a corresponding page display policy; the second processing module 303 is also configured to send at least one browser UA to the browser kernel; receiving the target browser UA sent by the browser kernel, where the target browser UA exists in at least one of the browser UAs; displaying the page corresponding to the target browser UA
  • the policy is sent to the browser kernel to call the browser kernel to display the page in the web application program according to the page display policy.
  • the determination module 301 is specifically configured to receive a run request, where the run request includes: an identifier; determine the type of the quick application installation package corresponding to the identifier; wherein the type When the type is the first type, it means that the quick application installation package is packaged by the web application in accordance with the signature authentication policy related to the quick application; when the type is the first type, the quick application installation package is used as the to-be-processed Quick application installation package.
  • the access device of the web application program in the embodiment of the present disclosure determines the quick application installation package to be processed, wherein the quick application installation package is packaged by the web application in accordance with the quick application related signature authentication policy; the quick application installation package is packaged in accordance with the quick application installation package. Apply the relevant signature authentication policy for authentication processing; after passing the authentication, run the web application in the quick application installation package, so that the web application can be packaged into a quick application, and the quick application can be processed according to the signature authentication policy related to the quick application.
  • the installation package performs authentication processing and runs the web application to prevent users from entering the link address of the web application in the browser on the device, or by clicking on the entry address of the web application on the page, thereby improving the security of the web application on the device. Usage efficiency enables web applications to be applied to TV terminal devices, etc., and increases the number of applications on TV terminal devices.
  • an electronic device including: a processor; and a memory for storing instructions executable by the processor, wherein the processor is configured to execute the instructions to implement access to the web application as above method.
  • the present disclosure also proposes a storage medium.
  • the electronic device When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is enabled to execute the above access method of the web application.
  • the present disclosure also provides a computer program product.
  • the electronic device when the computer program product is executed by the processor of the electronic device, the electronic device is able to execute the above access method of the web application program.
  • FIG. 4 is a structural block diagram of an electronic device according to an exemplary embodiment.
  • the electronic device shown in FIG. 4 is only an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
  • the above-mentioned electronic device 1100 includes:
  • the memory 1110 and the processor 1120 are connected to the bus 1130 of different components (including the memory 1110 and the processor 1120).
  • the memory 1110 stores a computer program.
  • the processor 1120 executes the program, the web application program described in the embodiment of the present disclosure is implemented. access method.
  • Bus 1130 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics accelerated port, a processor, or a local bus using any of a variety of bus structures.
  • these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect ( PCI) bus.
  • ISA Industry Standard Architecture
  • MAC Micro Channel Architecture
  • VESA Video Electronics Standards Association
  • PCI Peripheral Component Interconnect
  • Electronic device 1100 typically includes a variety of electronic device-readable media. These media can be any available media that can be accessed by electronic device 1100, including volatile and nonvolatile media, removable and non-removable media.
  • Memory 1110 may also include computer system readable media in the form of volatile memory, such as random access memory (RAM) 1140 and/or cache memory 1150 .
  • Electronic device 1100 may further include other removable/non-removable, volatile/non-volatile computer system storage media.
  • storage system 1160 may be used to read and write to non-removable, non-volatile magnetic media (not shown in Figure 4 and commonly referred to as a "hard drive").
  • a disk drive may be provided for reading and writing removable non-volatile disks (e.g., "floppy disks"), and for removable non-volatile optical disks (e.g., CD-ROM, DVD-ROM).
  • each drive may be connected to bus 1130 through one or more data media interfaces.
  • the memory 1110 may include at least one program product having a set (eg, at least one) of program modules configured to perform the functions of embodiments of the present disclosure.
  • a program/utility 1180 having a set of (at least one) program modules 1170 may be stored, for example, in memory 1110 , each of these examples or some combination may include the implementation of a network environment.
  • Program modules 1170 generally perform functions and/or methods in the embodiments described in this disclosure.
  • Electronic device 1100 may also communicate with one or more external devices 1190 (e.g., keyboard, pointing device, display 1191 , etc.), with one or more devices that enable a user to interact with electronic device 1100 , and/or with Any device (eg, network card, modem, etc.) that enables the electronic device 1100 to communicate with one or more other computing devices. This communication may occur through an input/output (I/O) interface 1192.
  • the electronic device 1100 may also communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) through a network adapter 1193. As shown in FIG.
  • network adapter 1193 communicates with other modules of electronic device 1100 via bus 1130 .
  • other hardware and/or software modules may be used in conjunction with electronic device 1100, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tapes drives and data backup storage systems, etc.
  • the processor 1120 executes various functional applications and data processing by running programs stored in the memory 1110 .
  • a computer-readable storage medium may be any tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above.
  • a computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device .
  • Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the foregoing.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The present disclosure provides a web application program access method and apparatus, relating to the technical field of web application program development. The method comprises: determining a quick application installation package to be processed, the quick application installation package being obtained by means of packaging a web application program according to a quick application related signature authentication policy; according to the quick application related signature authentication policy, performing authentication processing on the quick application installation package; and after the authentication is passed, running the web application program in the quick application installation package.

Description

web应用程序的接入方法及装置Web application access method and device 技术领域Technical field
本公开涉及web应用程序开发技术领域,尤其涉及一种web应用程序的接入方法及装置。The present disclosure relates to the technical field of web application development, and in particular, to a method and device for accessing a web application.
背景技术Background technique
目前,针对设备中的web应用程序,需要用户在设备中的浏览器中输入web应用程序的链接地址,或者通过点击页面上web应用程序的入口地址,以根据链接地址或者入口地址发送页面请求,获取web应用程序的页面并进行显示。Currently, for web applications on the device, users are required to enter the link address of the web application in the browser on the device, or click on the entry address of the web application on the page to send a page request based on the link address or entry address. Get the page of the web application and display it.
上述方案难以适用于电视终端设备,导致web应用程序的适用性差,且导致电视终端设备上的应用程序的数量较少。The above solution is difficult to apply to television terminal equipment, resulting in poor applicability of web applications and a small number of applications on the television terminal equipment.
发明内容Contents of the invention
本公开提供一种web应用程序的接入方法及装置。The present disclosure provides a method and device for accessing a web application.
根据本公开实施例的第一方面,提供一种web应用程序的接入方法,所述方法包括:确定待处理的快应用安装包,其中,所述快应用安装包由web应用程序按照快应用相关签名认证策略打包得到;对所述快应用安装包按照快应用相关签名认证策略进行认证处理;在认证通过后,对所述快应用安装包中的所述web应用程序进行运行处理。According to a first aspect of an embodiment of the present disclosure, a method for accessing a web application is provided. The method includes: determining a quick application installation package to be processed, wherein the quick application installation package is generated by the web application according to the quick application The relevant signature authentication policy is packaged and obtained; the quick application installation package is authenticated according to the quick application relevant signature authentication policy; and after the authentication is passed, the web application in the quick application installation package is run.
在本公开的一个实施例中,所述快应用安装包中包括:至少一种操作系统对应的配置信息,所述配置信息包括:所述操作系统对应的浏览器内核启动策略;所述对所述快应用安装包中的所述web应用程序进行运行处理,包括:从至少一种所述浏览器内核启动策略中,选择当前设备中操作系统对应的目标浏览器内核启动策略;按照所述目标浏览器内核启动策略启动所述当前设备中的浏览器内核;调用所述浏览器内核对所述快应用安装包中的所述web应用程序进行运行处理。In one embodiment of the present disclosure, the quick application installation package includes: configuration information corresponding to at least one operating system. The configuration information includes: a browser kernel startup policy corresponding to the operating system; Running the web application in the quick application installation package includes: selecting a target browser kernel startup strategy corresponding to the operating system in the current device from at least one of the browser kernel startup strategies; following the target The browser kernel startup policy starts the browser kernel in the current device; calling the browser kernel to run the web application in the quick application installation package.
在本公开的一个实施例中,所述配置信息还包括:所述操作系统对应的按键映射关系;所述调用所述浏览器内核对所述快应用安装包中的所述web应用程序进行运行处理,包括:获取针对所述web应用程序的按键指令;根据所述按键指令,以及所述当前设备中操作系统对应的按键映射关系,确定所述按键指令对应的执行命令;调用所述浏览器内核按照所述执行命令对所述web应用程序进行执行处理。In one embodiment of the present disclosure, the configuration information also includes: key mapping relationships corresponding to the operating system; and calling the browser kernel to run the web application in the quick application installation package. Processing includes: obtaining key instructions for the web application; determining the execution command corresponding to the key instructions according to the key instructions and the key mapping relationship corresponding to the operating system in the current device; calling the browser The kernel executes the web application program according to the execution command.
在本公开的一个实施例中,所述调用所述浏览器内核按照所述执行命令对所述web应用程序进行执行处理,包括:确定所述执行命令是否为针对web应用程序的关闭命令;在所述执行命令为非关闭命令时,调用所述浏览器内核按照所述执行命令对所述web应用程序进行执行处理;在所述执行命令为关闭命令时,调用所述浏览器内核按照后台运行命令对所述web应用程序进行执行处理,以在获取到开启命令时,调用所述浏览器内核按照前台运行命令对所述web应用程序进行执行处理。In one embodiment of the present disclosure, the invoking the browser kernel to execute the web application in accordance with the execution command includes: determining whether the execution command is a shutdown command for the web application; When the execution command is a non-closing command, the browser kernel is called to execute the web application program according to the execution command; when the execution command is a closing command, the browser kernel is called to run in the background. The command executes the web application program, so that when the opening command is obtained, the browser kernel is called to execute the web application program according to the foreground running command.
在本公开的一个实施例中,所述web应用程序中包括:至少一个浏览器UA以及对应的页面显示策略;所述调用所述浏览器内核对所述快应用安装包中的所述web应用程序进行运行处理,还包括:将至少一个所述浏览器UA发送给所述浏览器内核;接收所述浏览器内核发送的目标浏览器UA,其中,所述目标浏览器UA存在于至少一个所述浏览器UA中;将所述目标浏览器UA对应的页面显示策略发送给所述浏览器内核,以调用所述浏览器内核按照所述页面显示策略对web应用程序中的页面进行显示处理。In one embodiment of the present disclosure, the web application includes: at least one browser UA and a corresponding page display strategy; the calling of the browser kernel to the web application in the quick application installation package The program performs operation processing, and further includes: sending at least one browser UA to the browser core; receiving a target browser UA sent by the browser core, wherein the target browser UA exists in at least one of the browser UAs. In the browser UA; sending the page display policy corresponding to the target browser UA to the browser kernel, so as to call the browser kernel to display the page in the web application program according to the page display policy.
在本公开的一个实施例中,所述确定待处理的快应用安装包,包括:接收运行请求,其中,所述运行请求包括:标识;确定所述标识对应的快应用安装包的类型;其中,所述类型为第一类型时,表示所述快应用安装包由web应用程序按照快应用相关签名认证策略打包得到;在所述类型为第一类型时,将所述快应用安装包作为所述待处理的快应用安装包。In one embodiment of the present disclosure, determining the quick application installation package to be processed includes: receiving a run request, wherein the run request includes: an identification; determining the type of the quick application installation package corresponding to the identification; wherein , when the type is the first type, it means that the quick application installation package is packaged by the web application according to the quick application related signature authentication policy; when the type is the first type, the quick application installation package is used as the Describe the pending quick app installation package.
根据本公开实施例的第二方面,还提供一种web应用程序的接入装置,所述装置包括:确定模块,用于确定待处理的快应用安装包,其中,所述快应用安装包由web应用程序按照快应用相关签名认证策略打包得到;第一处理模块,用于对所述快应用安装包按照快应用相关签名认证策略进行认证处理;第二处理模块,用于在认证通过后,对所述快应用安装包中的所述web应用程序进行运行处理。According to a second aspect of the embodiment of the present disclosure, a device for accessing a web application is also provided. The device includes: a determining module for determining a quick application installation package to be processed, wherein the quick application installation package is composed of The web application is packaged according to the quick application-related signature authentication policy; the first processing module is used to authenticate the quick application installation package according to the quick application-related signature authentication policy; the second processing module is used to perform authentication after passing the authentication. Run the web application in the quick application installation package.
在本公开的一个实施例中,所述快应用安装包中包括:至少一种操作系统对应的配置信息,所述配置信息包括:所述操作系统对应的浏览器内核启动策略;所述第二处理模块包括:选择单元,第一处理单元和第二处理单元;所述选择单元,用于从至少一种所述浏览器内核启动策略中,选择当前设备中操作系统对应的目标浏览器内核启动策略;所述第一处理单元,用于按照所述目标浏览器内核启动策略启动所述当前设备中的浏览器内核;所述第二处理单元,用于调用所述浏览器内核对所述快应用安装包中的所述web应用程序进行运行处理。In one embodiment of the present disclosure, the quick application installation package includes: configuration information corresponding to at least one operating system, and the configuration information includes: a browser kernel startup policy corresponding to the operating system; the second The processing module includes: a selection unit, a first processing unit and a second processing unit; the selection unit is used to select a target browser kernel corresponding to the operating system in the current device to start from at least one of the browser kernel startup strategies. Strategy; the first processing unit is used to start the browser kernel in the current device according to the target browser kernel startup strategy; the second processing unit is used to call the browser kernel to start the browser kernel on the fast device. The web application in the application installation package is used for execution processing.
在本公开的一个实施例中,所述配置信息还包括:所述操作系统对应的按键映射关系;所述第二处理单元具体用于,获取针对所述web应用程序的按键指令;根据所述按键指令, 以及所述当前设备中操作系统对应的按键映射关系,确定所述按键指令对应的执行命令;调用所述浏览器内核按照所述执行命令对所述web应用程序进行执行处理。In one embodiment of the present disclosure, the configuration information also includes: key mapping relationships corresponding to the operating system; the second processing unit is specifically configured to obtain key instructions for the web application; according to the The key command and the key mapping relationship corresponding to the operating system in the current device determine the execution command corresponding to the key command; the browser kernel is called to execute the web application program according to the execution command.
在本公开的一个实施例中,所述第二处理单元具体用于,确定所述执行命令是否为针对web应用程序的关闭命令;在所述执行命令为非关闭命令时,调用所述浏览器内核按照所述执行命令对所述web应用程序进行执行处理;在所述执行命令为关闭命令时,调用所述浏览器内核按照后台运行命令对所述web应用程序进行执行处理,以在获取到开启命令时,调用所述浏览器内核按照前台运行命令对所述web应用程序进行执行处理。In one embodiment of the present disclosure, the second processing unit is specifically configured to determine whether the execution command is a closing command for the web application; when the execution command is a non-closing command, call the browser The kernel executes the web application program according to the execution command; when the execution command is a shutdown command, the browser kernel is called to execute the web application program according to the background running command, so as to obtain the When the command is turned on, the browser kernel is called to execute the web application program according to the foreground running command.
在本公开的一个实施例中,所述web应用程序中包括:至少一个浏览器UA以及对应的页面显示策略;所述第二处理模块,还用于,将至少一个所述浏览器UA发送给所述浏览器内核;接收所述浏览器内核发送的目标浏览器UA,其中,所述目标浏览器UA存在于至少一个所述浏览器UA中;将所述目标浏览器UA对应的页面显示策略发送给所述浏览器内核,以调用所述浏览器内核按照所述页面显示策略对web应用程序中的页面进行显示处理。In one embodiment of the present disclosure, the web application includes: at least one browser UA and a corresponding page display policy; the second processing module is also configured to send at least one browser UA to The browser kernel; receives the target browser UA sent by the browser kernel, wherein the target browser UA exists in at least one of the browser UAs; and displays the page display policy corresponding to the target browser UA. Sent to the browser kernel to call the browser kernel to display the page in the web application program according to the page display policy.
在本公开的一个实施例中,所述确定模块具体用于,接收运行请求,其中,所述运行请求包括:标识;确定所述标识对应的快应用安装包的类型;其中,所述类型为第一类型时,表示所述快应用安装包由web应用程序按照快应用相关签名认证策略打包得到;在所述类型为第一类型时,将所述快应用安装包作为所述待处理的快应用安装包。In one embodiment of the present disclosure, the determining module is specifically configured to receive a running request, where the running request includes: an identification; determining the type of the quick application installation package corresponding to the identification; wherein the type is When the first type is used, it means that the quick application installation package is packaged by the web application in accordance with the quick application-related signature authentication policy; when the type is the first type, the quick application installation package is used as the to-be-processed quick application installation package. Apply the installation package.
根据本公开实施例的第三方面,还提供一种电子设备,包括:处理器;用于存储所述处理器可执行指令的存储器;其中,所述处理器被配置为执行所述指令,以实现如第一方面所述的web应用程序的接入方法。According to a third aspect of an embodiment of the present disclosure, an electronic device is further provided, including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to Implement the access method of the web application as described in the first aspect.
根据本公开实施例的第四方面,还提供一种非临时性计算机可读存储介质,当所述存储介质中的指令由处理器执行时,使得处理器能够执行如第一方面所述的web应用程序的接入方法。According to a fourth aspect of the embodiment of the present disclosure, a non-transitory computer-readable storage medium is also provided, which when instructions in the storage medium are executed by a processor, enables the processor to execute the web page as described in the first aspect. How to access the application.
本公开附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本公开的实践了解到。Additional aspects and advantages of the disclosure will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the disclosure.
附图说明Description of the drawings
本公开上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present disclosure will become apparent and readily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
图1为本公开一个实施例的web应用程序的接入方法的流程图;Figure 1 is a flow chart of a web application access method according to an embodiment of the present disclosure;
图2为本公开另一个实施例的web应用程序的接入方法的流程图;Figure 2 is a flow chart of a web application access method according to another embodiment of the present disclosure;
图3为本公开一个实施例的web应用程序的接入装置的结构示意图;Figure 3 is a schematic structural diagram of a web application access device according to an embodiment of the present disclosure;
图4为根据本公开一示例性实施例示出的一种电子设备的结构框图。FIG. 4 is a structural block diagram of an electronic device according to an exemplary embodiment of the present disclosure.
具体实施方式Detailed ways
下面详细描述本公开的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本公开,而不能理解为对本公开的限制。Embodiments of the present disclosure are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain the present disclosure and are not to be construed as limitations of the present disclosure.
目前,针对设备中的web应用程序,需要用户在设备中的浏览器中输入web应用程序的链接地址,或者通过点击页面上web应用程序的入口地址,以根据链接地址或者入口地址发送页面请求,获取web应用程序的页面并进行显示。Currently, for web applications on the device, users are required to enter the link address of the web application in the browser on the device, or click on the entry address of the web application on the page to send a page request based on the link address or entry address. Get the page of the web application and display it.
上述方案难以适用于电视终端设备,导致web应用程序的适用性差,且导致电视终端设备上的应用程序的数量较少。The above solution is difficult to apply to television terminal equipment, resulting in poor applicability of web applications and a small number of applications on the television terminal equipment.
针对这一问题,本公开实施例提供了web应用程序的接入方法及装置。To address this problem, embodiments of the present disclosure provide methods and devices for accessing web applications.
下面参考附图描述本公开实施例的web应用程序的接入方法及装置。The following describes the web application access method and device according to the embodiments of the present disclosure with reference to the accompanying drawings.
图1为本公开一个实施例的web应用程序的接入方法的流程图。其中,需要说明的是,本公开的实施例的web应用程序的接入方法由web应用程序的接入装置执行,该web应用程序的接入装置可以由软件和/或硬件实现,该web应用程序的接入装置可以配置在电子设备中,该电子设备可以包括移动终端(如手机)、平板电脑等具有显示屏以及浏览器的终端设备。其中,软件例如终端设备上的浏览器等。如图1所示,该数据传输方法包括以下步骤:Figure 1 is a flow chart of a web application access method according to an embodiment of the present disclosure. Among them, it should be noted that the access method of the web application in the embodiment of the present disclosure is executed by the access device of the web application. The access device of the web application can be implemented by software and/or hardware. The web application The program access device may be configured in an electronic device, which may include a mobile terminal (such as a mobile phone), a tablet computer, and other terminal devices with a display screen and a browser. Among them, the software is such as a browser on the terminal device, etc. As shown in Figure 1, the data transmission method includes the following steps:
步骤101,确定待处理的快应用安装包,其中,快应用安装包由web应用程序按照快应用相关签名认证策略打包得到。Step 101: Determine the quick application installation package to be processed, where the quick application installation package is packaged by the web application in accordance with the signature authentication policy related to the quick application.
在本公开的一些实施例中,电子设备执行步骤101的过程例如可以为,接收运行请求,其中,运行请求包括:标识;确定标识对应的快应用安装包的类型;其中,类型为第一类型时,表示快应用安装包由web应用程序按照快应用相关签名认证策略打包得到;在类型为第一类型时,将快应用安装包作为待处理的快应用安装包。In some embodiments of the present disclosure, the process of the electronic device performing step 101 may be, for example, receiving a run request, where the run request includes: an identifier; determining the type of the quick app installation package corresponding to the identifier; where the type is the first type When , it means that the quick application installation package is packaged by the web application according to the signature authentication policy related to the quick application; when the type is the first type, the quick application installation package is used as the quick application installation package to be processed.
在一些实施例中,标识为快应用安装包的标识,可以唯一标识快应用安装包。例如,标识可以为快应用安装包的名称、编号等,可以根据实际需要进行设置,此处不做具体限定。In some embodiments, the identification of the quick application installation package can uniquely identify the quick application installation package. For example, the identifier can be the name, number, etc. of the quick app installation package. It can be set according to actual needs and is not specifically limited here.
在一些实施例中,快应用安装包中包括:至少一种操作系统对应的配置信息,其中,配置信息包括:操作系统对应的浏览器内核启动策略和操作系统对应的按键映射关系。其中,web应用程序中包括:至少一个浏览器UA以及对应的页面显示策略。In some embodiments, the quick app installation package includes: configuration information corresponding to at least one operating system, where the configuration information includes: a browser kernel startup policy corresponding to the operating system and a key mapping relationship corresponding to the operating system. Among them, the web application includes: at least one browser UA and a corresponding page display strategy.
步骤102,对快应用安装包按照快应用相关签名认证策略进行认证处理。Step 102: Perform authentication processing on the quick application installation package according to the signature authentication policy related to the quick application.
在一些实施例中,第一类型的快应用安装包由web应用程序按照快应用相关签名认证策略打包得到,对第一类型的快应用安装包按照快应用相关签名认证策略进行认证,认证不通过,说明快应用安装包有伪造或者篡改的可能,认证通过,可以调用浏览器内核对快应用安装包中的web应用程序进行运行处理。In some embodiments, the first type of quick application installation package is packaged by a web application in accordance with the quick application related signature authentication policy. The first type of quick application installation package is authenticated in accordance with the quick application related signature authentication policy. If the authentication fails, , indicating that the quick app installation package may be forged or tampered with. If the authentication is passed, the browser kernel can be called to run the web application in the quick app installation package.
步骤103,在认证通过后,对快应用安装包中的web应用程序进行运行处理。Step 103: After passing the authentication, run the web application in the quick application installation package.
在一些实施例中,从多种浏览器内核启动策略中,选择当前设备中操作系统对应的目标浏览器内核启动策略,按照目标浏览器内核启动策略启动当前设备的浏览器内核,根据按键指令及当前设备中操作系统对应的按键映射关系,确定按键指令对应的执行命令,调用浏览器内核按照执行命令对快应用安装包中的web应用程序进行运行处理。In some embodiments, a target browser kernel startup strategy corresponding to the operating system in the current device is selected from a variety of browser kernel startup strategies, and the browser kernel of the current device is started according to the target browser kernel startup strategy. According to key instructions and The key mapping relationship corresponding to the operating system in the current device determines the execution command corresponding to the key command, and calls the browser kernel to run the web application in the quick application installation package according to the execution command.
本公开实施例的web应用程序的接入方法,通过确定待处理的快应用安装包,其中,快应用安装包由web应用程序按照快应用相关签名认证策略打包得到;对快应用安装包按照快应用相关签名认证策略进行认证处理;在认证通过后,对快应用安装包中的web应用程序进行运行处理,从而能够将web应用程序打包成快应用,且按照快应用相关签名认证策略对快应用安装包进行认证处理,对web应用程序进行运行处理,避免用户在设备中的浏览器中输入web应用程序的链接地址,或者通过点击页面上web应用程序的入口地址,提高设备上web应用程序的使用效率,使得web应用程序能够适用于电视终端设备等,且提高电视终端设备上应用程序的数量。The access method of the web application in the embodiment of the present disclosure determines the quick application installation package to be processed, wherein the quick application installation package is packaged by the web application in accordance with the quick application related signature authentication policy; the quick application installation package is packaged according to the quick application related signature authentication policy; Apply the relevant signature authentication policy for authentication processing; after passing the authentication, run the web application in the quick application installation package, so that the web application can be packaged into a quick application, and the quick application can be processed according to the signature authentication policy related to the quick application. The installation package performs authentication processing and runs the web application to prevent users from entering the link address of the web application in the browser on the device, or by clicking on the entry address of the web application on the page, thereby improving the security of the web application on the device. Usage efficiency enables web applications to be applied to TV terminal devices, etc., and increases the number of applications on TV terminal devices.
图2为本公开另一个实施例的web应用程序的接入方法的流程图。Figure 2 is a flow chart of a web application access method according to another embodiment of the present disclosure.
如图2所示,该web应用程序的接入方法包括以下步骤:As shown in Figure 2, the access method of the web application includes the following steps:
步骤201,确定待处理的快应用安装包,其中,快应用安装包由web应用程序按照快应用相关签名认证策略打包得到。Step 201: Determine the quick application installation package to be processed, where the quick application installation package is packaged by the web application in accordance with the signature authentication policy related to the quick application.
其中,快应用安装包中包括:至少一种操作系统对应的配置信息,其中,配置信息包括:操作系统对应的浏览器内核启动策略。The quick app installation package includes: configuration information corresponding to at least one operating system, where the configuration information includes: a browser kernel startup policy corresponding to the operating system.
步骤202,对快应用安装包按照快应用相关签名认证策略进行认证处理。Step 202: Perform authentication processing on the quick application installation package according to the signature authentication policy related to the quick application.
步骤203,从至少一种浏览器内核启动策略中,选择当前设备中操作系统对应的目标浏览器内核启动策略。Step 203: Select a target browser kernel startup strategy corresponding to the operating system in the current device from at least one browser kernel startup strategy.
其中,不同的操作系统对应不同的浏览器内核启动策略,快应用安装包中包括多种操作系统对应的浏览器内核启动策略,例如,浏览器内核启动策略A、浏览器内核启动策略B、浏览器内核启动策略C,根据当前设备中操作系统,确定对应的目标浏览器内核启动策略为浏览器内核启动策略C。Among them, different operating systems correspond to different browser kernel startup strategies. The quick application installation package includes browser kernel startup strategies corresponding to multiple operating systems, for example, browser kernel startup strategy A, browser kernel startup strategy B, browser kernel startup strategy According to the browser kernel startup policy C, according to the operating system in the current device, determine the corresponding target browser kernel startup policy to be the browser kernel startup policy C.
步骤204,按照目标浏览器内核启动策略启动当前设备中的浏览器内核。Step 204: Start the browser kernel in the current device according to the target browser kernel startup policy.
步骤205,调用浏览器内核对快应用安装包中的web应用程序进行运行处理。Step 205: Call the browser kernel to run the web application in the quick application installation package.
在一些实施例中,电子设备执行步骤205的过程例如可以为,获取针对web应用程序的按键指令;根据按键指令,以及当前设备中操作系统对应的按键映射关系,确定按键指令对应的执行命令;调用浏览器内核按照执行命令对web应用程序进行执行处理。In some embodiments, the electronic device performs step 205, for example, by obtaining key instructions for the web application; determining the execution command corresponding to the key instructions according to the key instructions and the key mapping relationship corresponding to the operating system in the current device; Call the browser kernel to execute the web application according to the execution command.
其中,按键指令可以包括:上键、下键、左键、右键、确认、返回等按键。Among them, the key instructions may include: up key, down key, left key, right key, confirm, return and other keys.
在一些实施例中,不同的操作系统中,按键指令的键值可能不同,根据当前设备中操作系统对应的按键映射关系,对按键指令的键值进行适配,即对按键指令的键值重新定义为操作系统对应的键值,根据重新定义后的键值,确定确定按键指令对应的执行命令,以调用浏览器内核按照执行命令对web应用程序进行执行处理。In some embodiments, the key values of the key instructions may be different in different operating systems. According to the key mapping relationship corresponding to the operating system in the current device, the key values of the key instructions are adapted, that is, the key values of the key instructions are re-adapted. It is defined as the key value corresponding to the operating system. According to the redefined key value, the execution command corresponding to the key command is determined to call the browser kernel to execute the web application program according to the execution command.
在一些实施例中,按键指令例如为上键,根据当前设备中操作系统对应的按键映射关系,对上键的键值进行适配,例如定义键值为39,根据键值39确定按键指令对应的执行命令为“向上”,调用浏览器内核按照“向上”对web应用程序进行执行处理。In some embodiments, the key command is, for example, the up key. The key value of the up key is adapted according to the key mapping relationship corresponding to the operating system in the current device. For example, the key value is defined as 39, and the corresponding key command is determined based on the key value 39. The execution command is "up", and the browser kernel is called to execute the web application according to "up".
在一些实施例中,电子设备调用浏览器内核按照执行命令对web应用程序进行执行处理的过程例如可以为,确定执行命令是否为针对web应用程序的关闭命令;在执行命令为非关闭命令时,调用浏览器内核按照执行命令对web应用程序进行执行处理;在执行命令为关闭命令时,调用浏览器内核按照后台运行命令对web应用程序进行执行处理,以在获取到开启命令时,调用浏览器内核按照前台运行命令对web应用程序进行执行处理。In some embodiments, the electronic device calls the browser kernel to execute the web application according to the execution command. For example, the process may be to determine whether the execution command is a closing command for the web application; when the execution command is a non-closing command, The browser kernel is called to execute the web application according to the execution command; when the execution command is a close command, the browser kernel is called to execute the web application according to the background running command, so that when the opening command is obtained, the browser is called The kernel executes the web application according to the foreground running command.
在一些实施例中,在按键指令对应的执行命令为关闭命令时,例如,“返回”,调用浏览器内核将web应用程序后台运行,在获取到开启命令时,可以快速调用浏览器内核按照前台运行命令对web应用程序进行执行处理,提高运行效率。In some embodiments, when the execution command corresponding to the key command is a close command, for example, "return", the browser kernel is called to run the web application in the background. When the open command is obtained, the browser kernel can be quickly called to follow the foreground command. Run commands to execute web applications and improve operating efficiency.
在一些实施例中,web应用程序中包括:至少一个浏览器UA以及对应的页面显示策略。电子设备调用浏览器内核对快应用安装包中的web应用程序进行运行处理的过程例如还可以为,将至少一个浏览器UA发送给浏览器内核;接收浏览器内核发送的目标浏览器UA,其中,目标浏览器UA存在于至少一个浏览器UA中;将目标浏览器UA对应的页面显示策略发送给浏览器内核,以调用浏览器内核按照页面显示策略对web应用程序中的页面进行显示处理。In some embodiments, the web application includes: at least one browser UA and a corresponding page display policy. The process of the electronic device calling the browser kernel to run and process the web application in the quick application installation package may also include, for example, sending at least one browser UA to the browser kernel; receiving the target browser UA sent by the browser kernel, where , the target browser UA exists in at least one browser UA; the page display policy corresponding to the target browser UA is sent to the browser kernel, so as to call the browser kernel to display the page in the web application according to the page display policy.
其中,浏览器UA(User Agent)用于区分不同的浏览器,例如,浏览器UA可以为浏览器名称、浏览器版本号等。Among them, the browser UA (User Agent) is used to distinguish different browsers. For example, the browser UA can be the browser name, browser version number, etc.
其中,步骤201和步骤202的详细说明,可以参考图1所示实施例中步骤101和步骤102的说明,此处不再进行详细说明。For detailed description of step 201 and step 202, reference may be made to the description of step 101 and step 102 in the embodiment shown in FIG. 1, which will not be described in detail here.
本公开实施例的web应用程序的接入方法,通过确定待处理的快应用安装包,其中, 快应用安装包由web应用程序按照快应用相关签名认证策略打包得到;对快应用安装包按照快应用相关签名认证策略进行认证处理;从至少一种浏览器内核启动策略中,选择当前设备中操作系统对应的目标浏览器内核启动策略;按照目标浏览器内核启动策略启动当前设备中的浏览器内核;调用浏览器内核对快应用安装包中的web应用程序进行运行处理,从而能够将web应用程序打包成快应用,且按照快应用相关签名认证策略对快应用安装包进行认证处理,对web应用程序进行运行处理,避免用户在设备中的浏览器中输入web应用程序的链接地址,或者通过点击页面上web应用程序的入口地址,提高设备上web应用程序的使用效率,使得web应用程序能够适用于电视终端设备等,且提高电视终端设备上应用程序的数量。The access method of the web application in the embodiment of the present disclosure determines the quick application installation package to be processed, wherein the quick application installation package is packaged by the web application in accordance with the quick application related signature authentication policy; the quick application installation package is packaged in accordance with the quick application related signature authentication policy. Apply relevant signature authentication policies for authentication processing; select the target browser kernel startup policy corresponding to the operating system in the current device from at least one browser kernel startup policy; start the browser kernel in the current device according to the target browser kernel startup policy ; Call the browser kernel to run and process the web application in the quick application installation package, so that the web application can be packaged into a quick application, and the quick application installation package can be authenticated according to the signature authentication policy related to the quick application, and the web application can be authenticated. The program is run and processed to prevent the user from entering the link address of the web application in the browser of the device, or by clicking the entry address of the web application on the page, thereby improving the efficiency of using the web application on the device and making the web application applicable in TV terminal equipment, etc., and increase the number of applications on TV terminal equipment.
图3为本公开一个实施例的web应用程序的接入装置的结构示意图。Figure 3 is a schematic structural diagram of a web application access device according to an embodiment of the present disclosure.
如图3所示,该web应用程序的接入装置可以包括:确定模块301、第一处理模块302和第二处理模块303;其中,As shown in Figure 3, the access device of the web application may include: a determination module 301, a first processing module 302 and a second processing module 303; wherein,
确定模块301,用于确定待处理的快应用安装包,其中,所述快应用安装包由web应用程序按照快应用相关签名认证策略打包得到;The determination module 301 is used to determine the quick application installation package to be processed, wherein the quick application installation package is packaged by the web application in accordance with the quick application related signature authentication policy;
第一处理模块302,用于对所述快应用安装包按照快应用相关签名认证策略进行认证处理;The first processing module 302 is used to authenticate the quick application installation package according to the quick application-related signature authentication policy;
第二处理模块303,用于在认证通过后,对所述快应用安装包中的所述web应用程序进行运行处理。The second processing module 303 is configured to run the web application in the quick application installation package after passing the authentication.
在本公开的一个实施例中,所述快应用安装包中包括:至少一种操作系统对应的配置信息,所述配置信息包括:所述操作系统对应的浏览器内核启动策略;所述第二处理模块303包括:选择单元,第一处理单元和第二处理单元;所述选择单元,用于从至少一种所述浏览器内核启动策略中,选择当前设备中操作系统对应的目标浏览器内核启动策略;所述第一处理单元,用于按照所述目标浏览器内核启动策略启动所述当前设备中的浏览器内核;所述第二处理单元,用于调用所述浏览器内核对所述快应用安装包中的所述web应用程序进行运行处理。In one embodiment of the present disclosure, the quick application installation package includes: configuration information corresponding to at least one operating system, and the configuration information includes: a browser kernel startup policy corresponding to the operating system; the second The processing module 303 includes: a selection unit, a first processing unit and a second processing unit; the selection unit is used to select a target browser kernel corresponding to the operating system in the current device from at least one of the browser kernel startup strategies. startup strategy; the first processing unit is used to start the browser kernel in the current device according to the target browser kernel startup strategy; the second processing unit is used to call the browser kernel to The web application in the quick application installation package is executed.
在本公开的一个实施例中,所述配置信息还包括:所述操作系统对应的按键映射关系;所述第二处理单元具体用于,获取针对所述web应用程序的按键指令;根据所述按键指令,以及所述当前设备中操作系统对应的按键映射关系,确定所述按键指令对应的执行命令;调用所述浏览器内核按照所述执行命令对所述web应用程序进行执行处理。In one embodiment of the present disclosure, the configuration information also includes: key mapping relationships corresponding to the operating system; the second processing unit is specifically configured to obtain key instructions for the web application; according to the The key instructions and the key mapping relationship corresponding to the operating system in the current device determine the execution command corresponding to the key instructions; the browser kernel is called to execute the web application program according to the execution command.
在本公开的一个实施例中,所述第二处理单元具体用于,确定所述执行命令是否为针对web应用程序的关闭命令;在所述执行命令为非关闭命令时,调用所述浏览器内核按照 所述执行命令对所述web应用程序进行执行处理;在所述执行命令为关闭命令时,调用所述浏览器内核按照后台运行命令对所述web应用程序进行执行处理,以在获取到开启命令时,调用所述浏览器内核按照前台运行命令对所述web应用程序进行执行处理。In one embodiment of the present disclosure, the second processing unit is specifically configured to determine whether the execution command is a closing command for the web application; when the execution command is a non-closing command, call the browser The kernel executes the web application program according to the execution command; when the execution command is a shutdown command, the browser kernel is called to execute the web application program according to the background running command, so as to obtain the When the command is turned on, the browser kernel is called to execute the web application program according to the foreground running command.
在本公开的一个实施例中,所述web应用程序中包括:至少一个浏览器UA以及对应的页面显示策略;所述第二处理模块303,还用于,将至少一个所述浏览器UA发送给所述浏览器内核;接收所述浏览器内核发送的目标浏览器UA,其中,所述目标浏览器UA存在于至少一个所述浏览器UA中;将所述目标浏览器UA对应的页面显示策略发送给所述浏览器内核,以调用所述浏览器内核按照所述页面显示策略对web应用程序中的页面进行显示处理。In one embodiment of the present disclosure, the web application includes: at least one browser UA and a corresponding page display policy; the second processing module 303 is also configured to send at least one browser UA to the browser kernel; receiving the target browser UA sent by the browser kernel, where the target browser UA exists in at least one of the browser UAs; displaying the page corresponding to the target browser UA The policy is sent to the browser kernel to call the browser kernel to display the page in the web application program according to the page display policy.
在本公开的一个实施例中,所述确定模块301具体用于,接收运行请求,其中,所述运行请求包括:标识;确定所述标识对应的快应用安装包的类型;其中,所述类型为第一类型时,表示所述快应用安装包由web应用程序按照快应用相关签名认证策略打包得到;在所述类型为第一类型时,将所述快应用安装包作为所述待处理的快应用安装包。In one embodiment of the present disclosure, the determination module 301 is specifically configured to receive a run request, where the run request includes: an identifier; determine the type of the quick application installation package corresponding to the identifier; wherein the type When the type is the first type, it means that the quick application installation package is packaged by the web application in accordance with the signature authentication policy related to the quick application; when the type is the first type, the quick application installation package is used as the to-be-processed Quick application installation package.
其中,需要说明的是,前述对web应用程序的接入方法实施例的解释说明也适用于该实施例的web应用程序的接入装置,该实施例不再赘述。It should be noted that the foregoing explanation of the embodiment of the web application access method is also applicable to the web application access device of this embodiment, and this embodiment will not be described again.
本公开实施例的web应用程序的接入装置,通过确定待处理的快应用安装包,其中,快应用安装包由web应用程序按照快应用相关签名认证策略打包得到;对快应用安装包按照快应用相关签名认证策略进行认证处理;在认证通过后,对快应用安装包中的web应用程序进行运行处理,从而能够将web应用程序打包成快应用,且按照快应用相关签名认证策略对快应用安装包进行认证处理,对web应用程序进行运行处理,避免用户在设备中的浏览器中输入web应用程序的链接地址,或者通过点击页面上web应用程序的入口地址,提高设备上web应用程序的使用效率,使得web应用程序能够适用于电视终端设备等,且提高电视终端设备上应用程序的数量。The access device of the web application program in the embodiment of the present disclosure determines the quick application installation package to be processed, wherein the quick application installation package is packaged by the web application in accordance with the quick application related signature authentication policy; the quick application installation package is packaged in accordance with the quick application installation package. Apply the relevant signature authentication policy for authentication processing; after passing the authentication, run the web application in the quick application installation package, so that the web application can be packaged into a quick application, and the quick application can be processed according to the signature authentication policy related to the quick application. The installation package performs authentication processing and runs the web application to prevent users from entering the link address of the web application in the browser on the device, or by clicking on the entry address of the web application on the page, thereby improving the security of the web application on the device. Usage efficiency enables web applications to be applied to TV terminal devices, etc., and increases the number of applications on TV terminal devices.
根据本公开的一个实施例,提供一种电子设备,包括:处理器;用于存储处理器可执行指令的存储器,其中,处理器被配置为执行指令,以实现如上的web应用程序的接入方法。According to an embodiment of the present disclosure, an electronic device is provided, including: a processor; and a memory for storing instructions executable by the processor, wherein the processor is configured to execute the instructions to implement access to the web application as above method.
为了实现上述实施例,本公开还提出了一种存储介质。In order to implement the above embodiments, the present disclosure also proposes a storage medium.
其中,当存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行如上的web应用程序的接入方法。When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is enabled to execute the above access method of the web application.
为了实现上述实施例,本公开还提供一种计算机程序产品。In order to implement the above embodiments, the present disclosure also provides a computer program product.
其中,该计算机程序产品由电子设备的处理器执行时,使得电子设备能够执行如上的 web应用程序的接入方法。Wherein, when the computer program product is executed by the processor of the electronic device, the electronic device is able to execute the above access method of the web application program.
图4为根据一示例性实施例示出的一种电子设备的结构框图。图4示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。FIG. 4 is a structural block diagram of an electronic device according to an exemplary embodiment. The electronic device shown in FIG. 4 is only an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
如图4所示,上述电子设备1100包括:As shown in Figure 4, the above-mentioned electronic device 1100 includes:
存储器1110及处理器1120,连接不同组件(包括存储器1110和处理器1120)的总线1130,存储器1110存储有计算机程序,当处理器1120执行所述程序时实现本公开实施例所述的web应用程序的接入方法。The memory 1110 and the processor 1120 are connected to the bus 1130 of different components (including the memory 1110 and the processor 1120). The memory 1110 stores a computer program. When the processor 1120 executes the program, the web application program described in the embodiment of the present disclosure is implemented. access method.
总线1130表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(ISA)总线,微通道体系结构(MAC)总线,增强型ISA总线、视频电子标准协会(VESA)局域总线以及外围组件互连(PCI)总线。 Bus 1130 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics accelerated port, a processor, or a local bus using any of a variety of bus structures. For example, these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect ( PCI) bus.
电子设备1100典型地包括多种电子设备可读介质。这些介质可以是任何能够被电子设备1100访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。Electronic device 1100 typically includes a variety of electronic device-readable media. These media can be any available media that can be accessed by electronic device 1100, including volatile and nonvolatile media, removable and non-removable media.
存储器1110还可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(RAM)1140和/或高速缓存存储器1150。电子设备1100可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统1160可以用于读写不可移动的、非易失性磁介质(图4未显示,通常称为“硬盘驱动器”)。尽管图4中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如CD-ROM,DVD-ROM或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线1130相连。存储器1110可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本公开各实施例的功能。 Memory 1110 may also include computer system readable media in the form of volatile memory, such as random access memory (RAM) 1140 and/or cache memory 1150 . Electronic device 1100 may further include other removable/non-removable, volatile/non-volatile computer system storage media. By way of example only, storage system 1160 may be used to read and write to non-removable, non-volatile magnetic media (not shown in Figure 4 and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a disk drive may be provided for reading and writing removable non-volatile disks (e.g., "floppy disks"), and for removable non-volatile optical disks (e.g., CD-ROM, DVD-ROM). or other optical media) that can read and write optical disc drives. In these cases, each drive may be connected to bus 1130 through one or more data media interfaces. The memory 1110 may include at least one program product having a set (eg, at least one) of program modules configured to perform the functions of embodiments of the present disclosure.
具有一组(至少一个)程序模块1170的程序/实用工具1180,可以存储在例如存储器1110中,这样的程序模块1170包括但不限于操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块1170通常执行本公开所描述的实施例中的功能和/或方法。A program/utility 1180 having a set of (at least one) program modules 1170, including but not limited to an operating system, one or more application programs, other program modules, and program data, may be stored, for example, in memory 1110 , each of these examples or some combination may include the implementation of a network environment. Program modules 1170 generally perform functions and/or methods in the embodiments described in this disclosure.
电子设备1100也可以与一个或多个外部设备1190(例如键盘、指向设备、显示器1191等)通信,还可与一个或者多个使得用户能与该电子设备1100交互的设备通信,和/或与使得该电子设备1100能与一个或多个其它计算设备进行通信的任何设备(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口1192进行。并且,电子设备1100还可以通过网络适配器1193与一个或者多个网络(例如局域网(LAN),广域网(WAN) 和/或公共网络,例如因特网)通信。如图4所示,网络适配器1193通过总线1130与电子设备1100的其它模块通信。应当明白,尽管图4中未示出,可以结合电子设备1100使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。Electronic device 1100 may also communicate with one or more external devices 1190 (e.g., keyboard, pointing device, display 1191 , etc.), with one or more devices that enable a user to interact with electronic device 1100 , and/or with Any device (eg, network card, modem, etc.) that enables the electronic device 1100 to communicate with one or more other computing devices. This communication may occur through an input/output (I/O) interface 1192. Furthermore, the electronic device 1100 may also communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) through a network adapter 1193. As shown in FIG. 4 , network adapter 1193 communicates with other modules of electronic device 1100 via bus 1130 . It should be understood that, although not shown in Figure 4, other hardware and/or software modules may be used in conjunction with electronic device 1100, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tapes drives and data backup storage systems, etc.
处理器1120通过运行存储在存储器1110中的程序,从而执行各种功能应用以及数据处理。The processor 1120 executes various functional applications and data processing by running programs stored in the memory 1110 .
需要说明的是,本实施例的电子设备的实施过程和技术原理参见前述对本公开实施例的web应用程序的接入方法的解释说明,此处不再赘述。It should be noted that for the implementation process and technical principles of the electronic device in this embodiment, please refer to the aforementioned explanation of the access method of the web application in the embodiment of the present disclosure, and will not be described again here.
在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。In this disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device . Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the foregoing.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure that follow the general principles of the disclosure and include common knowledge or customary technical means in the technical field that are not disclosed in the disclosure. . It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the disclosure is limited only by the appended claims.

Claims (14)

  1. 一种web应用程序的接入方法,其特征在于,所述方法包括:A method for accessing web applications, characterized in that the method includes:
    确定待处理的快应用安装包,其中,所述快应用安装包由web应用程序按照快应用相关签名认证策略打包得到;Determine the quick application installation package to be processed, wherein the quick application installation package is packaged by the web application in accordance with the signature authentication policy related to the quick application;
    对所述快应用安装包按照快应用相关签名认证策略进行认证处理;The quick application installation package is authenticated according to the signature authentication policy related to the quick application;
    在认证通过后,对所述快应用安装包中的所述web应用程序进行运行处理。After the authentication is passed, the web application in the quick application installation package is run.
  2. 根据权利要求1所述的方法,其特征在于,所述快应用安装包中包括:至少一种操作系统对应的配置信息,所述配置信息包括:所述操作系统对应的浏览器内核启动策略;The method according to claim 1, wherein the quick application installation package includes: configuration information corresponding to at least one operating system, and the configuration information includes: a browser kernel startup policy corresponding to the operating system;
    所述对所述快应用安装包中的所述web应用程序进行运行处理,包括:The running processing of the web application in the quick application installation package includes:
    从至少一种所述浏览器内核启动策略中,选择当前设备中操作系统对应的目标浏览器内核启动策略;Select a target browser kernel startup strategy corresponding to the operating system in the current device from at least one of the browser kernel startup strategies;
    按照所述目标浏览器内核启动策略启动所述当前设备中的浏览器内核;Start the browser kernel in the current device according to the target browser kernel startup policy;
    调用所述浏览器内核对所述快应用安装包中的所述web应用程序进行运行处理。The browser kernel is called to run the web application program in the quick application installation package.
  3. 根据权利要求2所述的方法,其特征在于,所述配置信息还包括:所述操作系统对应的按键映射关系;The method according to claim 2, wherein the configuration information further includes: key mapping relationship corresponding to the operating system;
    所述调用所述浏览器内核对所述快应用安装包中的所述web应用程序进行运行处理,包括:The invoking the browser kernel to run the web application in the quick application installation package includes:
    获取针对所述web应用程序的按键指令;Obtain keystroke instructions for the web application;
    根据所述按键指令,以及所述当前设备中操作系统对应的按键映射关系,确定所述按键指令对应的执行命令;Determine the execution command corresponding to the key instruction according to the key instruction and the key mapping relationship corresponding to the operating system in the current device;
    调用所述浏览器内核按照所述执行命令对所述web应用程序进行执行处理。The browser kernel is called to execute the web application program according to the execution command.
  4. 根据权利要求3所述的方法,其特征在于,所述调用所述浏览器内核按照所述执行命令对所述web应用程序进行执行处理,包括:The method according to claim 3, wherein the calling the browser kernel to execute the web application program according to the execution command includes:
    确定所述执行命令是否为针对web应用程序的关闭命令;Determine whether the execution command is a shutdown command for the web application;
    在所述执行命令为非关闭命令时,调用所述浏览器内核按照所述执行命令对所述web应用程序进行执行处理;When the execution command is a non-close command, call the browser kernel to execute the web application program according to the execution command;
    在所述执行命令为关闭命令时,调用所述浏览器内核按照后台运行命令对所述web应用程序进行执行处理,以在获取到开启命令时,调用所述浏览器内核按照前台运行命令对 所述web应用程序进行执行处理。When the execution command is a close command, the browser kernel is called to execute the web application according to the background running command, so that when the opening command is obtained, the browser kernel is called to execute the web application according to the foreground running command. The web application is executed.
  5. 根据权利要求2或3所述的方法,其特征在于,所述web应用程序中包括:至少一个浏览器UA以及对应的页面显示策略;The method according to claim 2 or 3, characterized in that the web application includes: at least one browser UA and a corresponding page display strategy;
    所述调用所述浏览器内核对所述快应用安装包中的所述web应用程序进行运行处理,还包括:The invoking the browser kernel to run the web application in the quick application installation package also includes:
    将至少一个所述浏览器UA发送给所述浏览器内核;Send at least one browser UA to the browser kernel;
    接收所述浏览器内核发送的目标浏览器UA,其中,所述目标浏览器UA存在于至少一个所述浏览器UA中;Receive the target browser UA sent by the browser kernel, wherein the target browser UA exists in at least one of the browser UAs;
    将所述目标浏览器UA对应的页面显示策略发送给所述浏览器内核,以调用所述浏览器内核按照所述页面显示策略对web应用程序中的页面进行显示处理。The page display policy corresponding to the target browser UA is sent to the browser kernel to call the browser kernel to display the page in the web application program according to the page display policy.
  6. 根据权利要求1所述的方法,其特征在于,所述确定待处理的快应用安装包,包括:The method according to claim 1, wherein determining the quick application installation package to be processed includes:
    接收运行请求,其中,所述运行请求包括:标识;Receive a running request, wherein the running request includes: an identification;
    确定所述标识对应的快应用安装包的类型;其中,所述类型为第一类型时,表示所述快应用安装包由web应用程序按照快应用相关签名认证策略打包得到;Determine the type of the quick application installation package corresponding to the identifier; wherein, when the type is the first type, it means that the quick application installation package is packaged by the web application according to the quick application related signature authentication policy;
    在所述类型为第一类型时,将所述快应用安装包作为所述待处理的快应用安装包。When the type is the first type, the quick application installation package is used as the quick application installation package to be processed.
  7. 一种web应用程序的接入装置,其特征在于,所述装置包括:A web application access device, characterized in that the device includes:
    确定模块,用于确定待处理的快应用安装包,其中,所述快应用安装包由web应用程序按照快应用相关签名认证策略打包得到;The determination module is used to determine the quick application installation package to be processed, wherein the quick application installation package is packaged by the web application in accordance with the quick application related signature authentication policy;
    第一处理模块,用于对所述快应用安装包按照快应用相关签名认证策略进行认证处理;The first processing module is used to authenticate the quick application installation package according to the quick application related signature authentication policy;
    第二处理模块,用于在认证通过后,对所述快应用安装包中的所述web应用程序进行运行处理。The second processing module is configured to run the web application in the quick application installation package after the authentication is passed.
  8. 根据权利要求7所述的装置,其特征在于,所述快应用安装包中包括:至少一种操作系统对应的配置信息,所述配置信息包括:所述操作系统对应的浏览器内核启动策略;The device according to claim 7, wherein the quick application installation package includes: configuration information corresponding to at least one operating system, and the configuration information includes: a browser kernel startup policy corresponding to the operating system;
    所述第二处理模块包括:选择单元,第一处理单元和第二处理单元;The second processing module includes: a selection unit, a first processing unit and a second processing unit;
    所述选择单元,用于从至少一种所述浏览器内核启动策略中,选择当前设备中操作系统对应的目标浏览器内核启动策略;The selection unit is configured to select a target browser kernel startup strategy corresponding to the operating system in the current device from at least one of the browser kernel startup strategies;
    所述第一处理单元,用于按照所述目标浏览器内核启动策略启动所述当前设备中的浏览器内核;The first processing unit is configured to start the browser kernel in the current device according to the target browser kernel startup policy;
    所述第二处理单元,用于调用所述浏览器内核对所述快应用安装包中的所述web应用程序进行运行处理。The second processing unit is configured to call the browser kernel to run the web application in the quick application installation package.
  9. 根据权利要求8所述的装置,其特征在于,所述配置信息还包括:所述操作系统对应的按键映射关系;The device according to claim 8, wherein the configuration information further includes: a key mapping relationship corresponding to the operating system;
    所述第二处理单元具体用于,The second processing unit is specifically used to:
    获取针对所述web应用程序的按键指令;Obtain keystroke instructions for the web application;
    根据所述按键指令,以及所述当前设备中操作系统对应的按键映射关系,确定所述按键指令对应的执行命令;Determine the execution command corresponding to the key instruction according to the key instruction and the key mapping relationship corresponding to the operating system in the current device;
    调用所述浏览器内核按照所述执行命令对所述web应用程序进行执行处理。The browser kernel is called to execute the web application program according to the execution command.
  10. 根据权利要求9所述的装置,其特征在于,所述第二处理单元具体用于,The device according to claim 9, characterized in that the second processing unit is specifically used to:
    确定所述执行命令是否为针对web应用程序的关闭命令;Determine whether the execution command is a shutdown command for the web application;
    在所述执行命令为非关闭命令时,调用所述浏览器内核按照所述执行命令对所述web应用程序进行执行处理;When the execution command is a non-close command, call the browser kernel to execute the web application program according to the execution command;
    在所述执行命令为关闭命令时,调用所述浏览器内核按照后台运行命令对所述web应用程序进行执行处理,以在获取到开启命令时,调用所述浏览器内核按照前台运行命令对所述web应用程序进行执行处理。When the execution command is a close command, the browser kernel is called to execute the web application according to the background running command, so that when the opening command is obtained, the browser kernel is called to execute the web application according to the foreground running command. The web application is executed.
  11. 根据权利要求8或9所述的装置,其特征在于,所述web应用程序中包括:至少一个浏览器UA以及对应的页面显示策略;The device according to claim 8 or 9, characterized in that the web application includes: at least one browser UA and a corresponding page display strategy;
    所述第二处理模块,还用于,The second processing module is also used to:
    将至少一个所述浏览器UA发送给所述浏览器内核;Send at least one browser UA to the browser kernel;
    接收所述浏览器内核发送的目标浏览器UA,其中,所述目标浏览器UA存在于至少一个所述浏览器UA中;Receive the target browser UA sent by the browser kernel, wherein the target browser UA exists in at least one of the browser UAs;
    将所述目标浏览器UA对应的页面显示策略发送给所述浏览器内核,以调用所述浏览器内核按照所述页面显示策略对web应用程序中的页面进行显示处理。The page display policy corresponding to the target browser UA is sent to the browser kernel to call the browser kernel to display the page in the web application program according to the page display policy.
  12. 根据权利要求7所述的装置,其特征在于,所述确定模块具体用于,The device according to claim 7, characterized in that the determining module is specifically used to:
    接收运行请求,其中,所述运行请求包括:标识;Receive a running request, wherein the running request includes: an identification;
    确定所述标识对应的快应用安装包的类型;其中,所述类型为第一类型时,表示所述快应用安装包由web应用程序按照快应用相关签名认证策略打包得到;Determine the type of the quick application installation package corresponding to the identifier; wherein, when the type is the first type, it means that the quick application installation package is packaged by the web application according to the quick application related signature authentication policy;
    在所述类型为第一类型时,将所述快应用安装包作为所述待处理的快应用安装包。When the type is the first type, the quick application installation package is used as the quick application installation package to be processed.
  13. 一种电子设备,其特征在于,包括:An electronic device, characterized by including:
    处理器;processor;
    用于存储所述处理器可执行指令的存储器;memory for storing instructions executable by the processor;
    其中,所述处理器被配置为执行所述指令,以实现如权利要求1至6中任一项所述的web应用程序的接入方法。Wherein, the processor is configured to execute the instructions to implement the web application access method according to any one of claims 1 to 6.
  14. 一种非临时性计算机可读存储介质,当所述存储介质中的指令由处理器执行时,使得处理器能够执行如权利要求1至6中任一项所述的web应用程序的接入方法。A non-transitory computer-readable storage medium that, when instructions in the storage medium are executed by a processor, enables the processor to execute the web application access method as claimed in any one of claims 1 to 6 .
PCT/CN2022/093695 2022-05-18 2022-05-18 Web application program access method and apparatus WO2023221001A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202280004593.1A CN117425877A (en) 2022-05-18 2022-05-18 Access method and device for web application program
PCT/CN2022/093695 WO2023221001A1 (en) 2022-05-18 2022-05-18 Web application program access method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/093695 WO2023221001A1 (en) 2022-05-18 2022-05-18 Web application program access method and apparatus

Publications (1)

Publication Number Publication Date
WO2023221001A1 true WO2023221001A1 (en) 2023-11-23

Family

ID=88834206

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/093695 WO2023221001A1 (en) 2022-05-18 2022-05-18 Web application program access method and apparatus

Country Status (2)

Country Link
CN (1) CN117425877A (en)
WO (1) WO2023221001A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010056462A1 (en) * 2000-01-06 2001-12-27 Katsuhisa Kataoka Method for starting application programs and software product for starting application programs
CN110502245A (en) * 2018-05-16 2019-11-26 华为技术有限公司 Data processing method, terminal, server and application and development equipment
CN110704136A (en) * 2019-09-27 2020-01-17 北京百度网讯科技有限公司 Rendering method of small program assembly, client, electronic device and storage medium
CN113168332A (en) * 2019-02-22 2021-07-23 深圳市欢太科技有限公司 Data processing method and device and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010056462A1 (en) * 2000-01-06 2001-12-27 Katsuhisa Kataoka Method for starting application programs and software product for starting application programs
CN110502245A (en) * 2018-05-16 2019-11-26 华为技术有限公司 Data processing method, terminal, server and application and development equipment
CN113168332A (en) * 2019-02-22 2021-07-23 深圳市欢太科技有限公司 Data processing method and device and mobile terminal
CN110704136A (en) * 2019-09-27 2020-01-17 北京百度网讯科技有限公司 Rendering method of small program assembly, client, electronic device and storage medium

Also Published As

Publication number Publication date
CN117425877A (en) 2024-01-19

Similar Documents

Publication Publication Date Title
US9092627B2 (en) Apparatus and method for providing security information in virtual environment
US7877091B2 (en) Method and system for executing a container managed application on a processing device
EP3761208B1 (en) Trust zone-based operating system and method
US9355282B2 (en) Using multiple display servers to protect data
US8464252B2 (en) Per process virtual machines
TWI533204B (en) Method and system for application execution in a restricted application execution environment, and computer-readable storage medium for recording related instructions thereon
WO2021036877A1 (en) Information processing method, device, and computer storage medium
US8863113B1 (en) Method and system for unattended installation of guest operating system
US11100227B2 (en) Security indication information configuration method and device
WO2019179026A1 (en) Electronic device, method for automatically generating cluster access domain name, and storage medium
US20100175107A1 (en) Secure workload partitioning in a server environment
US9560122B1 (en) Secure native application messaging with a browser application
US9882718B2 (en) Using a module for opening multiple databases
WO2021189257A1 (en) Malicious process detection method and apparatus, electronic device, and storage medium
WO2020088321A1 (en) Interaction method and device
KR20170142672A (en) Computing apparatus based on trusted execution environment
US9021596B2 (en) Correcting workflow security vulnerabilities via static analysis and virtual patching
AU2013370768A1 (en) Method and apparatus for controlling invoking of hardware instruction
JP2006164266A (en) Improvement in performance of operating system
US7996524B2 (en) Controlling external communication of embedded device using proxy server
US8082341B2 (en) ActiveX detection and handling in mozilla-based browsers
WO2023221001A1 (en) Web application program access method and apparatus
US20230177196A1 (en) Resource management method, computing device, computing equipment, and readable storage medium
US7231666B2 (en) Method and apparatus for preventing buffer overflow security exploits
US11501002B2 (en) Protocol security system

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 202280004593.1

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22942043

Country of ref document: EP

Kind code of ref document: A1