CN114217866A - Applet using method and device and electronic equipment - Google Patents

Applet using method and device and electronic equipment Download PDF

Info

Publication number
CN114217866A
CN114217866A CN202111315892.0A CN202111315892A CN114217866A CN 114217866 A CN114217866 A CN 114217866A CN 202111315892 A CN202111315892 A CN 202111315892A CN 114217866 A CN114217866 A CN 114217866A
Authority
CN
China
Prior art keywords
applet
container
browser
target
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111315892.0A
Other languages
Chinese (zh)
Other versions
CN114217866B (en
Inventor
林杭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ali Health Technology China Co ltd
Original Assignee
Ali Health Technology China Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ali Health Technology China Co ltd filed Critical Ali Health Technology China Co ltd
Priority to CN202111315892.0A priority Critical patent/CN114217866B/en
Publication of CN114217866A publication Critical patent/CN114217866A/en
Application granted granted Critical
Publication of CN114217866B publication Critical patent/CN114217866B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

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

Abstract

The embodiment of the specification provides a method and a device for using an applet and an electronic device. A preset container interface is configured in the applet, and the container interface is used for calling a webpage container taking a browser as a kernel; the method comprises the following steps: acquiring a trigger request generated after a target link in the applet is triggered; the trigger request carries an access address corresponding to the target link; responding to the trigger request, calling the webpage container based on a container interface corresponding to the target link, and transmitting the access address to the webpage container so that a browser of the webpage container based on a kernel accesses a target page corresponding to the access address; displaying the target page in the applet; wherein the target page comprises a web page not located in the domain name white list of the applet configuration.

Description

Applet using method and device and electronic equipment
Technical Field
The embodiment of the specification relates to the technical field of computers, in particular to a method and a device for using an applet and an electronic device.
Background
With the continuous development of computer technology, various applications have entered into people's daily life, and the applet, as an application that can be used without downloading and installation, has gained much attention from all industries.
In the related art, when an operation manages an applet, different activity links may be configured for the applet so that a user using the applet participates in different activities through the activity links.
Because the security limit of the applet is relatively strict, if the active link corresponds to an active page, the application for adding the domain name corresponding to the active page into the domain name white list in advance needs to be operated. Only pages in the domain white list can be opened by the applet. However, as the small programs are more and more, the auditing time required for applying for the domain name white list is longer and longer, which seriously affects the normal operation of the small programs.
Disclosure of Invention
The embodiment of the specification provides an applet using method and device and an electronic device.
According to a first aspect of an embodiment of the present specification, there is provided a method for using an applet, where a preset container interface is configured in the applet, and the container interface is used to call a web page container using a browser as a kernel; the method comprises the following steps:
acquiring a trigger request generated after a target link in the applet is triggered; the trigger request carries an access address corresponding to the target link;
responding to the trigger request, calling the webpage container based on a container interface corresponding to the target link, and transmitting the access address to the webpage container so that a browser of the webpage container based on a kernel accesses a target page corresponding to the access address;
displaying the target page in the applet; wherein the target page comprises a page not located in a domain name white list of the applet configuration.
Optionally, the method further includes:
determining whether the domain name of the target page corresponding to the target link is located in a domain name white list configured by the applet;
the responding to the trigger request and based on the container interface corresponding to the target link comprises the following steps:
and responding to the trigger request and based on a container interface corresponding to the target link under the condition that the domain name of the target page corresponding to the target link is not located in the domain name white list configured by the small program.
Optionally, the method further includes:
carrying out identity verification on the small program;
determining whether the applet is an authenticated applet based on the identity verification result;
the responding to the trigger request and based on the container interface corresponding to the target link comprises the following steps:
and responding to the trigger request and linking a corresponding container interface based on the target in the case that the applet is the authenticated applet.
Optionally, the browser includes a system browser, and the web page container includes a webview container of the system browser.
According to a second aspect of the embodiments of the present specification, there is provided a method for using an applet, where a preset container interface is configured in the applet, and the container interface is used to call a web page container using a browser as a kernel; the method comprises the following steps:
acquiring a trigger request generated after a target link in the applet is triggered; the trigger request carries an access address corresponding to the target link, wherein the access address comprises an application address and a page address;
responding to the trigger request, calling the webpage container based on a container interface corresponding to the target link, and transmitting the application address into the webpage container, so that the webpage container calls a third-party application corresponding to the locally installed application address through a browser of a kernel;
and responding to a confirmation operation for calling the third-party application, opening the third-party application and transmitting the page address to the third-party application so as to enable the third-party application to display a target page corresponding to the page address.
Optionally, the method further includes:
carrying out identity verification on the small program;
determining whether the applet is an authenticated applet based on the identity verification result;
the responding to the trigger request and based on the container interface corresponding to the target link comprises the following steps:
and responding to the trigger request and linking a corresponding container interface based on the target in the case that the applet is the authenticated applet.
Optionally, the invoking a third-party application corresponding to the locally installed access address includes:
and calling a third-party application corresponding to the locally-installed access address based on a deep link technology.
Optionally, the browser includes a system browser, and the web page container includes a webview container of the system browser.
According to a third aspect of the embodiments of the present specification, there is provided an apparatus for using an applet, where a preset container interface is configured in the applet, and the container interface is used to call a web page container with a browser as a kernel; the device comprises:
the acquisition unit is used for acquiring a trigger request generated after a target link in the applet is triggered; the trigger request carries an access address corresponding to the target link;
the response unit is used for responding to the trigger request, calling the webpage container based on a container interface corresponding to the target link, and transmitting the access address to the webpage container so that the webpage container accesses a target page corresponding to the access address based on a browser of a kernel;
a display unit that displays the target page in the applet; wherein the target page comprises a page not located in a domain name white list of the applet configuration.
Optionally, the apparatus further comprises:
the determining unit is used for determining whether the domain name of the target page corresponding to the target link is located in a domain name white list configured by the small program; and executing the response unit under the condition that the domain name of the target page corresponding to the target link is not in the domain name white list configured by the applet.
Optionally, the apparatus further comprises:
the verification unit is used for verifying the identity of the small program; determining whether the applet is an authenticated applet based on the identity verification result; and executing the response unit in case the applet is an authenticated applet.
Optionally, the browser includes a system browser, and the web page container includes a webview container of the system browser.
According to a fourth aspect of the embodiments of the present specification, there is provided an apparatus for using an applet, where a preset container interface is configured in the applet, and the container interface is used to call a web page container using a browser as a kernel; the device comprises:
the acquisition unit is used for acquiring a trigger request generated after a target link in the applet is triggered; the trigger request carries an access address corresponding to the target link, wherein the access address comprises an application address and a page address;
the response unit is used for responding to the trigger request, calling the webpage container based on a container interface corresponding to the target link, and transmitting the application address to the webpage container so that the webpage container calls a third-party application corresponding to the locally installed application address through a browser of a kernel;
and the display unit responds to the confirmation operation for calling the third-party application, opens the third-party application and transmits the page address to the third-party application so that the third-party application displays the target page corresponding to the page address.
Optionally, the apparatus further comprises:
the verification unit is used for verifying the identity of the small program; determining whether the applet is an authenticated applet based on the identity verification result; and executing the response unit in case the applet is an authenticated applet.
Optionally, in the response unit, invoking a third-party application corresponding to the locally installed access address includes:
and calling a third-party application corresponding to the locally-installed access address based on a deep link technology.
Optionally, the browser includes a system browser, and the web page container includes a webview container of the system browser.
According to a fifth aspect of embodiments herein, there is provided an electronic apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured as a method of use of any of the above applets.
The embodiment of the specification provides a use scheme of an applet, and a preset container interface is configured in the applet and used for calling a webpage container taking a browser as a kernel, and the webpage container is used for opening a target page corresponding to a target link configured in the applet. When the target page is opened by the webpage container with the browser as the kernel, the method is not limited by the applet (namely, the application for adding the domain name of the target page into the domain name white list is required), so that the target link corresponding to the target page which is not located in the domain name white list can be configured in the applet. Therefore, the flexibility of the small program operation configuration can be improved because the domain name white list does not need to be applied.
Drawings
FIG. 1 is a flow chart of a method of using an applet as provided in one embodiment of the present description;
FIG. 2 is a schematic diagram of a mutual group of applets provided by an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of an interface for opening a web page in an applet, according to an embodiment of the present disclosure;
FIG. 4 is a flow chart of a method of using an applet as provided by an embodiment of the present description;
FIG. 5 is a hardware configuration diagram of an apparatus for using an applet, provided in an embodiment of the present specification;
FIG. 6 is a block diagram of an apparatus for using applets provided by an embodiment of the present disclosure;
fig. 7 is a block diagram of a device using an applet provided in an embodiment of the present specification.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present specification. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the specification, as detailed in the appended claims.
The terminology used in the description herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the description. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information, without departing from the scope of the present specification. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
With the continuous development of computer technology, various applications have entered into people's daily life, and the applet, as an application that can be used without downloading and installation, has gained much attention from all industries.
In the related art, when an operator manages an applet, the operator may configure different activity links for the applet, so that a user using the applet participates in different activities through the activity links.
Taking a group chat interface provided by the applet as an example, an operator can configure different activity links for the group chat plug-in buttons in the background, so that the group chat members can participate in different activities. After any member triggers the active link, an active page corresponding to the active link can be presented in the applet, and the active page can be an H5 page or another applet.
In the existing applet mechanism, the applet has strict security restrictions, and if the active link corresponds to an active page, the applet needs to operate to apply for a domain name corresponding to the active page in advance to add the domain name to a domain name white list. Only pages in the domain white list can be opened by the applet. However, as the small programs are more and more, the auditing time required for applying for the domain name white list is longer and longer, which seriously affects the normal operation of the small programs.
Additionally, in some activity needs, there may be a need to jump from the applet to other third party applications, such as pages in other third party applications that the operator wishes to invoke by triggering an active link. However, existing applet mechanisms do not support the invocation of other third party applications by the applet. Namely, other third-party applications cannot be invoked in the existing applet.
In order to solve any technical problem, the present specification provides a use scheme of an applet, and by improving an existing applet, a web page can be opened in the applet without applying a domain name white list, or other applets can be opened in the current applet without configuring other applets, or other third party applications can be invoked in the applet.
A flow chart of a method for using an applet provided in this specification is described below with reference to fig. 1, where a preset container interface is configured in the applet, and the container interface is used to call a web page container using a browser as a kernel; the method may include:
step 110: acquiring a trigger request generated after a target link in the applet is triggered; the trigger request carries an access address corresponding to the target link;
step 120: responding to the trigger request, calling the webpage container based on a container interface corresponding to the target link, and transmitting the access address to the webpage container so that a browser of the webpage container based on a kernel accesses a target page corresponding to the access address;
step 130: displaying the target page in the applet; wherein the target page comprises a page not located in a domain name white list of the applet configuration.
The applet refers to an applet opened by a user on a client. For example some applications APP with applet functionality.
The client may refer to a client device in hardware, such as a desktop computer, a laptop computer, a tablet computer, a smart phone, a handheld computer, a personal digital assistant ("PDA"), or any other wired or wireless processor-driven device.
Typically, a user may log into an existing user account on a client or use an applet service provided by an application in the identity of a guest.
The small program can provide a group chat service of a mutual group for users needing help. Any user needing help can chat with other users in the mutual aid group provided by the applet.
Fig. 2 is a schematic diagram of a mutual group of applets, and a group chat interface of the mutual group may include a to-be-sent area 20 and a sent area 30, similar to a general IM group chat. An input box 21 may be included in the region 20 to be transmitted, and the user may input chat information to be transmitted into the input box 21. And then triggers a sending action (e.g., clicking a "send" button 22 in the area to be sent 20) to send the chat message entered in the input box 21.
After the user triggers the sending action, the chat message in the input box 21 is displayed in the sent area 30, and the chat message input in the input box 21 is cleared. At this time, the chat information in the sent area 30 can be seen by all users participating in the chat and cannot be modified.
In this embodiment, the group chat interface is further provided with a group plug-in button 40, and after the user triggers the group plug-in button 40, a plurality of active links can be displayed in the group chat interface.
As shown in fig. 2, active link 1, active link 2, active link 3 …, and active link N are displayed in the group chat interface. The activity links can be configured by an operator of the applet, different activity links can correspond to different mutual activities, and a user can participate in corresponding interactive activities by clicking the activity links. Such as crowd funding applications, donation applications, and the like.
It should be noted that the above-mentioned mutual-aid applet and mutual-aid group are only examples, and any applet can fall into the technical solution protected by this specification in practical application.
In this specification, a preset container interface is configured in the applet, and the container interface is used to call a web page container using a browser as a kernel.
As previously mentioned, the user may trigger any link in the applet, and this triggered link may be referred to as the target link.
The method comprises the steps that a client side obtains a trigger request generated after a target link in an applet is triggered; and the trigger request carries an access address corresponding to the target link. The access address may be pre-configured by the operator of the applet.
In an embodiment, the client may determine whether the domain name of the target page corresponding to the target link is located in a domain name white list configured by the applet;
generally, the domain name white list may be stored in a server corresponding to the applet, so that the client may determine, from the server corresponding to the applet, whether the domain name of the target page corresponding to the target link is located in the domain name white list configured by the applet. Or, the domain name white list can be issued by the server and stored in the applet; therefore, the client can also locally determine whether the domain name of the target page corresponding to the target link is in the domain name white list configured by the small program.
If the domain name of the target page corresponding to the target link is not in the domain name white list configured by the applet, the target page cannot be opened in the traditional applet; therefore, a target page can be opened by a webpage container with a browser as a kernel provided by the specification.
Under the condition that the domain name of the target page corresponding to the target link is not located in the domain name white list configured by the applet, responding to the trigger request, calling the webpage container based on a container interface corresponding to the target link, and transmitting the access address into the webpage container, so that the webpage container accesses the target page corresponding to the access address based on a browser of a kernel;
in addition, if the domain name of the target page corresponding to the target link is located in the domain name white list configured by the applet, it indicates that the target page can be opened in the conventional applet; therefore, a target page can be opened by a webpage container of a traditional small program, which does not take a browser as a kernel; of course, the webpage container with the browser as the kernel can be opened through the webpage container provided by the specification.
In an embodiment, the client may perform identity verification on the applet and determine whether the applet is an authenticated applet based on the identity verification result;
in implementation, when the applet is configured with a preset container interface so that the web page container with the browser as the kernel can be called, the applet can be the authenticated applet. Typically, the unique identification of these authenticated applets (e.g., the applet's ID) can be stored in an authentication repository for identity verification.
Thus, after the client acquires the trigger request, the identity of the unique identifier of the applet can be verified to determine whether the unique identifier of the applet is located in the authentication library; if the small program is located in the authentication library, determining that the identity verification result is passed, and further determining that the small program is the authenticated small program; and if the small program is not located in the authentication library, determining that the identity verification result is not passed, and further determining that the small program is a non-authenticated small program.
In this embodiment, the authentication library may be stored in an application server corresponding to the application in which the applet is located, and the application server may maintain all authentication applets in the application, and the unique identifiers of these authentication applets are recorded in the authentication library. Thus, the client may send the unique identity of the applet to the application server, which determines whether the applet is an authenticated applet. Alternatively, the authentication library may be stored in the client in a download manner so that the client can determine whether the applet is an authenticated applet locally.
In any way, after determining whether the applet is the authenticated applet, if the applet is the authenticated applet, the applet can open the target page by using a webpage container with a browser as a kernel; therefore, the webpage container with the browser as the kernel can be opened through the webpage container provided by the specification.
And if the applet is not the authenticated applet, the applet is not provided with a container interface, so that the target page cannot be opened by using the webpage container with the browser as a kernel.
In one embodiment, the browser may comprise a system browser and the web page container may comprise a webview container of the system browser.
By applying the embodiment, because the webpage container takes the system browser as the kernel, and the system browser is higher in safety compared with a third-party browser, the container interface of the webpage container taking the system browser as the content is configured for the applet, so that the applet not only omits the domain name white list application, but also can still ensure the safety of the applet, and the safety and flexibility dual guarantee is realized.
In this specification, when a web page is opened for a web page container in which an applet uses a browser as a content, as shown in a lower part of fig. 3, when a webview (web page container) in which a browser is used as a kernel is called to open the web page, the web page can be displayed in a full-screen webview in an interface of the applet. As shown in the upper part, when a conventional webview is called to open a web page, the web page can only be displayed in a non-full-screen webview in the interface of the applet. According to the illustration in fig. 3, the full-screen web page can be displayed by the web page container provided by the present specification with the browser as the kernel, so that the web page browsing experience is better for the user.
The embodiment of the specification provides a use scheme of an applet, and a preset container interface is configured in the applet and used for calling a webpage container taking a browser as a kernel, and the webpage container is used for opening a target page corresponding to a target link configured in the applet. When the target page is opened by the webpage container with the browser as the kernel, the method is not limited by the applet (namely, the application for adding the domain name of the target page into the domain name white list is required), so that the target link corresponding to the target page which is not located in the domain name white list can be configured in the applet. Therefore, the flexibility of the small program operation configuration can be improved because the domain name white list does not need to be applied.
Next, referring to fig. 4, a flow chart of a method for using an applet provided in the present specification is described, where a preset container interface is configured in the applet, and the container interface is used to call a web page container using a browser as a kernel; the method may include:
step 410, acquiring a trigger request generated after a target link in the applet is triggered; the trigger request carries an access address corresponding to the target link, wherein the access address comprises an application address and a page address;
step 420, in response to the trigger request, based on a container interface corresponding to the target link, calling the webpage container, and transmitting the application address to the webpage container, so that the webpage container calls a third-party application corresponding to the locally installed application address through a browser of a kernel;
step 430, in response to a confirmation operation for invoking the third-party application, opening the third-party application and transmitting the page address to the third-party application, so that the third-party application displays a target page corresponding to the page address.
The difference between this embodiment and the foregoing fig. 1 embodiment is that the target link in this embodiment corresponds to a locally installed third party application, and therefore the access address corresponding to the target link may include an application address of the third party application and a web page address of a target page that needs to be opened in the third party application.
In addition, when the webpage container calls a third-party application corresponding to the locally installed application address through a browser of the kernel, an interactive interface confirmed by a user can be skipped, for example, a reminding message of whether the third-party application is wanted to be called or not and a button for confirming and canceling are displayed in the interactive interface. If the user clicks the confirmation button, a confirmation operation for invoking the third-party application may be generated, and then step 430 is performed; and if the user clicks a cancel button, generating a cancel operation aiming at the calling of the third-party application, and terminating the calling of the third-party application.
By applying the embodiment, the request of remotely opening the malicious third-party application caused by the false touch of the user or the attack of malicious software is avoided based on the secondary confirmation, so that the safe operation of the applet is ensured.
In an embodiment, the client may perform identity verification on the applet and determine whether the applet is an authenticated applet based on the identity verification result; in the case where the applet is an authenticated applet, step 420 is performed. This embodiment is the same as the identity verification in fig. 1, and will not be described herein again.
In an embodiment, in step 420, the invoking a third-party application corresponding to the locally installed access address includes:
and calling a third-party application corresponding to the access address which is locally installed based on deep link (deep link) technology.
The deep link technology is a technology for jumping to a third-party application (locally installed) corresponding to a triggered link in an object with jump limitation such as an application, an applet or a short message. The deep link technology breaks the barrier between applications and becomes a bridge for realizing the mutual skip between the applications and the web.
In one embodiment, similar to FIG. 1, the browser can include a system browser and the web page container can include a webview container of the system browser.
The embodiment of the specification provides a use scheme of an applet, and the use scheme is characterized in that a preset container interface is configured in the applet, the container interface is used for calling a webpage container taking a browser as a kernel, the webpage container is used for calling a third-party application corresponding to a target link configured in the applet, and a target page is displayed in the third-party application. Thus, other third party applications can be invoked in the applet.
The present specification also provides an embodiment of an apparatus for using an applet, corresponding to the foregoing embodiment of the method for using an applet. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. The software implementation is taken as an example, and as a logical device, the device is formed by reading corresponding computer business program instructions in the nonvolatile memory into the memory for operation through the processor of the device in which the device is located. From a hardware aspect, as shown in fig. 5, the hardware structure diagram of the device where the applet is used in this specification is shown, except for the processor, the network interface, the memory and the nonvolatile memory shown in fig. 5, the device where the applet is used in the embodiment may also include other hardware according to the actual function of the applet, which is not described again.
Referring to fig. 6, a block diagram of an apparatus for using an applet according to an embodiment of the present disclosure is shown, where the apparatus corresponds to the embodiment shown in fig. 1, and a preset container interface is configured in the applet, where the container interface is used to call a web page container using a browser as a kernel; the device comprises:
an obtaining unit 610, configured to obtain a trigger request generated after a target link in the applet is triggered; the trigger request carries an access address corresponding to the target link;
the response unit 620 is used for responding to the trigger request, calling the webpage container based on a container interface corresponding to the target link, and transmitting the access address to the webpage container so that the webpage container accesses a target page corresponding to the access address based on a browser of a kernel;
a presentation unit 630 that presents the target page in the applet; wherein the target page comprises a page not located in a domain name white list of the applet configuration.
In an exemplary embodiment, the apparatus further comprises:
the determining unit is used for determining whether the domain name of the target page corresponding to the target link is located in a domain name white list configured by the small program; and executing the response unit under the condition that the domain name of the target page corresponding to the target link is not in the domain name white list configured by the applet.
In an exemplary embodiment, the apparatus further comprises:
the verification unit is used for verifying the identity of the small program; determining whether the applet is an authenticated applet based on the identity verification result; and executing the response unit in case the applet is an authenticated applet.
In an exemplary embodiment, the browser includes a system browser, and the web page container includes a webview container of the system browser.
Referring to fig. 7, a block diagram of an apparatus for using an applet according to an embodiment of the present disclosure is shown, where the apparatus corresponds to the embodiment shown in fig. 4, and a preset container interface is configured in the applet, where the container interface is used to call a web page container using a browser as a kernel; the device comprises:
an obtaining unit 710, configured to obtain a trigger request generated after a target link in the applet is triggered; the trigger request carries an access address corresponding to the target link, wherein the access address comprises an application address and a page address;
the response unit 720, in response to the trigger request, calls the web page container based on the container interface corresponding to the target link, and transmits the application address to the web page container, so that the web page container calls a third-party application corresponding to the locally installed application address through a browser of a kernel;
the display unit 730, in response to a confirmation operation for invoking the third-party application, opens the third-party application and transmits the page address to the third-party application, so that the third-party application displays a target page corresponding to the page address.
In an exemplary embodiment, the apparatus further comprises:
the verification unit is used for verifying the identity of the small program; determining whether the applet is an authenticated applet based on the identity verification result; and executing the response unit in case the applet is an authenticated applet.
In an exemplary embodiment, in the response unit 720, invoking a third-party application corresponding to the locally installed access address includes:
and calling a third-party application corresponding to the locally-installed access address based on a deep link technology.
In an exemplary embodiment, the browser includes a system browser, and the web page container includes a webview container of the system browser.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution in the specification. One of ordinary skill in the art can understand and implement it without inventive effort.
Fig. 6 and fig. 7 above describe the internal functional modules and the structural schematic of the apparatus using the applet, and the substantial execution subject may be an electronic device, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform an embodiment of a method of using any of the above applets.
In the above embodiments of the electronic device, it should be understood that the Processor may be a Central Processing Unit (CPU), other general-purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor, and the aforementioned memory may be a read-only memory (ROM), a Random Access Memory (RAM), a flash memory, a hard disk, or a solid state disk. The steps of a method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the embodiment of the electronic device, since it is substantially similar to the embodiment of the method, the description is simple, and for the relevant points, reference may be made to part of the description of the embodiment of the method.
Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This specification is intended to cover any variations, uses, or adaptations of the specification following, in general, the principles of the specification and including such departures from the present disclosure as come within known or customary practice within the art to which the specification pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the specification being indicated by the following claims.
It will be understood that the present description is not limited to the precise arrangements described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.

Claims (17)

1. A method for using an applet comprises the steps that a preset container interface is configured in the applet and used for calling a webpage container taking a browser as a kernel; the method comprises the following steps:
acquiring a trigger request generated after a target link in the applet is triggered; the trigger request carries an access address corresponding to the target link;
responding to the trigger request, calling the webpage container based on a container interface corresponding to the target link, and transmitting the access address to the webpage container so that a browser of the webpage container based on a kernel accesses a target page corresponding to the access address;
displaying the target page in the applet; wherein the target page comprises a page not located in a domain name white list of the applet configuration.
2. The method of claim 1, further comprising:
determining whether the domain name of the target page corresponding to the target link is located in a domain name white list configured by the applet;
the responding to the trigger request and based on the container interface corresponding to the target link comprises the following steps:
and responding to the trigger request and based on a container interface corresponding to the target link under the condition that the domain name of the target page corresponding to the target link is not located in the domain name white list configured by the small program.
3. The method of claim 1, further comprising:
carrying out identity verification on the small program;
determining whether the applet is an authenticated applet based on the identity verification result;
the responding to the trigger request and based on the container interface corresponding to the target link comprises the following steps:
and responding to the trigger request and linking a corresponding container interface based on the target in the case that the applet is the authenticated applet.
4. The method of claim 1, the browser comprising a system browser, the web page container comprising a webview container of the system browser.
5. A method for using an applet comprises the steps that a preset container interface is configured in the applet and used for calling a webpage container taking a browser as a kernel; the method comprises the following steps:
acquiring a trigger request generated after a target link in the applet is triggered; the trigger request carries an access address corresponding to the target link, wherein the access address comprises an application address and a page address;
responding to the trigger request, calling the webpage container based on a container interface corresponding to the target link, and transmitting the application address into the webpage container, so that the webpage container calls a third-party application corresponding to the locally installed application address through a browser of a kernel;
and responding to a confirmation operation for calling the third-party application, opening the third-party application and transmitting the page address to the third-party application so as to enable the third-party application to display a target page corresponding to the page address.
6. The method of claim 5, further comprising:
carrying out identity verification on the small program;
determining whether the applet is an authenticated applet based on the identity verification result;
the responding to the trigger request and based on the container interface corresponding to the target link comprises the following steps:
and responding to the trigger request and linking a corresponding container interface based on the target in the case that the applet is the authenticated applet.
7. The method of claim 5, the invoking a third party application corresponding to the locally installed access address, comprising:
and calling a third-party application corresponding to the locally-installed access address based on a deep link technology.
8. The method of claim 5, the browser comprising a system browser, the web page container comprising a webview container of the system browser.
9. A use device of an applet is provided, wherein a preset container interface is configured in the applet and used for calling a webpage container taking a browser as a kernel; the device comprises:
the acquisition unit is used for acquiring a trigger request generated after a target link in the applet is triggered; the trigger request carries an access address corresponding to the target link;
the response unit is used for responding to the trigger request, calling the webpage container based on a container interface corresponding to the target link, and transmitting the access address to the webpage container so that the webpage container accesses a target page corresponding to the access address based on a browser of a kernel;
a display unit that displays the target page in the applet; wherein the target page comprises a page not located in a domain name white list of the applet configuration.
10. The apparatus of claim 9, the apparatus further comprising:
the determining unit is used for determining whether the domain name of the target page corresponding to the target link is located in a domain name white list configured by the small program; and executing the response unit under the condition that the domain name of the target page corresponding to the target link is not in the domain name white list configured by the applet.
11. The apparatus of claim 9, the apparatus further comprising:
the verification unit is used for verifying the identity of the small program; determining whether the applet is an authenticated applet based on the identity verification result; and executing the response unit in case the applet is an authenticated applet.
12. The apparatus of claim 9, the browser comprising a system browser, the web page container comprising a webview container of the system browser.
13. A use device of an applet is provided, wherein a preset container interface is configured in the applet and used for calling a webpage container taking a browser as a kernel; the device comprises:
the acquisition unit is used for acquiring a trigger request generated after a target link in the applet is triggered; the trigger request carries an access address corresponding to the target link, wherein the access address comprises an application address and a page address;
the response unit is used for responding to the trigger request, calling the webpage container based on a container interface corresponding to the target link, and transmitting the application address to the webpage container so that the webpage container calls a third-party application corresponding to the locally installed application address through a browser of a kernel;
and the display unit responds to the confirmation operation for calling the third-party application, opens the third-party application and transmits the page address to the third-party application so that the third-party application displays the target page corresponding to the page address.
14. The apparatus of claim 13, the apparatus further comprising:
the verification unit is used for verifying the identity of the small program; determining whether the applet is an authenticated applet based on the identity verification result; and executing the response unit in case the applet is an authenticated applet.
15. The apparatus of claim 13, wherein the response unit invokes a third-party application corresponding to the locally installed access address, and includes:
and calling a third-party application corresponding to the locally-installed access address based on a deep link technology.
16. The apparatus of claim 13, the browser comprising a system browser, the web page container comprising a webview container of the system browser.
17. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method of any of the preceding claims 1-4 and/or 5-8.
CN202111315892.0A 2021-11-08 2021-11-08 Application method and device of applet and electronic equipment Active CN114217866B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111315892.0A CN114217866B (en) 2021-11-08 2021-11-08 Application method and device of applet and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111315892.0A CN114217866B (en) 2021-11-08 2021-11-08 Application method and device of applet and electronic equipment

Publications (2)

Publication Number Publication Date
CN114217866A true CN114217866A (en) 2022-03-22
CN114217866B CN114217866B (en) 2023-09-19

Family

ID=80696662

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111315892.0A Active CN114217866B (en) 2021-11-08 2021-11-08 Application method and device of applet and electronic equipment

Country Status (1)

Country Link
CN (1) CN114217866B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104516885A (en) * 2013-09-26 2015-04-15 腾讯科技(深圳)有限公司 Implementation method and device of browse program double-kernel assembly
WO2015176435A1 (en) * 2014-05-21 2015-11-26 广州市动景计算机科技有限公司 Method and terminal for javascript-based page customization
US20160232252A1 (en) * 2013-09-27 2016-08-11 Beijing Qihoo Technology Company Limited Method for loading webpage, device and browser thereof
WO2017133499A1 (en) * 2016-02-05 2017-08-10 腾讯科技(深圳)有限公司 Webpage access method and device
CN110020338A (en) * 2017-08-17 2019-07-16 腾讯科技(深圳)有限公司 Browser, webpage deployment method and equipment
CN110489041A (en) * 2019-07-12 2019-11-22 北京字节跳动网络技术有限公司 Method, apparatus, equipment and the medium of small routine dragging element automatic aligning
CN110750761A (en) * 2019-09-20 2020-02-04 阿里巴巴集团控股有限公司 Applet access control method and device
CN110795663A (en) * 2019-10-10 2020-02-14 上海上湖信息技术有限公司 Webpage loading method and equipment
CN110825451A (en) * 2019-09-30 2020-02-21 五八有限公司 Method and device for configuring and verifying small program page address
CN112162871A (en) * 2020-09-25 2021-01-01 同程网络科技股份有限公司 Method, device and storage medium for data exchange between applet and webview
CN112416496A (en) * 2020-11-24 2021-02-26 平安普惠企业管理有限公司 Page display method and device and storage medium
CN112817656A (en) * 2021-01-29 2021-05-18 北京百度网讯科技有限公司 Applet running method and device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104516885A (en) * 2013-09-26 2015-04-15 腾讯科技(深圳)有限公司 Implementation method and device of browse program double-kernel assembly
US20160232252A1 (en) * 2013-09-27 2016-08-11 Beijing Qihoo Technology Company Limited Method for loading webpage, device and browser thereof
WO2015176435A1 (en) * 2014-05-21 2015-11-26 广州市动景计算机科技有限公司 Method and terminal for javascript-based page customization
WO2017133499A1 (en) * 2016-02-05 2017-08-10 腾讯科技(深圳)有限公司 Webpage access method and device
CN110020338A (en) * 2017-08-17 2019-07-16 腾讯科技(深圳)有限公司 Browser, webpage deployment method and equipment
CN110489041A (en) * 2019-07-12 2019-11-22 北京字节跳动网络技术有限公司 Method, apparatus, equipment and the medium of small routine dragging element automatic aligning
CN110750761A (en) * 2019-09-20 2020-02-04 阿里巴巴集团控股有限公司 Applet access control method and device
CN110825451A (en) * 2019-09-30 2020-02-21 五八有限公司 Method and device for configuring and verifying small program page address
CN110795663A (en) * 2019-10-10 2020-02-14 上海上湖信息技术有限公司 Webpage loading method and equipment
CN112162871A (en) * 2020-09-25 2021-01-01 同程网络科技股份有限公司 Method, device and storage medium for data exchange between applet and webview
CN112416496A (en) * 2020-11-24 2021-02-26 平安普惠企业管理有限公司 Page display method and device and storage medium
CN112817656A (en) * 2021-01-29 2021-05-18 北京百度网讯科技有限公司 Applet running method and device

Also Published As

Publication number Publication date
CN114217866B (en) 2023-09-19

Similar Documents

Publication Publication Date Title
US10834102B2 (en) Client-side attack detection in web applications
US20190028497A1 (en) Device, system, and method of detecting overlay malware
Felt et al. Phishing on mobile devices
Crager et al. Information leakage through mobile motion sensors: User awareness and concerns
CN109547426B (en) Service response method and server
Tuncay et al. See no evil: phishing for permissions with false transparency
CN112765655B (en) Control method and device based on private data outgoing
Marforio et al. Hardened setup of personalized security indicators to counter phishing attacks in mobile banking
Harkin et al. Operating-system design and its implications for victims of family violence: the comparative threat of smart phone spyware for Android versus iPhone users
CN107679831B (en) Method and related device for calling ERP function
CN113805991A (en) Object prompting method and device, electronic equipment and storage medium
JP5563951B2 (en) Information input method, information input system, information input device, and computer program
EP3667527A1 (en) Client server system
US20190156071A1 (en) Using decoy icons to prevent unwanted user access to applications on a user computing device
CN114217866B (en) Application method and device of applet and electronic equipment
CN111639339A (en) Process monitoring method and device, electronic equipment and storage medium
CN106156646B (en) Information calling method and electronic equipment
Luo Attacks and countermeasures for WebView on mobile systems
Yue et al. SessionMagnifier: A simple approach to secure and convenient kiosk browsing
CN112887191B (en) Information display control method and related device
CN113254108A (en) Store operation method and device based on small program, electronic equipment and storage medium
US10846395B2 (en) Detecting suspicious application overlays on a device
CN103984730B (en) information processing method and electronic equipment
CN113158187A (en) Method and device for detecting click hijacking and electronic equipment
CN111566642B (en) Detection of malware by monitoring a client-side memory stack

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant