Nothing Special   »   [go: up one dir, main page]

WO2017050094A1 - Method and apparatus for loading application program - Google Patents

Method and apparatus for loading application program Download PDF

Info

Publication number
WO2017050094A1
WO2017050094A1 PCT/CN2016/097209 CN2016097209W WO2017050094A1 WO 2017050094 A1 WO2017050094 A1 WO 2017050094A1 CN 2016097209 W CN2016097209 W CN 2016097209W WO 2017050094 A1 WO2017050094 A1 WO 2017050094A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
engine
terminal device
platform
file
Prior art date
Application number
PCT/CN2016/097209
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 北京金山安全软件有限公司
Publication of WO2017050094A1 publication Critical patent/WO2017050094A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Definitions

  • the present invention relates to network game technology, and in particular, to a method and apparatus for loading an application.
  • Hypertext Markup Language is used to generate web pages containing non-text elements such as images, links, music, programs, etc.
  • the browser can display the content of the webpage by decoding the HTML, and the HTML constitutes the Internet. basis.
  • HTML5 (H5) is the 5th generation HTML, providing a new framework and platform for the next generation Internet.
  • the various engines therefore, based on the H5 platform, can load various applications on the corresponding engine. Take the platform built by H5 as an example for the H5 game platform.
  • the H5 game platform has strong compatibility, it can be compatible with games (game applications) supported by various game engines, and provide corresponding game environments for various games.
  • the development of games based on the unified H5 game platform can significantly reduce game development and operating costs, making H5 more and more widely used.
  • the game application developed by the game developer or the game operator can be operated on different terminal devices.
  • the game developer or game operator integrates and packages the H5 game platform file, the game engine installation file corresponding to the game application, and the game application installation file in the game application package.
  • the game application package can be an Android installation package (APK) , Android Package), can also be a Windows installation package.
  • APIK Android installation package
  • the user can call the H5 game platform file to load the H5 game platform on the terminal device, so that the game can be played through the corresponding installed game engine based on the H5 game platform.
  • different game engine-driven games are implemented based on the H5 game platform by separately downloading and installing game application packages of different games.
  • the user needs to download and install the corresponding game application package for each game, even if the user generates the H5 game platform and some by first installing the game application package.
  • Game engine in subsequent applications, even if you need to play a game supported by the certain game engine, you still need to
  • the game application package containing the H5 game platform file and the corresponding installation file of the game engine makes the running of the game long, the game running efficiency is low, the network traffic is consumed, and the user's game cost is increased, and the influence is increased. The user's gaming experience.
  • the embodiment of the invention provides a method and a device for loading an application program, which improves the operation efficiency of the game and reduces the network traffic of the running game.
  • a first aspect of the present invention provides a method for loading an application, including:
  • the terminal device stores the platform file, triggering the terminal device to invoke the platform file to load a homepage of the platform;
  • the terminal device is installed with an engine that drives the application, triggering the terminal device to start an engine of the application, and loading an application corresponding to the address information of the application based on the engine of the launched application .
  • the method for loading an application separates an engine installation file and a platform file of a driver application from an application package, and queries whether a terminal device that sends an application type control loading request stores a preset platform file. And whether the engine that drives the application is installed, and if so, the application can be loaded based on the invoked platform file and the installed engine, so that the user only needs to execute the download engine installation file and the platform file for multiple applications, which is effective. It saves network traffic, reduces the time required to run applications, and improves application efficiency.
  • the second aspect of the present invention provides an apparatus for loading an application, including: a first query module, a calling module, an address information acquiring module, a second query module, and an application loading module, where
  • a first query module configured to receive an application class control loading request, and query whether the terminal device that sends the application class control loading request stores a preset platform file
  • An address information obtaining module configured to receive an application loading request sent by the terminal device in a homepage of the platform, and obtain address information of an application corresponding to the application loading request;
  • a second query module configured to query whether the terminal device is installed with an engine that drives the application
  • An application loading module if the terminal device is installed with an engine that drives the application, triggering the terminal device to start an engine of the application, and loading an address of the application based on an engine of the launched application The application corresponding to the information.
  • the device for loading an application separates the engine installation file and the platform file of the driver application from the application package, and the first query module queries whether the terminal device that sends the application class control loading request stores the preset.
  • the module queries whether an engine for driving the application is installed.
  • the application loading module loads the application based on the invoked platform file and the installed engine, so that the user only needs to execute the download engine for multiple applications.
  • Installation files and platform files save network traffic, reduce the time required to run applications, and improve application efficiency.
  • a third aspect of the present invention provides a terminal device, including a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside a space enclosed by the housing, The processor and the memory are disposed on the circuit board; the power circuit is configured to supply power to each circuit or device of the terminal device; the memory is configured to store executable program code; the processor A program corresponding to the executable program code is executed by reading executable program code stored in the memory for executing the method of loading an application according to the first aspect of the present invention.
  • a fourth aspect of the present invention provides a computer readable storage medium having instructions stored therein that, when executed, perform a method of loading an application as described in the first aspect of the present invention.
  • a fifth aspect of the present invention provides a computer application that, when executed on a processor of a terminal device, performs a method of loading an application as described in the first aspect of the present invention.
  • FIG. 1 is a schematic flowchart of a method for loading an application according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for loading an application according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of an apparatus for loading an application according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • FIG. 1 is a schematic flowchart of a method for loading an application according to an embodiment of the present invention. Referring to Figure 1, the method includes:
  • Step 101 Receive an application class control loading request, and query whether the terminal device that sends the application class control loading request stores a preset platform file.
  • the receiving application class control loading request may be a server that stores a platform file, an engine installation file, and an application installation file.
  • the existing application package is decapsulated to form an independent platform file, an engine installation file, and an application installation file, so that the subsequent application can be processed according to the actual needs of the user. There is no need to push the application package every time, reducing network traffic and reducing the time required to push the application package.
  • the application class control includes but is not limited to: a game class control, a payment class control, a search class control, an entertainment class control, and the like.
  • the pre-set platform file is an H5 game platform file, ie a fifth generation hypertext markup language game platform file.
  • the preset platform files may also be other platform files, for example, H5 search platform files, or H6 platform files or H7 platform files that may appear in subsequent applications.
  • the platform file includes the environment information of the platform, the supported application list information, and the like.
  • the detailed content included in the platform file is a well-known technology, which is omitted here.
  • the receiving application class control loading request may also be a browser in the terminal device that sends the application class control loading request, and the browser receives the application class control loading request and queries whether the terminal device stores the preset platform. The flow of the file.
  • Step 102 If the terminal device stores the platform file, triggering the terminal device to invoke the platform file to load a homepage of the platform;
  • the terminal device stores the platform file, it indicates that the terminal device has previously downloaded the platform file. Therefore, the terminal device is not required to download again, and only the downloaded platform file is called to load the platform homepage.
  • an application list is displayed in the homepage of the platform, and the user can load the application by clicking an application in the application list.
  • the method further includes:
  • the terminal device can obtain the new version of the platform file in time.
  • the method further comprises:
  • the terminal device does not store the platform file, push the platform file and store it in the terminal device, triggering the terminal device to invoke the stored platform file to load the home page of the platform.
  • pushing the platform file includes:
  • the browser sends the received application class control loading request to the server storing the platform file, so that the server receives the application class control loading request, and pushes the terminal device that sends the application class control loading request to the terminal device.
  • Platform file
  • Step 103 Receive an application loading request sent by the terminal device in a homepage of the platform, and obtain address information of an application corresponding to the application loading request.
  • obtaining address information of the application corresponding to the application loading request includes:
  • the homepage of the platform uses the network view to open a startup page of the application corresponding to the application loading request, execute the JS code in the startup page, obtain the address information of the application corresponding to the application loading request, and pass the A pre-set interface notifies the home page of the platform.
  • Step 104 Query whether the terminal device is installed with an engine that drives the application.
  • querying whether the terminal device is installed with an engine that drives the application includes:
  • the application class identifier is used to identify whether the application class to which the application belongs is a game class, a payment class, a search class, or Entertainment class.
  • the application type refers to the type of application under the application class, and each application type corresponds to an engine.
  • the game application type may include, but is not limited to, an egret type and a Raya type, wherein the game of the egret type corresponds to the egret engine, that is, the egret engine is required to drive, Raya.
  • the type of game corresponds to the Raya engine, which requires the Raya engine to be driven.
  • the Egret Engine is an open source free game framework for building 2D games, demos and other graphical interface interaction applications.
  • the Egret Engine is developed using the TypeScript scripting language.
  • the application type corresponding to the application loading request is the same as the address information of the application corresponding to the application loading request, that is, the application is opened by using the network view of the platform of the platform.
  • the startup page of the application corresponding to the loading request is executed, the JS code in the startup page is executed, the application type of the application corresponding to the application loading request is obtained, and the homepage of the platform is notified through a preset interface.
  • A12. Query a mapping relationship between the preset application class identifier and the engine set, and obtain an engine set of the acquired application class identifier mapping.
  • A14 Query whether the terminal device is installed with the obtained engine.
  • obtaining the address information of the application corresponding to the application loading request and querying whether the terminal device is installed with the engine that drives the application does not have a sequence, that is, acquiring the application loading.
  • the address information of the requesting application may be performed after querying whether the terminal device is installed with an engine that drives the application, or simultaneously with querying whether the terminal device is installed with an engine that drives the application.
  • Step 105 If the terminal device is installed with an engine that drives the application, triggering the terminal device to start an engine of the application, and loading an address information of the application based on an engine of the launched application s application.
  • the application corresponding to the address information of the application loaded by the engine of the launched application includes:
  • the engine of the application loads, parses, and executes an application script in the application corresponding to the address information, and invokes an operating environment provided by the platform for the application script during execution.
  • the method may further include:
  • the attribute information is version information.
  • the method further comprises:
  • the terminal device If the terminal device is not installed with an engine that drives the application, pushing an engine installation file corresponding to an engine that drives the application, so that the terminal device installs the engine installation file to obtain the application. After the engine, the engine of the application is started, and an application corresponding to the address information of the application is loaded based on the engine of the launched application.
  • pushing the engine installation file corresponding to the engine that drives the application includes:
  • the browser sends an engine installation file request to the server, so that the server receives the engine installation file request, and pushes an engine installation file corresponding to the engine installation file request to the terminal device.
  • FIG. 2 is a schematic flowchart of a method for loading an application according to an embodiment of the present invention. Referring to FIG. 2, taking the first operation of the game by the terminal device, the process includes:
  • Step 201 click a game class control in the browser homepage
  • Step 202 triggering downloading of the game platform file and storing
  • the game platform file is an H5 game platform Android installation package file.
  • Step 203 calling the game platform file to enter the game platform homepage
  • Step 204 Select a target game in the game list displayed on the homepage of the game platform, and enter a game start page;
  • the game platform home page uses a webview to launch and enter the game launch page of the selected target game.
  • Step 205 executing a JS code in the game startup page to obtain a game address and a game type of the target game
  • the JS code is Javascript code.
  • Step 206 Query a game address and a game type, obtain an engine corresponding to the target game, and download a corresponding engine installation file;
  • the engine corresponding to the target game is the Egret engine
  • download the Egret engine installation file that is, download the Egret engine plug-in
  • the target game corresponding to the engine is the Raya engine
  • Download the Raya engine installation file that is, download the Raya engine plug-in
  • the engine corresponding to the target game is the M-master payment engine
  • download the M-master payment installation file that is, download the m-master payment plug-in.
  • step 207 the engine installation file is run and the target game is run based on the running engine.
  • the user downloads or updates the game platform file according to the version number of the stored game platform file, for example, the game platform APK plug-in.
  • the game platform APK plugin is dynamically invoked to enter the game platform homepage.
  • the user clicks on one of the games for example, the Egret game "Devil Adult", and the game platform homepage is opened using the network view.
  • the game launch page then execute the JS code in the game launch page, the JS code informs the game platform home page of the address, type and other information of the target game that needs to be run through the preset interface, and the game platform home page downloads according to the obtained target game type. Or update the corresponding game engine, for example, the Egret Egret engine. After the download or update is completed, enter the game according to the address of the target game, display the game resource loading interface, and then start running the game.
  • the method for loading an application in the embodiment of the present invention performs plug-in management by separating the engine installation file and the platform file of the driver application from the application package, so that the user only needs to execute once for multiple applications.
  • Download engine installation files and platform files transparent to users when running different types of applications, effectively reducing the size of application packages, saving network traffic, reducing the time required to run applications, and improving application efficiency.
  • the user's application experience is enhanced; further, version management of plug-in engine installation files and platform file downloads and upgrades can be implemented, and engines and platforms can be updated and maintained in a timely manner.
  • FIG. 3 is a schematic structural diagram of an apparatus for loading an application according to an embodiment of the present invention.
  • the device includes: a first query module 301, a calling module 302, an address information obtaining module 303, a second query module 304, and an application loading module 305, where
  • the first query module 301 is configured to receive an application class control loading request, and query whether the terminal device that sends the application class control loading request stores a preset platform file.
  • the application class control includes but is not limited to: a game class control, a payment class control, a search class control, an entertainment class control, and the like.
  • Platform files include but are not limited to: H5 game platform files and H5 search platform files.
  • Calling module 302 if the terminal device stores the platform file, triggering the terminal device to invoke the platform file to load a homepage of the platform;
  • the calling module 302 includes: a determining unit and a first triggering unit (not shown), wherein
  • a determining unit if the terminal device stores the platform file, notifying the first trigger unit
  • the first triggering unit is configured to trigger the terminal device to invoke the platform file to load a homepage of the platform.
  • the determining unit is further configured to notify the pushing unit when the terminal device does not store the platform file
  • the calling module 302 may further include:
  • a pushing unit configured to receive the notification, push the platform file, and store the file in the terminal device, triggering the terminal device to invoke the stored platform file to load a homepage of the platform.
  • the invoking module 302 can further include:
  • a platform file update unit configured to intercept a notification output by the determining unit to the first trigger unit, and obtain first version information of the platform file stored by the terminal device, if the second version information of the stored platform file is higher than And the first version information, the platform file corresponding to the second version information is pushed to the terminal device to update the platform file stored by the terminal device, and after the update, notify the first trigger unit.
  • the address information obtaining module 303 is configured to receive an application loading request sent by the terminal device in a homepage of the platform, and obtain address information of an application corresponding to the application loading request.
  • an application list is displayed in the homepage of the platform, and the user can send an application loading request by clicking an application in the application list.
  • the address information acquisition module 303 includes: an application load request unit, a startup unit, a code execution unit, and a notification unit (not shown), wherein
  • An application load request unit configured to display an application list in a homepage that loads the platform, and receive an application load request generated by a user by clicking an application in the application list;
  • a startup unit configured to: after receiving the application loading request, use a network view to open a startup page of an application corresponding to the application loading request;
  • a code execution unit configured to execute a Java description language code in the startup page, and obtain address information of an application corresponding to the application loading request;
  • a notification unit configured to notify the homepage of the platform by the acquired address information through a preset interface.
  • the second query module 304 is configured to query whether the terminal device is installed with an engine that drives the application;
  • the second query module 304 can include: an identifier obtaining unit, a first query unit, a second query unit, and a third query unit (not shown), wherein
  • An identifier obtaining unit configured to acquire an application type corresponding to the application loading request and an application class identifier
  • the first query unit is configured to query a mapping relationship between the preset application class identifier and the engine set, and obtain an engine set of the acquired application class identifier mapping;
  • a second query unit configured to query the obtained mapping relationship between the application type of the engine and the engine, and obtain an engine of the acquired application type mapping
  • the third query unit is configured to query whether the terminal device is installed with the obtained engine.
  • An application loading module 305 if the terminal device is installed with an engine that drives the application, triggering the terminal device to start an engine of the application, and loading the application based on an engine of the launched application The application corresponding to the address information.
  • the application loading module 305 includes: an engine determining unit and a loading unit (not shown), wherein
  • An engine determining unit if the terminal device is installed with an engine that drives the application, notifying the loading unit;
  • a loading unit configured to trigger the terminal device to start an engine of the application, and load an application corresponding to the address information of the application based on the engine of the launched application.
  • the engine determining unit is further configured to notify the engine pushing unit when the terminal device is not installed with the engine that drives the application
  • the application loading module 305 may further include:
  • the engine pushing unit is configured to receive a notification, and push the engine installation file corresponding to the engine that drives the application, so that the terminal device installs the engine installation file to obtain an engine of the application, and notifies the loading unit.
  • the application loading module 305 can further include:
  • An engine update unit configured to intercept a notification that the engine determining unit outputs to the loading unit, and acquire first attribute information of the engine installed by the terminal device, if the second attribute information of the stored engine installation file is higher than the first The attribute information is used to push an engine installation file corresponding to the second attribute information to the terminal device to update the engine installed by the terminal device, and notify the loading unit after the update.
  • FIG. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • the terminal device includes a housing 61, a processor 62, a memory 63, a circuit board 64, and a power supply circuit 65, wherein the circuit board 64 is disposed inside a space surrounded by the housing 61, and the processor 62 and the above-mentioned memory 63 are disposed on the circuit board 64; the power supply circuit 65 is configured to supply power to each circuit or device of the terminal device; the memory 63 is used to store executable program code; and the processor 62 reads the above The executable program code stored in the memory 63 runs a program corresponding to the above-described executable program code for executing the method of loading an application of the embodiment of the present invention as shown in FIG. 1.
  • the terminal device in the embodiment of the present invention may include: a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a personal digital assistant (PDA), a tablet computer (PAD), a portable multimedia player (PMP), a navigation device, and a desktop computer. And so on.
  • PDA personal digital assistant
  • PAD tablet computer
  • PMP portable multimedia player
  • the embodiment of the present invention further provides a computer readable storage medium having instructions stored therein, and when the instructions are executed, a method of loading an application as described with reference to FIG. 1 of the present invention.
  • the embodiment of the present invention further provides a computer application program, when executed on a processor of the terminal device, performs a method of loading an application as described with reference to the embodiment of the present invention shown in FIG.
  • a "computer-readable medium” can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device.
  • computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM).
  • the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
  • portions of the invention may be implemented in hardware, software, firmware or a combination thereof.
  • multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.

Landscapes

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

Abstract

A method and apparatus for loading an application program. The method comprises: receiving an application control loading request, querying whether a terminal device which sends the application control loading request stores a pre-set platform file (101); if the terminal device stores the platform file, triggering the terminal device to invoke the platform file so as to load a homepage of the platform (102); receiving an application program loading request sent by the terminal device in the homepage of the platform, and acquiring address information about the application program corresponding to the application program loading request (103); querying whether the terminal device is installed with an engine for driving the application program (104); and if the terminal device is installed with the engine for driving the application program, triggering the terminal device to start the engine of the application program, and loading, based on the started engine of the application program, the application program corresponding to the address information about the application program (105). Applying the method and apparatus may improve game running efficiency and reduce network traffic for running the game.

Description

加载应用程序的方法及装置Method and device for loading an application
相关申请的交叉引用Cross-reference to related applications
本申请基于申请号为201510612414.4,申请日为2015年9月23日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。The present application is based on a Chinese patent application No. 20151061241, filed on Sep. 23, 2015, the entire disclosure of which is hereby incorporated by reference.
技术领域Technical field
本发明涉及网络游戏技术,尤其涉及一种加载应用程序的方法及装置。The present invention relates to network game technology, and in particular, to a method and apparatus for loading an application.
背景技术Background technique
超文本标记语言(HTML,Hyper Text Mark-up Language)用于生成包含图片、链接、音乐、程序等非文字元素的网页,浏览器通过解码HTML,可以将网页内容显示出来,HTML是构成互联网的基础。其中,HTML5(H5)是第5代HTML,为下一代互联网提供全新的框架和平台,例如,由于利用H5搭建的平台可以兼容PC端与移动端、Windows与Linux、安卓与IOS中驱动应用程序的各类引擎,因而,基于H5平台可以实现各类应用程序在相应引擎上的加载。以利用H5搭建的平台为H5游戏平台为例,由于H5游戏平台具有强大的兼容性,可以兼容各类游戏引擎支持的游戏(游戏应用程序),为各类游戏提供相应的游戏环境,因而,基于统一的H5游戏平台开发游戏,能够显著地降低游戏开发与运营成本,使得H5得到了越来越广泛的应用。Hypertext Markup Language (HTML) is used to generate web pages containing non-text elements such as images, links, music, programs, etc. The browser can display the content of the webpage by decoding the HTML, and the HTML constitutes the Internet. basis. Among them, HTML5 (H5) is the 5th generation HTML, providing a new framework and platform for the next generation Internet. For example, because of the platform built with H5, it can be compatible with PC and mobile, Windows and Linux, Android and IOS driver applications. The various engines, therefore, based on the H5 platform, can load various applications on the corresponding engine. Take the platform built by H5 as an example for the H5 game platform. Because the H5 game platform has strong compatibility, it can be compatible with games (game applications) supported by various game engines, and provide corresponding game environments for various games. The development of games based on the unified H5 game platform can significantly reduce game development and operating costs, making H5 more and more widely used.
现有技术中,由于用户的终端设备各不相同,且终端设备的浏览器类型和版本可能千差万别,因而,为了保障游戏开发商或游戏运营商开发的游戏应用程序能够运行在不同的终端设备上,游戏开发商或游戏运营商将H5游戏平台文件、游戏应用程序对应的游戏引擎安装文件以及游戏应用程序安装文件集成并封装在游戏应用程序包中,游戏应用程序包可以是安卓安装包(APK,Android Package),也可以是Windows安装包。用户在下载并安装游戏应用程序包后,可以在终端设备上调用H5游戏平台文件加载H5游戏平台,从而可以基于H5游戏平台,通过相应安装的游戏引擎进行游戏。而当用户需要进行不同游戏引擎支持的游戏时,通过分别下载并安装不同游戏的游戏应用程序包,从而基于H5游戏平台,实现不同游戏引擎驱动的游戏。In the prior art, since the terminal devices of the user are different, and the browser type and version of the terminal device may vary widely, the game application developed by the game developer or the game operator can be operated on different terminal devices. The game developer or game operator integrates and packages the H5 game platform file, the game engine installation file corresponding to the game application, and the game application installation file in the game application package. The game application package can be an Android installation package (APK) , Android Package), can also be a Windows installation package. After downloading and installing the game application package, the user can call the H5 game platform file to load the H5 game platform on the terminal device, so that the game can be played through the corresponding installed game engine based on the H5 game platform. When the user needs to play games supported by different game engines, different game engine-driven games are implemented based on the H5 game platform by separately downloading and installing game application packages of different games.
但现有基于H5游戏平台加载游戏应用程序的方法,用户需要针对每一游戏,下载并安装对应的游戏应用程序包,即使用户通过第一次安装游戏应用程序包生成了H5游戏平台以及某一游戏引擎,后续应用中,即使需要进行由所述某一游戏引擎支持的游戏时,仍需要下 载包含H5游戏平台文件以及所述某一游戏引擎对应安装文件的游戏应用程序包,使得运行游戏所需的时间长,游戏运行效率较低,网络流量消耗大,增加了用户的游戏成本,影响了用户的游戏体验。However, in the existing method of loading a game application based on the H5 game platform, the user needs to download and install the corresponding game application package for each game, even if the user generates the H5 game platform and some by first installing the game application package. Game engine, in subsequent applications, even if you need to play a game supported by the certain game engine, you still need to The game application package containing the H5 game platform file and the corresponding installation file of the game engine makes the running of the game long, the game running efficiency is low, the network traffic is consumed, and the user's game cost is increased, and the influence is increased. The user's gaming experience.
发明内容Summary of the invention
本发明实施例提供了一种加载应用程序的方法及装置,提升游戏运行效率、降低运行游戏的网络流量。The embodiment of the invention provides a method and a device for loading an application program, which improves the operation efficiency of the game and reduces the network traffic of the running game.
为达到上述目的,In order to achieve the above objectives,
本发明第一方面实施例提供了一种加载应用程序的方法,包括:A first aspect of the present invention provides a method for loading an application, including:
接收应用类控件加载请求,查询发送应用类控件加载请求的终端设备是否存储有预先设置的平台文件;Receiving an application class control loading request, and querying whether the terminal device that sends the application class control loading request stores a preset platform file;
如果所述终端设备存储有所述平台文件,触发所述终端设备调用所述平台文件以加载所述平台的主页;If the terminal device stores the platform file, triggering the terminal device to invoke the platform file to load a homepage of the platform;
接收所述终端设备在所述平台的主页中发送的应用程序加载请求,获取所述应用程序加载请求对应的应用程序的地址信息;Receiving an application loading request sent by the terminal device in a homepage of the platform, and acquiring address information of an application corresponding to the application loading request;
查询所述终端设备是否安装有驱动所述应用程序的引擎;Querying whether the terminal device is installed with an engine that drives the application;
如果所述终端设备安装有驱动所述应用程序的引擎,触发所述终端设备启动所述应用程序的引擎,并基于启动的所述应用程序的引擎加载所述应用程序的地址信息对应的应用程序。If the terminal device is installed with an engine that drives the application, triggering the terminal device to start an engine of the application, and loading an application corresponding to the address information of the application based on the engine of the launched application .
本发明实施例提供的加载应用程序的方法,通过将驱动应用程序的引擎安装文件以及平台文件从应用程序包中分离,查询发送应用类控件加载请求的终端设备是否存储有预先设置的平台文件,以及是否安装有驱动所述应用程序的引擎,如果有,可以基于调用的平台文件以及安装的引擎加载应用程序,使得用户针对多种应用程序,只需要执行一次下载引擎安装文件以及平台文件,有效节约了网络流量,缩减了运行应用程序所需的时间,提升了应用程序运行效率。The method for loading an application provided by the embodiment of the present invention separates an engine installation file and a platform file of a driver application from an application package, and queries whether a terminal device that sends an application type control loading request stores a preset platform file. And whether the engine that drives the application is installed, and if so, the application can be loaded based on the invoked platform file and the installed engine, so that the user only needs to execute the download engine installation file and the platform file for multiple applications, which is effective. It saves network traffic, reduces the time required to run applications, and improves application efficiency.
本发明第二方面实施例提供了一种加载应用程序的装置,包括:第一查询模块、调用模块、地址信息获取模块、第二查询模块以及应用程序加载模块,其中,The second aspect of the present invention provides an apparatus for loading an application, including: a first query module, a calling module, an address information acquiring module, a second query module, and an application loading module, where
第一查询模块,用于接收应用类控件加载请求,查询发送应用类控件加载请求的终端设备是否存储有预先设置的平台文件;a first query module, configured to receive an application class control loading request, and query whether the terminal device that sends the application class control loading request stores a preset platform file;
调用模块,如果所述终端设备存储有所述平台文件,触发所述终端设备调用所述平台文件以加载所述平台的主页; Calling a module, if the terminal device stores the platform file, triggering the terminal device to invoke the platform file to load a homepage of the platform;
地址信息获取模块,用于接收所述终端设备在所述平台的主页中发送的应用程序加载请求,获取所述应用程序加载请求对应的应用程序的地址信息;An address information obtaining module, configured to receive an application loading request sent by the terminal device in a homepage of the platform, and obtain address information of an application corresponding to the application loading request;
第二查询模块,用于查询所述终端设备是否安装有驱动所述应用程序的引擎;a second query module, configured to query whether the terminal device is installed with an engine that drives the application;
应用程序加载模块,如果所述终端设备安装有驱动所述应用程序的引擎,触发所述终端设备启动所述应用程序的引擎,并基于启动的所述应用程序的引擎加载所述应用程序的地址信息对应的应用程序。An application loading module, if the terminal device is installed with an engine that drives the application, triggering the terminal device to start an engine of the application, and loading an address of the application based on an engine of the launched application The application corresponding to the information.
本发明实施例提供的加载应用程序的装置,通过将驱动应用程序的引擎安装文件以及平台文件从应用程序包中分离,第一查询模块查询发送应用类控件加载请求的终端设备是否存储有预先设置的平台文件,调用模块在终端设备存储有平台文件后,触发终端设备调用所述平台文件加载平台主页,地址信息获取模块在平台主页获取应用程序加载请求对应的应用程序的地址信息,第二查询模块查询是否安装有驱动所述应用程序的引擎,应用程序加载模块在安装有引擎时,基于调用的平台文件以及安装的引擎加载应用程序,使得用户针对多种应用程序,只需要执行一次下载引擎安装文件以及平台文件,有效节约了网络流量,缩减了运行应用程序所需的时间,提升了应用程序运行效率。The device for loading an application provided by the embodiment of the present invention separates the engine installation file and the platform file of the driver application from the application package, and the first query module queries whether the terminal device that sends the application class control loading request stores the preset. The platform file, the calling module, after the terminal device stores the platform file, triggers the terminal device to invoke the platform file loading platform homepage, and the address information obtaining module obtains the address information of the application corresponding to the application loading request on the platform homepage, and the second query The module queries whether an engine for driving the application is installed. When the engine is installed, the application loading module loads the application based on the invoked platform file and the installed engine, so that the user only needs to execute the download engine for multiple applications. Installation files and platform files save network traffic, reduce the time required to run applications, and improve application efficiency.
本发明第三方面实施例提供了一种终端设备,该终端设备包括壳体、处理器、存储器、电路板和电源电路,其中,所述电路板安置在所述壳体围成的空间内部,所述处理器和所述存储器设置在所述电路板上;所述电源电路,用于为所述终端设备的各个电路或器件供电;所述存储器用于存储可执行程序代码;所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行本发明第一方面实施例所述的加载应用程序的方法。A third aspect of the present invention provides a terminal device, including a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside a space enclosed by the housing, The processor and the memory are disposed on the circuit board; the power circuit is configured to supply power to each circuit or device of the terminal device; the memory is configured to store executable program code; the processor A program corresponding to the executable program code is executed by reading executable program code stored in the memory for executing the method of loading an application according to the first aspect of the present invention.
本发明第四方面实施例提供了一种计算机可读存储介质,具有存储于其中的指令,当执行所述指令时,执行如本发明第一方面实施例所述的加载应用程序的方法。A fourth aspect of the present invention provides a computer readable storage medium having instructions stored therein that, when executed, perform a method of loading an application as described in the first aspect of the present invention.
本发明第五方面实施例提供了一种计算机应用程序,当其在终端设备的处理器上执行时,执行如本发明第一方面实施例所述的加载应用程序的方法。A fifth aspect of the present invention provides a computer application that, when executed on a processor of a terminal device, performs a method of loading an application as described in the first aspect of the present invention.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1为本发明实施例加载应用程序的方法流程示意图; 1 is a schematic flowchart of a method for loading an application according to an embodiment of the present invention;
图2为本发明实施例加载应用程序的方法具体流程示意图;2 is a schematic flowchart of a method for loading an application according to an embodiment of the present invention;
图3为本发明实施例加载应用程序的装置结构示意图;3 is a schematic structural diagram of an apparatus for loading an application according to an embodiment of the present invention;
图4为根据本发明一个实施例的终端设备的结构示意图。FIG. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
具体实施方式detailed description
下面结合附图对本发明实施例进行详细描述。The embodiments of the present invention are described in detail below with reference to the accompanying drawings.
应当明确,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。It should be understood that the described embodiments are only a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
图1为本发明实施例加载应用程序的方法流程示意图。参见图1,该方法包括:FIG. 1 is a schematic flowchart of a method for loading an application according to an embodiment of the present invention. Referring to Figure 1, the method includes:
步骤101,接收应用类控件加载请求,查询发送应用类控件加载请求的终端设备是否存储有预先设置的平台文件;Step 101: Receive an application class control loading request, and query whether the terminal device that sends the application class control loading request stores a preset platform file.
本步骤中,在至少一个实施例中,接收应用类控件加载请求可以是存储有平台文件、引擎安装文件以及应用程序安装文件的服务器。本发明实施例中,通过将现有的应用程序包进行解封装,分别形成独立的平台文件、引擎安装文件以及应用程序安装文件,以在后续应用中可以根据用户的实际需要进行相应处理,而无需每次都将应用程序包进行推送,从而减少网络流量,降低推送应用程序包所需的时间。In this step, in at least one embodiment, the receiving application class control loading request may be a server that stores a platform file, an engine installation file, and an application installation file. In the embodiment of the present invention, the existing application package is decapsulated to form an independent platform file, an engine installation file, and an application installation file, so that the subsequent application can be processed according to the actual needs of the user. There is no need to push the application package every time, reducing network traffic and reducing the time required to push the application package.
本发明实施例中,应用类控件包括但不限于:游戏类控件、支付类控件、搜索类控件、娱乐类控件等。In the embodiment of the present invention, the application class control includes but is not limited to: a game class control, a payment class control, a search class control, an entertainment class control, and the like.
在至少一个实施例中,预先设置的平台文件为H5游戏平台文件,即第五代超文本标记语言游戏平台文件。当然,实际应用中,预先设置的平台文件也可以为其它平台文件,例如,H5搜索平台文件,或者,后续应用中可能出现的H6平台文件或H7平台文件等。In at least one embodiment, the pre-set platform file is an H5 game platform file, ie a fifth generation hypertext markup language game platform file. Of course, in actual applications, the preset platform files may also be other platform files, for example, H5 search platform files, or H6 platform files or H7 platform files that may appear in subsequent applications.
本发明实施例中,平台文件包含有平台运行的环境信息、支持的应用程序列表信息等,关于平台文件包含的详细内容为公知技术,在此略去详述。In the embodiment of the present invention, the platform file includes the environment information of the platform, the supported application list information, and the like. The detailed content included in the platform file is a well-known technology, which is omitted here.
在至少一个实施例中,接收应用类控件加载请求也可以是发送应用类控件加载请求的终端设备中的浏览器,由浏览器接收应用类控件加载请求并查询终端设备是否存储有预先设置的平台文件的流程。In at least one embodiment, the receiving application class control loading request may also be a browser in the terminal device that sends the application class control loading request, and the browser receives the application class control loading request and queries whether the terminal device stores the preset platform. The flow of the file.
步骤102,如果所述终端设备存储有所述平台文件,触发所述终端设备调用所述平台文件以加载所述平台的主页;Step 102: If the terminal device stores the platform file, triggering the terminal device to invoke the platform file to load a homepage of the platform;
本步骤中,如果终端设备存储有平台文件,表明该终端设备已预先下载过平台文件,因而,无需终端设备再行下载,只需调用已下载的平台文件以加载平台的主页即可。 In this step, if the terminal device stores the platform file, it indicates that the terminal device has previously downloaded the platform file. Therefore, the terminal device is not required to download again, and only the downloaded platform file is called to load the platform homepage.
本发明实施例中,在加载所述平台的主页后,在所述平台的主页中显示应用程序列表,用户可以通过点击应用程序列表中的应用程序以加载该应用程序。In the embodiment of the present invention, after loading the homepage of the platform, an application list is displayed in the homepage of the platform, and the user can load the application by clicking an application in the application list.
在至少一个实施例中,在所述如果所述终端设备存储有所述平台文件之后,触发所述终端设备调用所述平台文件以加载所述平台的主页之前,该方法进一步包括:In at least one embodiment, after the triggering the terminal device to invoke the platform file to load the home page of the platform after the terminal device stores the platform file, the method further includes:
获取所述终端设备存储的所述平台文件的第一版本信息,如果存储的所述平台文件的第二版本信息高于所述第一版本信息,向所述终端设备推送所述第二版本信息对应的平台文件,以更新所述终端设备存储的所述平台文件。Acquiring the first version information of the platform file that is stored by the terminal device, and if the stored second version information of the platform file is higher than the first version information, pushing the second version information to the terminal device Corresponding platform file to update the platform file stored by the terminal device.
本步骤中,在有新版本的平台文件发布后,终端设备可以及时获取新版本的平台文件。In this step, after a new version of the platform file is released, the terminal device can obtain the new version of the platform file in time.
在至少一个实施例中,该方法进一步包括:In at least one embodiment, the method further comprises:
如果所述终端设备未存储有所述平台文件,推送所述平台文件并存储在所述终端设备中,触发所述终端设备调用存储的所述平台文件以加载所述平台的主页。If the terminal device does not store the platform file, push the platform file and store it in the terminal device, triggering the terminal device to invoke the stored platform file to load the home page of the platform.
本步骤中,如果接收应用类控件加载请求是发送所述应用类控件加载请求的终端设备中的浏览器,推送所述平台文件包括:In this step, if the receiving application class control loading request is a browser in the terminal device that sends the application class control loading request, pushing the platform file includes:
浏览器将接收的应用类控件加载请求向存储有所述平台文件的服务器发送,以使所述服务器接收所述应用类控件加载请求,向发送所述应用类控件加载请求的终端设备推送所述平台文件。The browser sends the received application class control loading request to the server storing the platform file, so that the server receives the application class control loading request, and pushes the terminal device that sends the application class control loading request to the terminal device. Platform file.
步骤103,接收所述终端设备在所述平台的主页中发送的应用程序加载请求,获取所述应用程序加载请求对应的应用程序的地址信息;Step 103: Receive an application loading request sent by the terminal device in a homepage of the platform, and obtain address information of an application corresponding to the application loading request.
本步骤中,用户在所述平台的主页中显示的应用程序列表中,点击所述应用程序列表中的目标应用程序,触发发送应用程序加载请求。In this step, the user clicks on the target application in the application list in the application list displayed on the homepage of the platform, and triggers the sending of the application loading request.
在至少一个实施例中,获取所述应用程序加载请求对应的应用程序的地址信息包括:In at least one embodiment, obtaining address information of the application corresponding to the application loading request includes:
所述平台的主页使用网络视图打开所述应用程序加载请求对应的应用程序的启动页面,执行所述启动页面中的JS代码,获取所述应用程序加载请求对应的应用程序的地址信息,并通过预先设置的接口通知所述平台的主页。The homepage of the platform uses the network view to open a startup page of the application corresponding to the application loading request, execute the JS code in the startup page, obtain the address information of the application corresponding to the application loading request, and pass the A pre-set interface notifies the home page of the platform.
步骤104,查询所述终端设备是否安装有驱动所述应用程序的引擎;Step 104: Query whether the terminal device is installed with an engine that drives the application.
本步骤中,对于不同的应用程序,可能需要不同的引擎进行驱动,例如,对于游戏类控件中的各游戏,有些游戏需要白鹭(Egret)引擎进行驱动,有些游戏需要拉亚(Laya)引擎进行驱动。In this step, different engines may be required for different applications. For example, for each game in the game control, some games need to be driven by the Egret engine, and some games require the Laya engine. drive.
在至少一个实施例中,查询所述终端设备是否安装有驱动所述应用程序的引擎包括:In at least one embodiment, querying whether the terminal device is installed with an engine that drives the application includes:
A11,获取所述应用程序加载请求对应的应用程序类型以及应用类标识;A11. Obtain an application type corresponding to the application loading request and an application class identifier.
本步骤中,应用类标识用于标识应用程序所属的应用类是游戏类、支付类、搜索类还是 娱乐类。In this step, the application class identifier is used to identify whether the application class to which the application belongs is a game class, a payment class, a search class, or Entertainment class.
应用程序类型是指应用类下的应用程序的类型,每一应用程序类型对应一引擎。例如,以游戏类中的游戏应用程序为例,游戏应用程序类型可以包括但不限于:白鹭类型以及拉亚类型等,其中,白鹭类型的游戏对应白鹭引擎,即需要白鹭引擎进行驱动,拉亚类型的游戏对应拉亚引擎,即需要拉亚引擎进行驱动。其中,白鹭引擎是一个开源免费的游戏框架,用于构建二维游戏、演示程序和其他图形界面交互应用等,白鹭引擎使用TypeScript脚本语言开发。The application type refers to the type of application under the application class, and each application type corresponds to an engine. For example, in the game application in the game class, the game application type may include, but is not limited to, an egret type and a Raya type, wherein the game of the egret type corresponds to the egret engine, that is, the egret engine is required to drive, Raya. The type of game corresponds to the Raya engine, which requires the Raya engine to be driven. Among them, the Egret Engine is an open source free game framework for building 2D games, demos and other graphical interface interaction applications. The Egret Engine is developed using the TypeScript scripting language.
本发明实施例中,获取所述应用程序加载请求对应的应用程序类型与获取所述应用程序加载请求对应的应用程序的地址信息相同,即通过所述平台的主页使用网络视图打开所述应用程序加载请求对应的应用程序的启动页面,执行所述启动页面中的JS代码,获取所述应用程序加载请求对应的应用程序的应用程序类型,并通过预先设置的接口通知所述平台的主页。In the embodiment of the present invention, the application type corresponding to the application loading request is the same as the address information of the application corresponding to the application loading request, that is, the application is opened by using the network view of the platform of the platform. The startup page of the application corresponding to the loading request is executed, the JS code in the startup page is executed, the application type of the application corresponding to the application loading request is obtained, and the homepage of the platform is notified through a preset interface.
A12,查询预先设置的应用类标识与引擎集的映射关系,得到获取的应用类标识映射的引擎集;A12. Query a mapping relationship between the preset application class identifier and the engine set, and obtain an engine set of the acquired application class identifier mapping.
A13,查询得到的引擎集中应用程序类型与引擎的映射关系,得到获取的应用程序类型映射的引擎;A13, querying the mapping relationship between the application type of the engine and the engine, and obtaining the engine of the acquired application type mapping;
A14,查询所述终端设备是否安装有得到的引擎。A14: Query whether the terminal device is installed with the obtained engine.
所应说明的是,获取所述应用程序加载请求对应的应用程序的地址信息与查询所述终端设备是否安装有驱动所述应用程序的引擎并没有先后顺序之分,即获取所述应用程序加载请求对应的应用程序的地址信息可以在查询所述终端设备是否安装有驱动所述应用程序的引擎之后,或者,与查询所述终端设备是否安装有驱动所述应用程序的引擎同时进行。It should be noted that obtaining the address information of the application corresponding to the application loading request and querying whether the terminal device is installed with the engine that drives the application does not have a sequence, that is, acquiring the application loading. The address information of the requesting application may be performed after querying whether the terminal device is installed with an engine that drives the application, or simultaneously with querying whether the terminal device is installed with an engine that drives the application.
步骤105,如果所述终端设备安装有驱动所述应用程序的引擎,触发所述终端设备启动所述应用程序的引擎,并基于启动的所述应用程序的引擎加载所述应用程序的地址信息对应的应用程序。Step 105: If the terminal device is installed with an engine that drives the application, triggering the terminal device to start an engine of the application, and loading an address information of the application based on an engine of the launched application s application.
本步骤中,在至少一个实施例中,基于启动的所述应用程序的引擎加载所述应用程序的地址信息对应的应用程序包括:In this step, in at least one embodiment, the application corresponding to the address information of the application loaded by the engine of the launched application includes:
所述应用程序的引擎加载、解析并执行所述地址信息对应的应用程序中的应用程序脚本,并在执行过程中调用平台为所述应用程序脚本提供的运行环境。The engine of the application loads, parses, and executes an application script in the application corresponding to the address information, and invokes an operating environment provided by the platform for the application script during execution.
在至少一个实施例中,在所述终端设备安装有驱动所述应用程序的引擎之后,触发所述终端设备启动所述应用程序的引擎之前,该方法可以进一步包括:In at least one embodiment, after the terminal device is installed with the engine that drives the application, before the terminal device is triggered to start the engine of the application, the method may further include:
获取所述终端设备安装的所述引擎的第一属性信息,如果存储的引擎安装文件的第二属 性信息高于所述第一属性信息,向所述终端设备推送所述第二属性信息对应的引擎安装文件,以更新所述终端设备安装的所述引擎。Obtaining first attribute information of the engine installed by the terminal device, if the second genus of the stored engine installation file The attribute information is higher than the first attribute information, and the engine installation file corresponding to the second attribute information is pushed to the terminal device to update the engine installed by the terminal device.
本步骤中,属性信息为版本信息。In this step, the attribute information is version information.
在至少一个实施例中,该方法进一步包括:In at least one embodiment, the method further comprises:
如果所述终端设备未安装有驱动所述应用程序的引擎,推送所述驱动所述应用程序的引擎对应的引擎安装文件,以使所述终端设备安装所述引擎安装文件得到所述应用程序的引擎后,启动所述应用程序的引擎,并基于启动的所述应用程序的引擎加载所述应用程序的地址信息对应的应用程序。If the terminal device is not installed with an engine that drives the application, pushing an engine installation file corresponding to an engine that drives the application, so that the terminal device installs the engine installation file to obtain the application. After the engine, the engine of the application is started, and an application corresponding to the address information of the application is loaded based on the engine of the launched application.
本步骤中,如果接收应用类控件加载请求是发送所述应用类控件加载请求的终端设备中的浏览器,推送所述驱动所述应用程序的引擎对应的引擎安装文件包括:In this step, if the receiving application class control loading request is a browser in the terminal device that sends the application class control loading request, pushing the engine installation file corresponding to the engine that drives the application includes:
浏览器向所述服务器发送引擎安装文件请求,以使所述服务器接收所述引擎安装文件请求,向所述终端设备推送所述引擎安装文件请求对应的引擎安装文件。The browser sends an engine installation file request to the server, so that the server receives the engine installation file request, and pushes an engine installation file corresponding to the engine installation file request to the terminal device.
图2为本发明实施例加载应用程序的方法具体流程示意图。参见图2,以终端设备首次运行游戏为例,该流程包括:FIG. 2 is a schematic flowchart of a method for loading an application according to an embodiment of the present invention. Referring to FIG. 2, taking the first operation of the game by the terminal device, the process includes:
步骤201,在浏览器主页中点击游戏类控件; Step 201, click a game class control in the browser homepage;
步骤202,触发下载游戏平台文件并存储; Step 202, triggering downloading of the game platform file and storing;
本步骤中,作为一可选实施例,游戏平台文件为H5游戏平台安卓安装包文件。In this step, as an optional embodiment, the game platform file is an H5 game platform Android installation package file.
步骤203,调用游戏平台文件进入游戏平台主页; Step 203, calling the game platform file to enter the game platform homepage;
步骤204,在游戏平台主页显示的游戏列表中选取目标游戏,进入游戏启动页面;Step 204: Select a target game in the game list displayed on the homepage of the game platform, and enter a game start page;
本步骤中,在至少一个实施例中,游戏平台主页使用网络视图(webview)启动并进入选取的目标游戏的游戏启动页面。In this step, in at least one embodiment, the game platform home page uses a webview to launch and enter the game launch page of the selected target game.
步骤205,在游戏启动页面中执行JS代码,得到目标游戏的游戏地址和游戏类型; Step 205, executing a JS code in the game startup page to obtain a game address and a game type of the target game;
本步骤中,JS代码为Javascript代码。In this step, the JS code is Javascript code.
步骤206,查询游戏地址和游戏类型,获取目标游戏对应的引擎,下载对应的引擎安装文件;Step 206: Query a game address and a game type, obtain an engine corresponding to the target game, and download a corresponding engine installation file;
本步骤中,根据游戏地址和游戏类型,如果获取的目标游戏对应的引擎为白鹭引擎,则下载白鹭引擎安装文件,即下载白鹭引擎插件;如果获取的目标游戏对应的引擎为拉亚引擎,则下载拉亚引擎安装文件,即下载拉亚引擎插件;如果获取的目标游戏对应的引擎为米大师支付引擎,则下载米大师支付安装文件,即下载米大师支付插件。In this step, according to the game address and the game type, if the engine corresponding to the target game is the Egret engine, download the Egret engine installation file, that is, download the Egret engine plug-in; if the target game corresponding to the engine is the Raya engine, then Download the Raya engine installation file, that is, download the Raya engine plug-in; if the engine corresponding to the target game is the M-master payment engine, download the M-master payment installation file, that is, download the m-master payment plug-in.
步骤207,运行引擎安装文件,并基于运行的引擎运行目标游戏。In step 207, the engine installation file is run and the target game is run based on the running engine.
本步骤中,如果下载白鹭引擎插件,安装白鹭引擎插件,并基于安装的白鹭引擎运行白 鹭游戏;如果下载拉亚引擎插件,安装拉亚引擎插件,并基于安装的拉亚引擎运行拉亚游戏;如果下载用于游戏支付的米大师支付插件,安装米大师支付插件,并基于安装的米大师运行米大师支付模块。In this step, if you download the Egret Engine plugin, install the Egret Engine plugin and run white based on the installed Egret engine. If you download the Raya engine plugin, install the Raya engine plugin, and run the Raya game based on the installed Raya engine; if you download the m master pays plugin for game payment, install the m master pays plugin, and install based Master Mi runs the Master Meter payment module.
本发明实施例中,用户点击浏览器主页中的游戏类控件图标后,下载或根据存储的游戏平台文件的版本号更新游戏平台文件,例如,游戏平台APK插件。在下载或更新完成后,动态调用游戏平台APK插件进入游戏平台主页,在游戏平台主页展示的游戏列表中,用户点击其中一个游戏,例如,Egret游戏“恶魔大人”,游戏平台主页使用网络视图打开该游戏的启动页面,随后执行游戏启动页面中的JS代码,JS代码通过预先设置的接口通知游戏平台主页需要运行的目标游戏的地址、类型等信息,游戏平台主页根据得到的目标游戏类型,下载或更新相对应的游戏引擎,例如,Egret白鹭引擎,下载或更新完成后,依据目标游戏的地址进入游戏,显示游戏资源加载界面,然后开始运行游戏。In the embodiment of the present invention, after the user clicks the game type control icon in the browser homepage, the user downloads or updates the game platform file according to the version number of the stored game platform file, for example, the game platform APK plug-in. After the download or update is completed, the game platform APK plugin is dynamically invoked to enter the game platform homepage. In the game list displayed on the game platform homepage, the user clicks on one of the games, for example, the Egret game "Devil Adult", and the game platform homepage is opened using the network view. The game launch page, then execute the JS code in the game launch page, the JS code informs the game platform home page of the address, type and other information of the target game that needs to be run through the preset interface, and the game platform home page downloads according to the obtained target game type. Or update the corresponding game engine, for example, the Egret Egret engine. After the download or update is completed, enter the game according to the address of the target game, display the game resource loading interface, and then start running the game.
由上述可见,本发明实施例加载应用程序的方法,通过将驱动应用程序的引擎安装文件以及平台文件从应用程序包中分离,实行插件化管理,使得用户针对多种应用程序,只需要执行一次下载引擎安装文件以及平台文件,运行不同类型的应用程序时对用户透明,有效降低了应用程序包的大小,节约了网络流量,缩减了运行应用程序所需的时间,提升了应用程序运行效率,增强了用户的应用程序体验;进一步地,还可以对插件化的引擎安装文件以及平台文件的下载和升级实现版本管理,及时更新和维护引擎以及平台。It can be seen from the above that the method for loading an application in the embodiment of the present invention performs plug-in management by separating the engine installation file and the platform file of the driver application from the application package, so that the user only needs to execute once for multiple applications. Download engine installation files and platform files, transparent to users when running different types of applications, effectively reducing the size of application packages, saving network traffic, reducing the time required to run applications, and improving application efficiency. The user's application experience is enhanced; further, version management of plug-in engine installation files and platform file downloads and upgrades can be implemented, and engines and platforms can be updated and maintained in a timely manner.
图3为本发明实施例加载应用程序的装置结构示意图。参见图3,该装置包括:第一查询模块301、调用模块302、地址信息获取模块303、第二查询模块304以及应用程序加载模块305,其中,FIG. 3 is a schematic structural diagram of an apparatus for loading an application according to an embodiment of the present invention. Referring to FIG. 3, the device includes: a first query module 301, a calling module 302, an address information obtaining module 303, a second query module 304, and an application loading module 305, where
第一查询模块301,用于接收应用类控件加载请求,查询发送应用类控件加载请求的终端设备是否存储有预先设置的平台文件;The first query module 301 is configured to receive an application class control loading request, and query whether the terminal device that sends the application class control loading request stores a preset platform file.
本发明实施例中,应用类控件包括但不限于:游戏类控件、支付类控件、搜索类控件、娱乐类控件等。In the embodiment of the present invention, the application class control includes but is not limited to: a game class control, a payment class control, a search class control, an entertainment class control, and the like.
平台文件包括但不限于:H5游戏平台文件以及H5搜索平台文件等。Platform files include but are not limited to: H5 game platform files and H5 search platform files.
调用模块302,如果所述终端设备存储有所述平台文件,触发所述终端设备调用所述平台文件以加载所述平台的主页;Calling module 302, if the terminal device stores the platform file, triggering the terminal device to invoke the platform file to load a homepage of the platform;
本发明实施例中,在至少一个实施例中,调用模块302包括:判断单元以及第一触发单元(图中未示出),其中,In the embodiment of the present invention, in at least one embodiment, the calling module 302 includes: a determining unit and a first triggering unit (not shown), wherein
判断单元,如果所述终端设备存储有所述平台文件,通知第一触发单元;a determining unit, if the terminal device stores the platform file, notifying the first trigger unit;
第一触发单元,用于触发所述终端设备调用所述平台文件以加载所述平台的主页。 The first triggering unit is configured to trigger the terminal device to invoke the platform file to load a homepage of the platform.
在至少一个实施例中,判断单元进一步用于在所述终端设备未存储有所述平台文件时,通知推送单元,调用模块302还可以包括:In at least one embodiment, the determining unit is further configured to notify the pushing unit when the terminal device does not store the platform file, and the calling module 302 may further include:
推送单元,用于接收通知,推送所述平台文件并存储在所述终端设备中,触发所述终端设备调用存储的所述平台文件以加载所述平台的主页。And a pushing unit, configured to receive the notification, push the platform file, and store the file in the terminal device, triggering the terminal device to invoke the stored platform file to load a homepage of the platform.
在至少一个实施例中,调用模块302还可以包括:In at least one embodiment, the invoking module 302 can further include:
平台文件更新单元,用于拦截判断单元输出至第一触发单元的通知,获取所述终端设备存储的所述平台文件的第一版本信息,如果存储的所述平台文件的第二版本信息高于所述第一版本信息,向所述终端设备推送所述第二版本信息对应的平台文件,以更新所述终端设备存储的所述平台文件,并在更新后,通知第一触发单元。a platform file update unit, configured to intercept a notification output by the determining unit to the first trigger unit, and obtain first version information of the platform file stored by the terminal device, if the second version information of the stored platform file is higher than And the first version information, the platform file corresponding to the second version information is pushed to the terminal device to update the platform file stored by the terminal device, and after the update, notify the first trigger unit.
地址信息获取模块303,用于接收所述终端设备在所述平台的主页中发送的应用程序加载请求,获取所述应用程序加载请求对应的应用程序的地址信息;The address information obtaining module 303 is configured to receive an application loading request sent by the terminal device in a homepage of the platform, and obtain address information of an application corresponding to the application loading request.
本发明实施例中,在加载所述平台的主页后,在所述平台的主页中显示应用程序列表,用户可以通过点击应用程序列表中的一应用程序以发送应用程序加载请求。In the embodiment of the present invention, after loading the homepage of the platform, an application list is displayed in the homepage of the platform, and the user can send an application loading request by clicking an application in the application list.
在至少一个实施例中,地址信息获取模块303包括:应用程序加载请求单元、启动单元、代码执行单元以及通知单元(图中未示出),其中,In at least one embodiment, the address information acquisition module 303 includes: an application load request unit, a startup unit, a code execution unit, and a notification unit (not shown), wherein
应用程序加载请求单元,用于在加载所述平台的主页中显示应用程序列表,接收用户通过点击应用程序列表中的一应用程序生成的应用程序加载请求;An application load request unit, configured to display an application list in a homepage that loads the platform, and receive an application load request generated by a user by clicking an application in the application list;
启动单元,用于在接收所述应用程序加载请求后,使用网络视图打开所述应用程序加载请求对应的应用程序的启动页面;a startup unit, configured to: after receiving the application loading request, use a network view to open a startup page of an application corresponding to the application loading request;
代码执行单元,用于执行所述启动页面中的Java描述语言代码,获取所述应用程序加载请求对应的应用程序的地址信息;a code execution unit, configured to execute a Java description language code in the startup page, and obtain address information of an application corresponding to the application loading request;
通知单元,用于通过预先设置的接口将获取的地址信息通知所述平台的主页。And a notification unit, configured to notify the homepage of the platform by the acquired address information through a preset interface.
第二查询模块304,用于查询所述终端设备是否安装有驱动所述应用程序的引擎;The second query module 304 is configured to query whether the terminal device is installed with an engine that drives the application;
在至少一个实施例中,第二查询模块304可以包括:标识获取单元、第一查询单元、第二查询单元以及第三查询单元(图中未示出),其中,In at least one embodiment, the second query module 304 can include: an identifier obtaining unit, a first query unit, a second query unit, and a third query unit (not shown), wherein
标识获取单元,用于获取所述应用程序加载请求对应的应用程序类型以及应用类标识;An identifier obtaining unit, configured to acquire an application type corresponding to the application loading request and an application class identifier;
第一查询单元,用于查询预先设置的应用类标识与引擎集的映射关系,得到获取的应用类标识映射的引擎集;The first query unit is configured to query a mapping relationship between the preset application class identifier and the engine set, and obtain an engine set of the acquired application class identifier mapping;
第二查询单元,用于查询得到的引擎集中应用程序类型与引擎的映射关系,得到获取的应用程序类型映射的引擎;a second query unit, configured to query the obtained mapping relationship between the application type of the engine and the engine, and obtain an engine of the acquired application type mapping;
第三查询单元,用于查询所述终端设备是否安装有得到的引擎。 The third query unit is configured to query whether the terminal device is installed with the obtained engine.
应用程序加载模块305,如果所述终端设备安装有驱动所述应用程序的引擎,触发所述终端设备启动所述应用程序的引擎,并基于启动的所述应用程序的引擎加载所述应用程序的地址信息对应的应用程序。An application loading module 305, if the terminal device is installed with an engine that drives the application, triggering the terminal device to start an engine of the application, and loading the application based on an engine of the launched application The application corresponding to the address information.
在至少一个实施例中,应用程序加载模块305包括:引擎判断单元以及加载单元(图中未示出),其中,In at least one embodiment, the application loading module 305 includes: an engine determining unit and a loading unit (not shown), wherein
引擎判断单元,如果所述终端设备安装有驱动所述应用程序的引擎,通知加载单元;An engine determining unit, if the terminal device is installed with an engine that drives the application, notifying the loading unit;
加载单元,用于触发所述终端设备启动所述应用程序的引擎,并基于启动的所述应用程序的引擎加载所述应用程序的地址信息对应的应用程序。a loading unit, configured to trigger the terminal device to start an engine of the application, and load an application corresponding to the address information of the application based on the engine of the launched application.
在至少一个实施例中,引擎判断单元进一步用于在所述终端设备未安装有驱动所述应用程序的引擎时,通知引擎推送单元,应用程序加载模块305还可以包括:In at least one embodiment, the engine determining unit is further configured to notify the engine pushing unit when the terminal device is not installed with the engine that drives the application, and the application loading module 305 may further include:
引擎推送单元,用于接收通知,推送所述驱动所述应用程序的引擎对应的引擎安装文件,以使所述终端设备安装所述引擎安装文件得到所述应用程序的引擎,并通知加载单元。The engine pushing unit is configured to receive a notification, and push the engine installation file corresponding to the engine that drives the application, so that the terminal device installs the engine installation file to obtain an engine of the application, and notifies the loading unit.
在至少一个实施例中,应用程序加载模块305还可以包括:In at least one embodiment, the application loading module 305 can further include:
引擎更新单元,用于拦截引擎判断单元输出至加载单元的通知,获取所述终端设备安装的所述引擎的第一属性信息,如果存储的引擎安装文件的第二属性信息高于所述第一属性信息,向所述终端设备推送所述第二属性信息对应的引擎安装文件,以更新所述终端设备安装的所述引擎,并在更新后,通知加载单元。An engine update unit, configured to intercept a notification that the engine determining unit outputs to the loading unit, and acquire first attribute information of the engine installed by the terminal device, if the second attribute information of the stored engine installation file is higher than the first The attribute information is used to push an engine installation file corresponding to the second attribute information to the terminal device to update the engine installed by the terminal device, and notify the loading unit after the update.
为了实现上述实施例,本发明还提出一种终端设备,图4为根据本发明一个实施例的终端设备的结构示意图。如图4所示,该终端设备包括壳体61、处理器62、存储器63、电路板64和电源电路65,其中,上述电路板64安置在上述壳体61围成的空间内部,上述处理器62和上述存储器63设置在上述电路板64上;上述电源电路65,用于为上述终端设备的各个电路或器件供电;上述存储器63用于存储可执行程序代码;上述处理器62通过读取上述存储器63中存储的可执行程序代码来运行与上述可执行程序代码对应的程序,以用于执行如图1所示的本发明实施例的加载应用程序的方法。In order to implement the foregoing embodiments, the present invention further provides a terminal device, and FIG. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present invention. As shown in FIG. 4, the terminal device includes a housing 61, a processor 62, a memory 63, a circuit board 64, and a power supply circuit 65, wherein the circuit board 64 is disposed inside a space surrounded by the housing 61, and the processor 62 and the above-mentioned memory 63 are disposed on the circuit board 64; the power supply circuit 65 is configured to supply power to each circuit or device of the terminal device; the memory 63 is used to store executable program code; and the processor 62 reads the above The executable program code stored in the memory 63 runs a program corresponding to the above-described executable program code for executing the method of loading an application of the embodiment of the present invention as shown in FIG. 1.
本发明实施例中的终端设备可以包括:手机、智能电话、笔记本电脑、数字广播接收机、个人数字助理(PDA)、平板电脑(PAD)、便携式多媒体播放器(PMP)、导航装置、台式机等等终端设备。The terminal device in the embodiment of the present invention may include: a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a personal digital assistant (PDA), a tablet computer (PAD), a portable multimedia player (PMP), a navigation device, and a desktop computer. And so on.
本发明实施例还提供了一种计算机可读存储介质,具有存储于其中的指令,当执行所述指令时,执行如参考图1所示的本发明实施例的加载应用程序的方法。The embodiment of the present invention further provides a computer readable storage medium having instructions stored therein, and when the instructions are executed, a method of loading an application as described with reference to FIG. 1 of the present invention.
本发明实施例还提供了一种计算机应用程序,当其在终端设备的处理器上执行时,执行如参考图1所示的本发明实施例的加载应用程序的方法。 The embodiment of the present invention further provides a computer application program, when executed on a processor of the terminal device, performs a method of loading an application as described with reference to the embodiment of the present invention shown in FIG.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this context, relational terms such as first and second are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply such entities or operations. There is any such actual relationship or order between them. Furthermore, the term "comprises" or "comprises" or "comprises" or any other variations thereof is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device that comprises a plurality of elements includes not only those elements but also Other elements, or elements that are inherent to such a process, method, item, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be embodied in any computer readable medium, Used in conjunction with, or in conjunction with, an instruction execution system, apparatus, or device (eg, a computer-based system, a system including a processor, or other system that can fetch instructions and execute instructions from an instruction execution system, apparatus, or device) Or use with equipment. For the purposes of this specification, a "computer-readable medium" can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM). In addition, the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that portions of the invention may be implemented in hardware, software, firmware or a combination thereof. In the above-described embodiments, multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. All should be covered by the scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims (21)

  1. 一种加载应用程序的方法,其特征在于,所述方法包括:A method of loading an application, the method comprising:
    接收应用类控件加载请求,查询发送应用类控件加载请求的终端设备是否存储有预先设置的平台文件;Receiving an application class control loading request, and querying whether the terminal device that sends the application class control loading request stores a preset platform file;
    如果所述终端设备存储有所述平台文件,触发所述终端设备调用所述平台文件以加载所述平台的主页;If the terminal device stores the platform file, triggering the terminal device to invoke the platform file to load a homepage of the platform;
    接收所述终端设备在所述平台的主页中发送的应用程序加载请求,获取所述应用程序加载请求对应的应用程序的地址信息;Receiving an application loading request sent by the terminal device in a homepage of the platform, and acquiring address information of an application corresponding to the application loading request;
    查询所述终端设备是否安装有驱动所述应用程序的引擎;Querying whether the terminal device is installed with an engine that drives the application;
    如果所述终端设备安装有驱动所述应用程序的引擎,触发所述终端设备启动所述应用程序的引擎,并基于启动的所述应用程序的引擎加载所述应用程序的地址信息对应的应用程序。If the terminal device is installed with an engine that drives the application, triggering the terminal device to start an engine of the application, and loading an application corresponding to the address information of the application based on the engine of the launched application .
  2. 根据权利要求1所述的方法,其特征在于,所述查询所述终端设备是否安装有驱动所述应用程序的引擎包括:The method according to claim 1, wherein the querying whether the terminal device is installed with an engine for driving the application comprises:
    获取所述应用程序加载请求对应的应用程序类型以及应用类标识;Obtaining an application type corresponding to the application loading request and an application class identifier;
    查询预先设置的应用类标识与引擎集的映射关系,得到获取的应用类标识映射的引擎集;Querying a mapping relationship between the preset application class identifier and the engine set, and obtaining an engine set of the acquired application class identifier mapping;
    查询得到的引擎集中应用程序类型与引擎的映射关系,得到获取的应用程序类型映射的引擎;Querying the mapping relationship between the application type of the engine and the engine, and obtaining the engine of the acquired application type mapping;
    查询所述终端设备是否安装有得到的引擎。Query whether the terminal device is installed with the obtained engine.
  3. 根据权利要求1或2所述的方法,其特征在于,所述获取所述应用程序加载请求对应的应用程序的地址信息包括:The method according to claim 1 or 2, wherein the obtaining the address information of the application corresponding to the application loading request comprises:
    所述平台的主页使用网络视图打开所述应用程序加载请求对应的应用程序的启动页面,执行所述启动页面中的Java描述语言代码,获取所述应用程序加载请求对应的应用程序的地址信息,并通过预先设置的接口通知所述平台的主页。The homepage of the platform uses a network view to open a startup page of the application corresponding to the application loading request, execute a Java description language code in the startup page, and obtain address information of an application corresponding to the application loading request. And notify the home page of the platform through a preset interface.
  4. 根据权利要求1至3任一项所述的方法,其特征在于,所述方法进一步包括:The method according to any one of claims 1 to 3, wherein the method further comprises:
    如果所述终端设备未存储有所述平台文件,推送所述平台文件并存储在所述终端设备中,触发所述终端设备调用存储的所述平台文件以加载所述平台的主页。If the terminal device does not store the platform file, push the platform file and store it in the terminal device, triggering the terminal device to invoke the stored platform file to load the home page of the platform.
  5. 根据权利要求4所述的方法,其特征在于,如果接收应用类控件加载请求是发送所述应用类控件加载请求的终端设备中的浏览器,推送所述平台文件包括:The method according to claim 4, wherein if the receiving application class control loading request is a browser in a terminal device that sends the application class control loading request, pushing the platform file comprises:
    浏览器将接收的应用类控件加载请求向存储有所述平台文件的服务器发送,以使所述服 务器接收所述应用类控件加载请求,向发送所述应用类控件加载请求的终端设备推送所述平台文件。The browser sends the received application class control load request to the server storing the platform file to make the service The server receives the application class control loading request, and pushes the platform file to a terminal device that sends the application class control loading request.
  6. 根据权利要求1至5任一项所述的方法,其特征在于,在所述如果所述终端设备存储有所述平台文件之后,触发所述终端设备调用所述平台文件以加载所述平台的主页之前,所述方法进一步包括:The method according to any one of claims 1 to 5, wherein after the terminal device stores the platform file, triggering the terminal device to invoke the platform file to load the platform Before the home page, the method further includes:
    获取所述终端设备存储的所述平台文件的第一版本信息,如果存储的所述平台文件的第二版本信息高于所述第一版本信息,向所述终端设备推送所述第二版本信息对应的平台文件,以更新所述终端设备存储的所述平台文件。Acquiring the first version information of the platform file that is stored by the terminal device, and if the stored second version information of the platform file is higher than the first version information, pushing the second version information to the terminal device Corresponding platform file to update the platform file stored by the terminal device.
  7. 根据权利要求1至6任一项所述的方法,其特征在于,在所述终端设备安装有驱动所述应用程序的引擎之后,触发所述终端设备启动所述应用程序的引擎之前,所述方法进一步包括:The method according to any one of claims 1 to 6, wherein after the terminal device is installed with an engine that drives the application, the terminal device is triggered to start the engine of the application, The method further includes:
    获取所述终端设备安装的所述引擎的第一属性信息,如果存储的引擎安装文件的第二属性信息高于所述第一属性信息,向所述终端设备推送所述第二属性信息对应的引擎安装文件,以更新所述终端设备安装的所述引擎。Acquiring the first attribute information of the engine installed by the terminal device, if the second attribute information of the stored engine installation file is higher than the first attribute information, pushing the second attribute information corresponding to the terminal device An engine installation file to update the engine installed by the terminal device.
  8. 根据权利要求1至7任一项所述的方法,其特征在于,所述方法进一步包括:The method according to any one of claims 1 to 7, wherein the method further comprises:
    如果所述终端设备未安装有驱动所述应用程序的引擎,推送所述驱动所述应用程序的引擎对应的引擎安装文件,以使所述终端设备安装所述引擎安装文件得到所述应用程序的引擎后,启动所述应用程序的引擎,并基于启动的所述应用程序的引擎加载所述应用程序的地址信息对应的应用程序。If the terminal device is not installed with an engine that drives the application, pushing an engine installation file corresponding to an engine that drives the application, so that the terminal device installs the engine installation file to obtain the application. After the engine, the engine of the application is started, and an application corresponding to the address information of the application is loaded based on the engine of the launched application.
  9. 根据权利要求1至8任一项所述的方法,其特征在于,所述平台文件为第五代超文本标记语言平台文件,所述应用类控件为游戏类控件。The method according to any one of claims 1 to 8, wherein the platform file is a fifth generation hypertext markup language platform file, and the application class control is a game type control.
  10. 一种加载应用程序的装置,其特征在于,所述装置包括:第一查询模块、调用模块、地址信息获取模块、第二查询模块以及应用程序加载模块,其中,An apparatus for loading an application, the apparatus comprising: a first query module, a calling module, an address information acquiring module, a second query module, and an application loading module, wherein
    第一查询模块,用于接收应用类控件加载请求,查询发送应用类控件加载请求的终端设备是否存储有预先设置的平台文件;a first query module, configured to receive an application class control loading request, and query whether the terminal device that sends the application class control loading request stores a preset platform file;
    调用模块,如果所述终端设备存储有所述平台文件,触发所述终端设备调用所述平台文件以加载所述平台的主页;Calling a module, if the terminal device stores the platform file, triggering the terminal device to invoke the platform file to load a homepage of the platform;
    地址信息获取模块,用于接收所述终端设备在所述平台的主页中发送的应用程序加载请求,获取所述应用程序加载请求对应的应用程序的地址信息;An address information obtaining module, configured to receive an application loading request sent by the terminal device in a homepage of the platform, and obtain address information of an application corresponding to the application loading request;
    第二查询模块,用于查询所述终端设备是否安装有驱动所述应用程序的引擎;a second query module, configured to query whether the terminal device is installed with an engine that drives the application;
    应用程序加载模块,如果所述终端设备安装有驱动所述应用程序的引擎,触发所述终端 设备启动所述应用程序的引擎,并基于启动的所述应用程序的引擎加载所述应用程序的地址信息对应的应用程序。An application loading module that triggers the terminal if the terminal device is installed with an engine that drives the application The device starts an engine of the application, and loads an application corresponding to the address information of the application based on the engine of the launched application.
  11. 根据权利要求10所述的装置,其特征在于,所述调用模块包括:The device according to claim 10, wherein the calling module comprises:
    判断单元,如果所述终端设备存储有所述平台文件,通知第一触发单元;和a determining unit, if the terminal device stores the platform file, notifying the first trigger unit; and
    第一触发单元,用于触发所述终端设备调用所述平台文件以加载所述平台的主页。The first triggering unit is configured to trigger the terminal device to invoke the platform file to load a homepage of the platform.
  12. 根据权利要求11所述的装置,所述判断单元进一步用于在所述终端设备未存储有所述平台文件时,通知推送单元,所述调用模块还可以包括:The apparatus according to claim 11, wherein the determining unit is further configured to notify the pushing unit when the terminal device does not store the platform file, and the calling module may further include:
    推送单元,用于接收通知,推送所述平台文件并存储在所述终端设备中,触发所述终端设备调用存储的所述平台文件以加载所述平台的主页。And a pushing unit, configured to receive the notification, push the platform file, and store the file in the terminal device, triggering the terminal device to invoke the stored platform file to load a homepage of the platform.
  13. 根据权利要求10至12中任一项所述的装置,其特征在于,所述调用模块包括:The device according to any one of claims 10 to 12, wherein the calling module comprises:
    平台文件更新单元,用于拦截所述判断单元输出至所述第一触发单元的通知,获取所述终端设备存储的所述平台文件的第一版本信息,如果存储的所述平台文件的第二版本信息高于所述第一版本信息,向所述终端设备推送所述第二版本信息对应的平台文件,以更新所述终端设备存储的所述平台文件,并在更新后,通知所述第一触发单元。a platform file update unit, configured to intercept a notification that the determining unit outputs to the first trigger unit, and obtain first version information of the platform file stored by the terminal device, if the second file file is stored The version information is higher than the first version information, and the platform file corresponding to the second version information is pushed to the terminal device to update the platform file stored by the terminal device, and after updating, notify the first A trigger unit.
  14. 根据权利要求10至13中任一项所述的装置,其特征在于,所述地址信息获取模块包括:The device according to any one of claims 10 to 13, wherein the address information acquisition module comprises:
    应用程序加载请求单元,用于在加载所述平台的主页中显示应用程序列表,接收用户通过点击应用程序列表中的应用程序生成的应用程序加载请求;An application load request unit, configured to display an application list in a homepage that loads the platform, and receive an application load request generated by the user by clicking an application in the application list;
    启动单元,用于在接收所述应用程序加载请求后,使用网络视图打开所述应用程序加载请求对应的应用程序的启动页面;a startup unit, configured to: after receiving the application loading request, use a network view to open a startup page of an application corresponding to the application loading request;
    代码执行单元,用于执行所述启动页面中的Java描述语言代码,获取所述应用程序加载请求对应的应用程序的地址信息;和a code execution unit, configured to execute a Java description language code in the startup page, and obtain address information of an application corresponding to the application loading request; and
    通知单元,用于通过预先设置的接口将获取的地址信息通知所述平台的主页。And a notification unit, configured to notify the homepage of the platform by the acquired address information through a preset interface.
  15. 根据权利要求10至14中任一项所述的装置,其特征在于,所述第二查询模块包括:The apparatus according to any one of claims 10 to 14, wherein the second query module comprises:
    标识获取单元,用于获取所述应用程序加载请求对应的应用程序类型以及应用类标识;An identifier obtaining unit, configured to acquire an application type corresponding to the application loading request and an application class identifier;
    第一查询单元,用于查询预先设置的应用类标识与引擎集的映射关系,得到获取的应用类标识映射的引擎集;The first query unit is configured to query a mapping relationship between the preset application class identifier and the engine set, and obtain an engine set of the acquired application class identifier mapping;
    第二查询单元,用于查询得到的引擎集中应用程序类型与引擎的映射关系,得到获取的应用程序类型映射的引擎;和a second query unit, configured to query the obtained mapping relationship between the application type of the engine and the engine, and obtain an engine of the acquired application type mapping; and
    第三查询单元,用于查询所述终端设备是否安装有得到的引擎。The third query unit is configured to query whether the terminal device is installed with the obtained engine.
  16. 根据权利要求10至15中任一项所述的装置,其特征在于,所述应用程序加载模块 包括:The apparatus according to any one of claims 10 to 15, wherein the application loading module include:
    引擎判断单元,如果所述终端设备安装有驱动所述应用程序的引擎,通知加载单元;和An engine determining unit, if the terminal device is installed with an engine that drives the application, notifying the loading unit; and
    加载单元,用于触发所述终端设备启动所述应用程序的引擎,并基于启动的所述应用程序的引擎加载所述应用程序的地址信息对应的应用程序。a loading unit, configured to trigger the terminal device to start an engine of the application, and load an application corresponding to the address information of the application based on the engine of the launched application.
  17. 根据权利要求16所述的装置,其特征在于,所述引擎判断单元进一步用于在所述终端设备未安装有驱动所述应用程序的引擎时,通知引擎推送单元,应用程序加载模块还可以包括:The apparatus according to claim 16, wherein the engine determining unit is further configured to: when the terminal device is not installed with an engine that drives the application, notify an engine pushing unit, and the application loading module may further include :
    引擎推送单元,用于接收通知,推送所述驱动所述应用程序的引擎对应的引擎安装文件,以使所述终端设备安装所述引擎安装文件得到所述应用程序的引擎,并通知所述加载单元。An engine pushing unit, configured to receive a notification, and push an engine installation file corresponding to an engine that drives the application, so that the terminal device installs the engine installation file to obtain an engine of the application, and notifies the loading unit.
  18. 根据权利要求16或17所述的装置,其特征在于,应用程序加载模块还可以包括:The device according to claim 16 or 17, wherein the application loading module further comprises:
    引擎更新单元,用于拦截所述引擎判断单元输出至所述加载单元的通知,获取所述终端设备安装的所述引擎的第一属性信息,如果存储的引擎安装文件的第二属性信息高于所述第一属性信息,向所述终端设备推送所述第二属性信息对应的引擎安装文件,以更新所述终端设备安装的所述引擎,并在更新后,通知所述加载单元。An engine update unit, configured to intercept a notification that the engine determining unit outputs to the loading unit, acquire first attribute information of the engine installed by the terminal device, if the second attribute information of the stored engine installation file is higher than The first attribute information is used to push an engine installation file corresponding to the second attribute information to the terminal device to update the engine installed by the terminal device, and notify the loading unit after updating.
  19. 一种终端设备,包括壳体、处理器、存储器、电路板和电源电路,其中,所述电路板安置在所述壳体围成的空间内部,所述处理器和所述存储器设置在所述电路板上;所述电源电路,用于为所述终端设备的各个电路或器件供电;所述存储器用于存储可执行程序代码;所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行如权利要求1至9中任一项所述的加载应用程序的方法。A terminal device includes a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside a space enclosed by the housing, and the processor and the memory are disposed in the a power supply circuit for supplying power to respective circuits or devices of the terminal device; the memory for storing executable program code; the processor reading an executable program stored in the memory The code is operative to execute a program corresponding to the executable program code for executing the method of loading an application according to any one of claims 1 to 9.
  20. 一种计算机可读存储介质,具有存储于其中的指令,当执行所述指令时,执行根据权利要求1-9中任一项所述的加载应用程序的方法。A computer readable storage medium having instructions stored therein that, when executed, perform the method of loading an application according to any one of claims 1-9.
  21. 一种计算机应用程序,当其在终端设备的处理器上执行时,执行如权利要求1至9中任一项所述的加载应用程序的方法。 A computer application that, when executed on a processor of a terminal device, performs the method of loading an application as claimed in any one of claims 1 to 9.
PCT/CN2016/097209 2015-09-23 2016-08-29 Method and apparatus for loading application program WO2017050094A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510612414.4 2015-09-23
CN201510612414.4A CN105224363B (en) 2015-09-23 2015-09-23 Method and device for loading application program

Publications (1)

Publication Number Publication Date
WO2017050094A1 true WO2017050094A1 (en) 2017-03-30

Family

ID=54993355

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/097209 WO2017050094A1 (en) 2015-09-23 2016-08-29 Method and apparatus for loading application program

Country Status (2)

Country Link
CN (1) CN105224363B (en)
WO (1) WO2017050094A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110209401A (en) * 2019-05-28 2019-09-06 北京小米移动软件有限公司 The loading method and device of application program
EP3627314A3 (en) * 2018-09-20 2020-04-01 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for game running and related products
CN111885194A (en) * 2020-07-31 2020-11-03 睿云联(厦门)网络通讯技术有限公司 Communication method and device for communication application and electronic equipment
CN114296830A (en) * 2021-12-30 2022-04-08 上海完美时空软件有限公司 Application program running method and device, storage medium and electronic equipment
CN114741134A (en) * 2022-04-22 2022-07-12 深圳依时货拉拉科技有限公司 Application starting method and device, computer readable storage medium and computer equipment
CN115941717A (en) * 2022-10-10 2023-04-07 浙江南都能源互联网有限公司 Method and system for data acquisition and transmission of energy storage power station
US12032938B2 (en) 2019-10-15 2024-07-09 Huawei Technologies Co., Ltd. Plug-in installation method, apparatus, and storage medium

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224363B (en) * 2015-09-23 2019-04-05 北京金山安全软件有限公司 Method and device for loading application program
CN107172110A (en) 2016-03-07 2017-09-15 阿里巴巴集团控股有限公司 A kind of application APP resource loading method, business function implementation method and device
CN105955833B (en) * 2016-06-06 2021-09-21 腾讯科技(深圳)有限公司 Engine calling method and device
CN107644075B (en) * 2017-09-19 2020-11-20 北京京东尚科信息技术有限公司 Method and device for collecting page information
CN109327740B (en) * 2018-09-12 2021-08-17 深圳市酷开网络科技股份有限公司 Popularization application operation method of terminal, terminal and computer readable storage medium
CN109316751B (en) * 2018-09-20 2021-08-10 Oppo广东移动通信有限公司 Game adaptation method, related device and computer-readable storage medium
CN109126124B (en) * 2018-09-20 2021-10-22 Oppo广东移动通信有限公司 Engine adaptation method, related device and computer readable storage medium
CN109358973B (en) * 2018-09-29 2020-12-22 网易(杭州)网络有限公司 Information processing method, system, medium, and computing device
CN111111206B (en) * 2018-10-30 2024-04-05 阿里巴巴集团控股有限公司 Game running method and device and terminal equipment
CN109754700A (en) * 2018-12-07 2019-05-14 深圳坤辰物联网有限公司 A kind of production of indoor map and database application system and its method
CN109857374B (en) * 2018-12-24 2023-03-24 航天信息软件技术有限公司 Development method and device of mobile application
CN111580872A (en) * 2019-02-15 2020-08-25 厦门雅基软件有限公司 Application program running method and device, electronic equipment and readable storage medium
CN111756682B (en) * 2019-03-26 2023-08-15 厦门雅基软件有限公司 Game data determining method, game data acquiring method and game data acquiring device
CN111722885B (en) * 2020-06-19 2023-08-08 抖音视界有限公司 Program running method and device and electronic equipment
CN115943362A (en) * 2021-05-31 2023-04-07 京东方科技集团股份有限公司 Configuration data packet and file generation method, processing method, equipment and medium
CN113722019B (en) * 2021-11-04 2022-02-08 海尔数字科技(青岛)有限公司 Display method, device and equipment of platform program
CN114116056A (en) * 2021-11-19 2022-03-01 京东方科技集团股份有限公司 Page display method and device
CN118677770A (en) * 2023-03-17 2024-09-20 北京字跳网络技术有限公司 Data processing method and related equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1249877A (en) * 1997-08-07 2000-04-05 西门子公司 Method and loading function provided by first computer (server) onto second computer (client)
CN103593200A (en) * 2012-08-13 2014-02-19 腾讯科技(深圳)有限公司 Method and device for obtaining application program
CN104360871A (en) * 2014-10-12 2015-02-18 厦门雅基软件有限公司 Quick starting method for installation of cell phone games
CN105224363A (en) * 2015-09-23 2016-01-06 北京金山安全软件有限公司 Method and device for loading application program

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101329706B (en) * 2008-07-18 2012-02-22 广州盈正信息技术有限公司 Intensive type network game platform system and method for operating multi game application programs
CN103164326A (en) * 2011-12-12 2013-06-19 深圳市快播科技有限公司 Detecting method and detecting system for game operating environment
CN104090765A (en) * 2014-07-16 2014-10-08 福建天晴数码有限公司 Method and device for switching from mobile game to webgame
CN104156243B (en) * 2014-08-05 2017-12-12 网际傲游(北京)科技有限公司 A kind of application distribution and the system and method for quick load operating
CN104866335B (en) * 2014-12-30 2018-04-13 北京白鹭时代信息技术有限公司 A kind of method and device of mobile terminal based on Egret Runtime running games

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1249877A (en) * 1997-08-07 2000-04-05 西门子公司 Method and loading function provided by first computer (server) onto second computer (client)
CN103593200A (en) * 2012-08-13 2014-02-19 腾讯科技(深圳)有限公司 Method and device for obtaining application program
CN104360871A (en) * 2014-10-12 2015-02-18 厦门雅基软件有限公司 Quick starting method for installation of cell phone games
CN105224363A (en) * 2015-09-23 2016-01-06 北京金山安全软件有限公司 Method and device for loading application program

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3627314A3 (en) * 2018-09-20 2020-04-01 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for game running and related products
US11077377B2 (en) 2018-09-20 2021-08-03 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for game loading and related products
CN110209401A (en) * 2019-05-28 2019-09-06 北京小米移动软件有限公司 The loading method and device of application program
CN110209401B (en) * 2019-05-28 2024-04-09 北京小米移动软件有限公司 Application program loading method and device
US12032938B2 (en) 2019-10-15 2024-07-09 Huawei Technologies Co., Ltd. Plug-in installation method, apparatus, and storage medium
CN111885194A (en) * 2020-07-31 2020-11-03 睿云联(厦门)网络通讯技术有限公司 Communication method and device for communication application and electronic equipment
CN111885194B (en) * 2020-07-31 2023-06-09 睿云联(厦门)网络通讯技术有限公司 Communication method and device for communication application and electronic equipment
CN114296830A (en) * 2021-12-30 2022-04-08 上海完美时空软件有限公司 Application program running method and device, storage medium and electronic equipment
CN114741134A (en) * 2022-04-22 2022-07-12 深圳依时货拉拉科技有限公司 Application starting method and device, computer readable storage medium and computer equipment
CN115941717A (en) * 2022-10-10 2023-04-07 浙江南都能源互联网有限公司 Method and system for data acquisition and transmission of energy storage power station
CN115941717B (en) * 2022-10-10 2024-04-19 浙江南都能源科技有限公司 Method and system for data acquisition and transmission of energy storage power station

Also Published As

Publication number Publication date
CN105224363B (en) 2019-04-05
CN105224363A (en) 2016-01-06

Similar Documents

Publication Publication Date Title
WO2017050094A1 (en) Method and apparatus for loading application program
US11829186B2 (en) System and methods for integration of an application runtime environment into a user computing environment
WO2018177260A1 (en) Application development method and tool, device, and storage medium thereof
CN109358936B (en) Information processing method, device, storage medium, electronic device and system
US10880227B2 (en) Apparatus, hybrid apparatus, and method for network resource access
CN108984174B (en) Cross-platform application creation method, device, server and storage medium
US8694988B2 (en) Runtime extensions
CN111740948B (en) Data packet issuing method, dynamic updating method, device, equipment and medium
Meier et al. Professional Android
WO2015055074A1 (en) Method and device for dynamically loading and invoking program
CN106406961A (en) Method and device for loading and providing application based on browser
US20120102483A1 (en) Handling calls to native code in a managed code environment
KR20130069555A (en) Virtual application extension points
US10554784B2 (en) Method and system for rendering content using templates
Gok et al. Building Hybrid Android Apps with Java and JavaScript: Applying Native Device APIs
US9513762B1 (en) Static content updates
US10789751B2 (en) Method and apparatus for implementing animation in client application and animation script framework
WO2013091556A1 (en) Browser based application program extension method and device
CN104866335A (en) Egret-Runtime-based game running method and device for mobile terminal
US9185513B1 (en) Method and system for compilation with profiling feedback from client
Kok Hands-on Nuxt. js Web Development: Build universal and static-generated Vue. js applications using Nuxt. js
CN112379885B (en) Applet compiling method, device, equipment and readable storage medium
US20130067458A1 (en) Application site of origin reference scheme
WO2021223544A1 (en) Application starting method and related device
CN117667157A (en) Thermal updating method and system, updating method, medium and equipment for client application

Legal Events

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

Ref document number: 16847976

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16847976

Country of ref document: EP

Kind code of ref document: A1