CN111625736B - Link skip control method and related device - Google Patents
Link skip control method and related device Download PDFInfo
- Publication number
- CN111625736B CN111625736B CN202010447114.6A CN202010447114A CN111625736B CN 111625736 B CN111625736 B CN 111625736B CN 202010447114 A CN202010447114 A CN 202010447114A CN 111625736 B CN111625736 B CN 111625736B
- Authority
- CN
- China
- Prior art keywords
- interception
- link
- configuration information
- application program
- event
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
- G06F16/9558—Details of hyperlinks; Management of linked annotations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention provides a link jump control method and a related device, and relates to the field of Internet. The method comprises the steps that a terminal device is provided with an application program and is communicated with a server through the application program, interception configuration information is stored in the server in advance and used for determining an interception strategy during link skipping, the terminal device obtains the interception configuration information from the server when the application program is started or the application program runs, and when a link skipping event of skipping to a third-party application program is triggered in the application program, if the interception configuration information is cached in the application program, the link skipping event is processed according to the interception strategy corresponding to the interception configuration information. Therefore, different interception configuration information can be obtained by the terminal equipment by setting different interception configuration information in the server, and when the link jump event is triggered in the application program, the link jump event is processed by adopting different interception strategies, so that the diversification and flexibility of the interception strategies are realized, and the user experience is improved.
Description
Technical Field
The invention relates to the field of internet, in particular to a link jump control method and a related device.
Background
With the development of internet technology and terminal technology, various apps (applications) installed on terminal equipment bring good experience to users, and skipping between applications can be realized through deep link technology, that is, a user can skip to a certain page inside another Application (third-party Application) by clicking a link in one Application of the terminal equipment.
In the prior art, a link jump event triggering a jump to a third-party application in an application is usually a scheme of directly setting all interception or all release at an application end, and if all interception is performed, other applications cannot put deeplink on the application, and the real intention of a user is also influenced; if all the traffic is released, the traffic of the application may be guided to other applications by using the open property of the application.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a link jump control method and a related apparatus, so as to solve the problem in the prior art that when an application triggers a link jump event, a processing scheme for the link jump event is relatively single and inflexible.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
in a first aspect, an embodiment of the present invention provides a link jump control method, which is applied to a terminal device, where the terminal device is installed with an application program, the terminal device communicates with a server through the application program, and the server stores interception configuration information in advance, where the interception configuration information is used to determine an interception policy during link jump, and the method includes:
when the application program is started or in the running process of the application program, acquiring the interception configuration information from the server;
and when a link jump event for jumping to a third-party application program is triggered in the application program, if the interception configuration information is cached in the application program, processing the link jump event according to an interception strategy corresponding to the interception configuration information.
In an optional implementation manner, the interception configuration information includes interception type information and waiting time information, and the step of processing the link jump event according to an interception policy corresponding to the interception configuration information includes:
when the interception type information is a first set parameter, popping up a first type message prompt box, timing according to the waiting time information, and releasing the link skip event after timing is stopped; and the first type message prompt box does not display the timing time.
In an optional implementation manner, the interception configuration information includes interception type information and waiting time information, and the step of processing the link jump event according to an interception policy corresponding to the interception configuration information includes:
when the interception type information is a second set parameter, popping up a second type message prompt box, timing according to the waiting time information, and releasing the link skip event after timing is stopped; and displaying the timing time in the second-class message prompt box.
In an optional implementation manner, the interception configuration information includes interception type information and waiting time information, and the step of processing the link jump event according to an interception policy corresponding to the interception configuration information includes:
when the interception type information is a third set parameter, popping up a third type message prompt box, and timing according to the waiting time information; the third type message prompt box comprises an operation button, and the operation button is displayed with timing time;
and when the timing is stopped or the clicking operation of the user based on the operation button is received, the link skipping event is released.
In an optional implementation manner, the interception configuration information includes interception type information and waiting time information, and the step of processing the link jump event according to an interception policy corresponding to the interception configuration information includes:
when the interception type information is a fourth set parameter, popping up a fourth type message prompt box, and timing according to the waiting time information; the fourth type message prompt box comprises a first operation button and a second operation button, and the second operation button displays timing time;
when timing is stopped or clicking operation of a user based on the second operation button is received, the link skipping event is released;
and intercepting the link jump event when receiving the click operation of the user based on the first operation button.
In an optional implementation manner, the interception configuration information includes interception type information, and the step of processing the link jump event according to an interception policy corresponding to the interception configuration information includes:
when the interception type information is a fifth set parameter, popping up a fifth type message prompt box; the fifth type message prompt box comprises a third operation button and a fourth operation button;
intercepting the link skipping event when receiving the click operation of the user based on the third operation button;
and when the click operation of the user based on the fourth operation button is received, the link jump event is released.
In an optional implementation manner, the intercepting configuration information includes intercepting type information, and the step of processing the link jump event according to the intercepting policy corresponding to the intercepting configuration information includes:
when the interception type information is a sixth setting parameter, directly releasing the link skip event without popping up a message prompt box;
and when the interception type information is a seventh setting parameter, directly intercepting the link jump event without popping up a message prompt box.
In an optional embodiment, an intra-page jump protocol list is preset in the application program, and the method further includes:
if the in-page jump protocol used by the link jump event is recorded in the in-page jump protocol list, processing the link jump event through the application program;
and if the in-page jump protocol used by the link jump event is not recorded in the in-page jump protocol list and the interception configuration information is not cached in the application program, directly releasing the link jump event.
In a second aspect, an embodiment of the present invention provides a link jump control apparatus, which is applied to a terminal device, where the terminal device is installed with an application program, the terminal device communicates with a server through the application program, and the server stores interception configuration information in advance, where the interception configuration information is used to determine an interception policy during link jump, where the apparatus includes:
a configuration information acquisition module, configured to acquire the interception configuration information from the server when the application program is started or in the running process of the application program;
and the jump processing module is used for processing the link jump event according to an interception strategy corresponding to the interception configuration information if the interception configuration information is cached in the application program when the link jump event of jumping to a third-party application program is triggered in the application program.
In a third aspect, an embodiment of the present invention provides a terminal device, including a processor and a memory, where the memory stores a computer program that can be executed by the processor, and the computer program, when executed by the processor, implements the method described in any one of the foregoing embodiments.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the method according to any one of the foregoing embodiments.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
in the link jump control method and the related device provided by the embodiment of the invention, the terminal equipment is provided with the application program and is communicated with the server through the application program, the server is prestored with interception configuration information, the interception configuration information is used for determining an interception strategy during link jump, the terminal equipment acquires the interception configuration information from the server when the application program is started or the application program is in the running process, and when a link jump event of jumping to a third-party application program is triggered in the application program, if the interception configuration information is cached in the application program, the link jump event is processed according to the interception strategy corresponding to the interception configuration information. The method has the advantages that the terminal equipment can acquire the interception configuration information from the server when the application program is started or in the running process of the application program, so that the terminal equipment can acquire different interception configuration information by setting different interception configuration information in the server, and further, when the link jump event is triggered in the application program, the link jump event is processed by adopting different interception strategies, so that the diversification and flexibility of the interception strategies are realized, and the user experience is improved.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic diagram illustrating an application environment of a link jump control method and apparatus provided in an embodiment of the present invention;
fig. 2 is a block diagram of a terminal device according to an embodiment of the present invention;
FIG. 3 is a flow chart of a link jump control method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating a first type message prompt box;
FIG. 5 is a schematic diagram illustrating a second type of message prompt box;
FIG. 6 is a schematic diagram illustrating a third category of message prompt boxes;
FIG. 7 is a schematic diagram illustrating a fourth type message prompt box;
FIG. 8 is a schematic diagram illustrating a fifth category of message prompt boxes;
fig. 9 is a schematic flowchart illustrating a link jump control method according to an embodiment of the present invention;
fig. 10 is a functional block diagram of a link jump control apparatus according to an embodiment of the present invention.
An icon: 100-a terminal device; 200-a network; 300-a server; 101-an application program; 110-a memory; 120-a processor; 130-a communication module; 140-a display module; 510-a configuration information obtaining module; 520-jump processing module.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It is noted that relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
Fig. 1 is a schematic view of an application environment of a link jump control method and apparatus according to an embodiment of the present invention. The terminal device 100 is communicatively connected to one or more servers 300 via the network 200 to enable data communication or interaction between the terminal device 100 and the one or more servers 300.
In the present embodiment, the terminal device 100 has an application 101 installed therein, and can provide a service to a user in correspondence with the server 300. For example, the application 101 may be a beauty camera, various types of instant messaging software, and the like, and the terminal device 100 communicates with the one or more servers 300 through the application 101.
In an application 101, a plurality of different services, such as payment service, information flow service, financial service, live broadcast service, advertisement service, etc., are generally included, and the services are divided differently among the different applications 101. Therefore, the application 101 can be understood as an integral body composed of a plurality of services, and the service codes are integrated in the application 101 to form the integral functions of the application 101. Different services in the application 101 may correspond to different servers 300, for example, an advertisement service may correspond to an advertisement server (domain name is ad.
In the present embodiment, the terminal Device 100 may be, but is not limited to, a smart phone, a tablet Computer, a Personal Computer (PC), a Mobile Internet Device (MID), a Personal Digital Assistant (PDA), an e-book reader, a vehicle-mounted Computer, and the like. The server 300 may be, but is not limited to, a web server, a database server, a cloud server, and the like.
Fig. 2 is a block diagram of a terminal device 100 according to an embodiment of the present invention. The terminal device 100 includes a memory 110, a processor 120, a communication module 130, and a display module 140. The memory 110, the processor 120, the communication module 130, and the display module 140 are electrically connected to each other directly or indirectly to enable data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines.
The memory 110 is used to store programs or data. The Memory 110 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Read Only Memory (EPROM), an electrically Erasable Read Only Memory (EEPROM), and the like.
The processor 120 is used to read/write data or programs stored in the memory 110 and perform corresponding functions. For example, when the computer program stored in the memory 110 is executed by the processor 120, the link jump control method disclosed in the embodiment of the present invention can be implemented.
The communication module 130 is used to establish a communication connection between the terminal device 100 and another communication terminal (e.g., the server 300) through the network 200, and to transceive data through the network 200.
The display module 140 is used for providing an interactive interface (e.g., a user operation interface) between the terminal device 100 and a user. In this embodiment, the display module 140 may be a liquid crystal display or a touch display, and the touch display may be a capacitive touch screen or a resistive touch screen supporting single-point and multi-point touch operations. Supporting single-point and multi-point touch operations means that the touch display can sense touch operations generated from one or more positions on the touch display, and the sensed touch operations are sent to the processor 120 for calculation and processing.
It should be understood that the structure shown in fig. 2 is only a schematic diagram of the structure of the terminal device 100, and the terminal device 100 may include more or less components than those shown in fig. 2, or have a different configuration than that shown in fig. 2. The components shown in fig. 2 may be implemented in hardware, software, or a combination thereof.
The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by the processor 120, implements the link jump control method disclosed in the embodiment of the present invention.
Fig. 3 is a schematic flow chart of a link jump control method according to an embodiment of the present invention. It should be noted that the link jump control method according to the embodiment of the present invention is not limited by fig. 3 and the following specific sequence, and it should be understood that, in other embodiments, the sequence of some steps in the link jump control method according to the embodiment of the present invention may be interchanged according to actual needs, or some steps may be omitted or deleted. The specific flow shown in fig. 3 will be described in detail below.
Step S201, when the application is started or in the running process of the application, obtaining the interception configuration information from the server.
The server 300 stores interception configuration information in advance, where the interception configuration information is used to determine an interception policy during link skip. The terminal device 100 may acquire current interception configuration information from the server 300 each time the application 101 is started or during the operation of the application 101, and cache the acquired interception configuration information.
In one example, a specific button may be set in the application 101, and the interception configuration information may be obtained from the server 300 by clicking the specific button during the running of the application 101. In another example, when entering a certain page in the application 101, the server 300 may first obtain the interception configuration information, and then perform a jump to the page.
In this embodiment, the application 101 only caches a piece of interception configuration information, and after acquiring new interception configuration information from the server 300, the new interception configuration information will overwrite the original cached interception configuration information. For example, when the application program 101 is started, the acquired interception configuration information is P, and is cached in the application program 101; if new interception configuration information Q is obtained in the running process of the application 101, the new interception configuration information Q is overwritten on the originally cached interception configuration information P, so that the interception configuration information is updated.
Step S202, when a link jump event of jumping to a third-party application program is triggered in the application program, if interception configuration information is cached in the application program, the link jump event is processed according to an interception strategy corresponding to the interception configuration information.
In this embodiment, after acquiring the interception configuration information from the server 300, the terminal device 100 caches the interception configuration information in the application 101, but if the terminal device 100 does not actually acquire the interception configuration information or the interception configuration information caching fails due to a network failure or the like, the application 101 may not have the interception configuration information. In view of the situation that there is no cached interception configuration information in the application 101, when a link jump event that jumps to a third-party application is triggered in the application 101, the terminal device 100 needs to determine whether the interception configuration information is cached in the application 101, and if the interception configuration information is cached, determine an interception policy of the link jump event according to the cached interception configuration information, and further process the link jump event according to the interception policy.
In this embodiment, the control logic of the link jump may be present in an SDK (Software Development Kit) as a component, where the SDK may be understood as a code module with a certain independent function, and the SDK encapsulates a certain function inside to implement, and exposes a simple API (Application Programming Interface) to the outside, for example, provides an API for modifying and intercepting configuration information, and is used through external call. The SDK may be integrated into the application 101 and when a link jump event is triggered in the application 101, the link jump event is handed over to the SDK for processing. The control logic component linking the jump is carried by the SDK so that other SDKs and the host (application 101) can all call directly.
When the application program 101 is started, the SDK accesses an interface of the server 300 to obtain current interception configuration information, the interception configuration information is cached in the application program 101, after the application program 101 is started, any service in the application program 101 can also modify the interception configuration information by calling an API in the SDK, and when a link jump event occurs, the link jump event is processed based on the interception configuration information cached in the application program 101. For example, when a link jump event occurs in an advertisement service, acquiring interception configuration information P from an advertisement server corresponding to the advertisement service, calling an API in the SDK to modify the interception configuration information cached by the application program 101 into the interception configuration information P, and then executing a page jump; then, if a link jump event occurs in the financial service, acquiring interception configuration information Q from a financial server corresponding to the financial service, calling an API (application programming interface) in the SDK (software development kit) to modify the interception configuration information P cached by the application program 101 into the interception configuration information Q, and then executing page jump; thus, after the application 101 is started, skipping deeplink in different places can be processed by adopting different interception strategies.
As can be seen, since the terminal device 100 can obtain the interception configuration information from the server 300 when the application program 101 is started or during the running of the application program 101, the terminal device 100 can obtain different interception configuration information by setting different interception configuration information in the server 300, and then when the link jump event is triggered in the application program 101, the link jump event can be processed by using different interception policies, so that diversification and flexibility of the interception policies are realized, and user experience is improved.
Next, a detailed description is given to a process of the terminal device 100 processing the link jump event according to the interception policy corresponding to the interception configuration information, which may specifically include the following situations:
first, the interception configuration information includes interception type information and waiting time information, and the step S202 specifically includes: when the interception type information is a first set parameter, popping up a first type message prompt box, timing according to the waiting time information, and releasing a link skip event after timing is stopped; wherein, the first type message prompt box does not display the timing time.
For example, assuming that the first setting parameter is "1", the first type message prompt box is a toast prompt box, and the countdown method is used for timing, when the interception type information (type) cached by the application 101 is "1", the first type message prompt box shown in fig. 4 will pop up on the screen of the terminal device 100 to prompt that "leave the beauty camera and go to the third party application" is about to occur, and the countdown time information is not displayed in the first type message prompt box, the terminal device 100 starts countdown according to the waiting time information cached by the application 101, and when the timing is stopped, the link jump event is automatically released.
Second, the interception configuration information includes interception type information and waiting time information, and the step S202 specifically includes: when the interception type information is a second set parameter, popping up a second type message prompt box, timing according to the waiting time information, and releasing the link skip event after the countdown is stopped; and the second type message prompt box displays the timing time.
For example, if the second setting parameter is "2", the second type message prompt box is a toast prompt box, and the countdown method is used for timing, when the interception type information (type) cached by the application 101 is "2", the second type message prompt box shown in fig. 5 will pop up on the screen of the terminal device 100 to prompt that "3 seconds later, the user will leave the beauty camera and go to the third party application", the prompt information in the second type message prompt box is updated every second to display the current countdown time information, and when the countdown is stopped, the link jump event is automatically released.
Thirdly, the interception configuration information includes interception type information and waiting time information, and the step S202 specifically includes: when the interception type information is a third set parameter, popping up a third type message prompt box, and timing according to the waiting time information; the third type message prompt box comprises an operation button, and the operation button is displayed with timing time; and when the timing is stopped or the click operation of the user based on the operation button is received, the link jump event is released.
For example, if the third setting parameter is "3", the third type message prompt box is an Alert prompt box, and the countdown mode is adopted for timing, and the document information displayed on the operation button of the third type message prompt box is "allow + current countdown time information", when the interception type information (type) cached by the application 101 is "3", the third type message prompt box shown in fig. 6 will pop up on the screen of the terminal device 100 to prompt that "it is about to leave the poster factory and go to the third party application", and "allow (3 s)" is displayed on the operation button of the third type message prompt box, and when the user clicks the operation button, or the countdown stops, the jump link event is automatically released.
Fourthly, the interception configuration information includes interception type information and waiting time information, and the step S202 specifically includes: when the interception type information is a fourth set parameter, popping up a fourth type message prompt box, and timing according to the waiting time information; the fourth type message prompt box comprises a first operation button and a second operation button, and timing time is displayed on the second operation button; when the timing is stopped or the click operation of the user based on the second operation button is received, the link skipping event is released; and intercepting the link jump event when receiving the click operation of the user based on the first operation button.
For example, if the fourth setting parameter is "4", the fourth type message prompt box is an Alert prompt box, and the countdown mode is adopted for timing, the document information displayed by the first operation button is "cancel", and the document information displayed by the second operation button is "allow + current countdown time information", when the interception type information (type) cached by the application program 101 is "4", the fourth type message prompt box shown in fig. 7 will pop up on the screen of the terminal device 100, so as to prompt "about to leave the poster factory and go to the third party application", and the "cancel" is displayed on the first operation button of the fourth type message prompt box, and the "allow (3 s)" is displayed on the second operation button, and when the user clicks the first operation button, the countdown will be stopped, and the link skipping event will be intercepted; and when the user clicks the second operation button or the countdown is stopped, automatically releasing the link skipping event.
Fifth, the interception configuration information includes interception type information, and the step S202 specifically includes: when the interception type information is a fifth set parameter, popping up a fifth type message prompt box; the fifth type message prompt box comprises a third operation button and a fourth operation button; intercepting a link jump event when receiving click operation of a user based on a third operation button; and when receiving the click operation of the user based on the fourth operation button, releasing the link jump event.
For example, assuming that the fifth setting parameter is "5", the fifth type message prompt box is an Alert prompt box, the document information displayed by the first operation button is "cancel", the document information displayed by the second operation button is "allow", and no timing is performed because there is no waiting time information in the interception configuration information, when the interception type information (type) cached by the application 101 is "5", the fifth type message prompt box shown in fig. 8 will pop up on the screen of the terminal device 100 to prompt that "it is about to leave the poster factory and go to the third party application", the first operation button of the fourth type message prompt box displays "cancel", the second operation button displays "allow", and when the user clicks the first operation button, the link skip event will be intercepted; and when the user clicks the second operation button, automatically releasing the link jump event.
Sixth, the interception configuration information includes interception type information, and the step S202 specifically includes: when the interception type information is a sixth setting parameter, a message prompt box is not popped up, and the link skip event is directly released; and when the interception type information is a seventh setting parameter, directly intercepting the link jump event without popping up a message prompt box.
For example, if the sixth setting parameter is "0" and the seventh setting parameter is "6", when the interception type information (type) cached by the application 101 is "0", the link skip event is directly released, and a message prompt box is not popped up to prompt the user; when the interception type information (type) cached by the application 101 is "6", the link jump event is directly intercepted, and a message prompt box is not popped up to prompt the user.
In this embodiment, the interception configuration information under different situations is issued by the server 300, so that different interception configuration information can be set in the server 300 for different application scenarios, thereby implementing regulation and control of the interception policy on the application 101. In one example, when the present embodiment is applied to an advertisement system, the interception configuration information may be issued together with advertisement data, so that different interception policies may be enabled for different types of advertisements. For example, during the life cycle of the application 101, the user can see the interception policy a for processing the link jump event in the open screen advertisement, see the interception policy B for processing the link jump event in the information flow advertisement, and see the interception policy C for processing the link jump event in the banner advertisement, thereby achieving the purpose of using different interception policies at specific times of specific services.
Therefore, the interception strategies under various conditions of the design have various transition effects from direct release without prompting to direct interception without prompting, a timing function exists in part of the interception strategies, and the user operation cost is saved by directly skipping after timing is finished. Meanwhile, by adopting different interception strategies, the use experience of the user and the functions of the application program 101 are fully considered. For example, in the prior art, if the link jump event is uniformly and directly released, the flow loss of the application program 101 itself and the user experience are deteriorated, because the user does not know the link jump event, in the embodiment, the user can know what is happening currently and generate the psychological expectation of about to jump out of the application program 101 by popping up the message prompt box, so that the user has the right to know, and the user experience is improved; for another example, for an advertiser who does not comply with the App rule in an advertisement system, only the h5 page is originally appointed to be displayed, and when a link jump event is actually forced to occur on the h5 page, the link jump event can be directly intercepted according to the interception configuration information issued along with advertisement data, so that the forced jump is avoided; finally, for the message prompt box with the cancel or allow operation button, the user can not only know the upcoming link jump event, but also can intercept or release the link jump event by actively clicking the cancel or allow operation button, thereby enhancing the active selection right and the interactive experience of the user, and enabling the application program 101 to generate different functions according to different selections of the user.
It should be noted that the embodiments of the present invention are not limited to the several interception policies proposed in the foregoing, and in practical application, the interception scheme and the presentation form may be expanded according to actual needs or along with the development of technology, and a new interception policy is updated and implemented in the SDK.
Optionally, a list of intra-page jump protocols (scheme) is preset in the application 101, and the application 101 directly processes the intra-page jump protocols in the schema list, instead of handing them to the SDK. Based on this, referring to fig. 9, the link jump control method may further include:
step S401, when a link jump event that jumps to a third-party application program is triggered in the application program, whether an in-page jump protocol used by the link jump event is recorded in an in-page jump protocol list is judged.
In this embodiment, the schema generally adopts a format of "protocol:// host/pathquery", where protocol is a self-defined protocol name, host is a self-defined character string,/path may be an empty character or may be self-defined, and query is generally key1= value1& key2= value2 &8230, and in 8230, an in-page jump protocol list used by a link jump event may be represented in an array form, or may be understood as a schema white list set in the application 101, for example [ "p1", "p2", "p3" ], and when the in-page jump protocol used by the link jump event is "p1://" beginning or "p 2:/" beginning or "p3", it may be determined that the in-page jump protocol is recorded in the in-page jump protocol list, and belongs to the schema white list.
If the in-page jump protocol used by the link jump event is recorded in the in-page jump protocol list, executing step S402; if the intra-page jump protocol used by the link jump event is not recorded in the intra-page jump protocol list, step S403 is executed.
Step S402, if the jump protocol in the page used by the link jump event is recorded in the jump protocol list in the page, the link jump event is processed through the application program.
In this embodiment, when the SDK determines that the intra-page jump protocol used by the link jump event is recorded in the intra-page jump protocol list, the link jump event is directly handed to the application 101 for processing.
Step S403, determining whether the application program has the interception configuration information cached therein.
When the cached interception configuration information does not exist in the application program 101, executing step S404; when the cached interception configuration information exists in the application 101, step S405 is performed.
Step S404, if the in-page jump protocol used by the link jump event is not recorded in the in-page jump protocol list and the interception configuration information is not cached in the application program, the link jump event is directly released.
In this embodiment, when acquisition of the interception configuration information fails or the cache fails due to a network failure or the like, the application 101 does not have the cached interception configuration information, and the link jump event is directly released at this time.
Step S405, if the in-page jump protocol used by the link jump event is not recorded in the in-page jump protocol list and the interception configuration information is cached in the application program, processing the link jump event according to the interception strategy corresponding to the interception configuration information.
That is to say, when it is detected that a link jump event occurs in the application 101, the SDK first determines whether an intra-page jump protocol corresponding to the link jump event belongs to a scheme white list of the application 101, if not, further determines whether cached interception configuration information exists in the application 101, and if so, determines an interception policy of the link jump event according to the cached interception configuration information, and then processes the link jump event according to the interception policy.
In order to execute the corresponding steps in the above embodiments and various possible modes, an implementation mode of the link jump control device is given below. Please refer to fig. 10, which is a functional block diagram of a link jump control apparatus according to an embodiment of the present invention. It should be noted that the basic principle and the resulting technical effect of the link jump control apparatus provided in this embodiment are the same as those of the above embodiment, and for the sake of brief description, no mention is made in this embodiment, and reference may be made to the corresponding contents in the above embodiment. The link skip control means includes a configuration information acquisition module 510 and a skip processing module 520.
Alternatively, the above modules may be stored in the memory 110 shown in fig. 2 in the form of software or Firmware (Firmware) or may be solidified in an Operating System (OS) of the terminal device 100, and may be executed by the processor 120 in fig. 2. Meanwhile, data, codes of programs, and the like required to execute the above-described modules may be stored in the memory 110.
The configuration information obtaining module 510 is configured to obtain the interception configuration information from the server 300 when the application 101 is started or during the running of the application 101.
It is understood that the configuration information obtaining module 510 may perform the step S201.
The jump processing module 520 is configured to, when a link jump event that jumps to a third-party application program is triggered in the application program 101, process the link jump event according to an interception policy corresponding to interception configuration information if the interception configuration information is cached in the application program 101.
Optionally, the interception configuration information may include interception type information and waiting time information, and the skip processing module 520 is specifically configured to pop up a first type message prompt box when the interception type information is a first set parameter, perform timing according to the waiting time information, and release a link skip event after the timing is stopped; wherein, the first type message prompt box does not display the timing time.
Optionally, the interception configuration information may include interception type information and waiting time information, and the skip processing module 520 is specifically configured to pop up a second type message prompt box when the interception type information is a second setting parameter, perform timing according to the waiting time information, and release a link skip event after the timing is stopped; and the second type message prompt box displays the timing time.
Optionally, the interception configuration information may include interception type information and waiting time information, and the skip processing module 520 is specifically configured to pop up a third type message prompt box when the interception type information is a third setting parameter, and perform timing according to the waiting time information; the third type message prompt box comprises an operation button, and the operation button is displayed with timing time; and when the timing is stopped or the click operation of the user based on the operation button is received, the link jump event is released.
Optionally, the interception configuration information may include interception type information and waiting time information, and the skip processing module 520 is specifically configured to pop up a fourth type message prompt box when the interception type information is a fourth setting parameter, and perform timing according to the waiting time information; the fourth type message prompt box comprises a first operation button and a second operation button, and the second operation button displays timing time; when the timing is stopped or the clicking operation of the user based on the second operation button is received, the link skipping event is released; and when receiving the clicking operation of the user based on the first operation button, intercepting a link jumping event.
Optionally, the interception configuration information may include interception type information, and the skip processing module 520 is specifically configured to pop up a fifth type message prompt box when the interception type information is a fifth setting parameter; the fifth type message prompt box comprises a third operation button and a fourth operation button; intercepting a link jump event when receiving click operation of a user based on a third operation button; and when receiving the click operation of the user based on the fourth operation button, releasing the link jump event.
Optionally, the interception configuration information may include interception type information, and the skip processing module 520 is specifically configured to directly release the link skip event without popping up a message prompt box when the interception type information is a sixth setting parameter, and directly intercept the link skip event without popping up the message prompt box when the interception type information is a seventh setting parameter.
Optionally, an in-page jump protocol list is preset in the application 101, and the jump processing module 520 is further configured to process the link jump event through the application 101 if an in-page jump protocol used by the link jump event is recorded in the in-page jump protocol list; if the in-page jump protocol used by the link jump event is not recorded in the in-page jump protocol list and the interception configuration information is not cached in the application program 101, the link jump event is directly released.
It is understood that the jump processing module 520 may execute the steps S202, S401 to S405.
To sum up, in the link jump control method and the related apparatus provided in the embodiments of the present invention, the terminal device installs the application program, and communicates with the server through the application program, the server stores in advance interception configuration information, where the interception configuration information is used to determine an interception policy at the time of link jump, the terminal device obtains the interception configuration information from the server when the application program is started or the application program is running, and when a link jump event that a jump is triggered in the application program to a third-party application program, if the interception configuration information is cached in the application program, the link jump event is processed according to the interception policy corresponding to the interception configuration information. The method has the advantages that the terminal equipment can acquire the interception configuration information from the server when the application program is started or in the running process of the application program, so that the terminal equipment can acquire different interception configuration information by setting different interception configuration information in the server, and further, when the link jump event is triggered in the application program, the link jump event is processed by adopting different interception strategies, so that the diversification and flexibility of the interception strategies are realized, and the user experience is improved.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, and various media capable of storing program codes.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (10)
1. A link jump control method is applied to a terminal device, the terminal device is provided with an application program, the terminal device communicates with a server through the application program, the server stores interception configuration information in advance, the interception configuration information is used for determining an interception strategy when a link jumps, and an in-page jump protocol list is preset in the application program, and the method comprises the following steps:
when the application program is started or in the running process of the application program, acquiring the interception configuration information from the server;
when a link jump event for jumping to a third-party application program is triggered in the application program, if an in-page jump protocol used by the link jump event is not recorded in the in-page jump protocol list and the interception configuration information is cached in the application program, processing the link jump event according to an interception strategy corresponding to the interception configuration information; if the in-page jump protocol used by the link jump event is recorded in the in-page jump protocol list, processing the link jump event through the application program; if the in-page jump protocol used by the link jump event is not recorded in the in-page jump protocol list and the interception configuration information is not cached in the application program, directly releasing the link jump event; the in-page jump protocol list is expressed in an array form, and the format adopted by the in-page jump protocol is protocol:// host/path.
2. The method according to claim 1, wherein the interception configuration information includes interception type information and latency information, and the step of processing the link jump event according to the interception policy corresponding to the interception configuration information includes:
when the interception type information is a first set parameter, popping up a first type message prompt box, timing according to the waiting time information, and releasing the link skip event after timing is stopped; and the first type message prompt box does not display the timing time.
3. The method according to claim 1, wherein the interception configuration information includes interception type information and latency information, and the step of processing the link jump event according to the interception policy corresponding to the interception configuration information includes:
when the interception type information is a second set parameter, popping up a second type message prompt box, timing according to the waiting time information, and releasing the link skip event after timing is stopped; and displaying the timing time in the second type message prompt box.
4. The method according to claim 1, wherein the interception configuration information includes interception type information and latency information, and the step of processing the link jump event according to the interception policy corresponding to the interception configuration information includes:
when the interception type information is a third set parameter, popping up a third type message prompt box, and timing according to the waiting time information; the third type message prompt box comprises an operation button, and the operation button is displayed with timing time;
and when the timing is stopped or the clicking operation of the user based on the operation button is received, the link skipping event is released.
5. The method according to claim 1, wherein the interception configuration information includes interception type information and latency information, and the step of processing the link jump event according to the interception policy corresponding to the interception configuration information includes:
when the interception type information is a fourth set parameter, popping up a fourth type message prompt box, and timing according to the waiting time information; the fourth type message prompt box comprises a first operation button and a second operation button, and the second operation button displays timing time;
when the timing is stopped or the click operation of the user based on the second operation button is received, the link skipping event is released;
and intercepting the link jump event when receiving the click operation of the user based on the first operation button.
6. The method according to claim 1, wherein the interception configuration information includes interception type information, and the step of processing the link jump event according to the interception policy corresponding to the interception configuration information includes:
when the interception type information is a fifth set parameter, popping up a fifth type message prompt box; the fifth type message prompt box comprises a third operation button and a fourth operation button;
intercepting the link skipping event when receiving the click operation of the user based on the third operation button;
and when the click operation of the user based on the fourth operation button is received, the link jump event is released.
7. The method according to claim 1, wherein the interception configuration information includes interception type information, and the step of processing the link jump event according to the interception policy corresponding to the interception configuration information includes:
when the interception type information is a sixth setting parameter, a message prompt box is not popped up, and the link skip event is directly released;
and when the interception type information is a seventh set parameter, directly intercepting the link jump event without popping up a message prompt box.
8. The link jump control device is applied to a terminal device, the terminal device is provided with an application program, the terminal device communicates with a server through the application program, the server stores interception configuration information in advance, the interception configuration information is used for determining an interception strategy during link jump, an in-page jump protocol list is preset in the application program, and the link jump control device comprises:
a configuration information acquisition module, configured to acquire the interception configuration information from the server when the application program is started or in the running process of the application program;
the jump processing module is used for processing the link jump event according to an interception policy corresponding to the interception configuration information if an in-page jump protocol used by the link jump event is not recorded in the in-page jump protocol list and the interception configuration information is cached in the application program when the link jump event of jumping to a third-party application program is triggered in the application program; if the in-page jump protocol used by the link jump event is recorded in the in-page jump protocol list, processing the link jump event through the application program; if the in-page jump protocol used by the link jump event is not recorded in the in-page jump protocol list and the interception configuration information is not cached in the application program, directly releasing the link jump event; the in-page jump protocol list is expressed in an array form, and the format adopted by the in-page jump protocol is protocol:// host/path.
9. A terminal device, characterized in that it comprises a processor and a memory, said memory storing a computer program executable by said processor, said computer program, when executed by said processor, implementing the method of any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010447114.6A CN111625736B (en) | 2020-05-25 | 2020-05-25 | Link skip control method and related device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010447114.6A CN111625736B (en) | 2020-05-25 | 2020-05-25 | Link skip control method and related device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111625736A CN111625736A (en) | 2020-09-04 |
CN111625736B true CN111625736B (en) | 2023-04-07 |
Family
ID=72272074
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010447114.6A Active CN111625736B (en) | 2020-05-25 | 2020-05-25 | Link skip control method and related device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111625736B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115103060A (en) * | 2022-06-24 | 2022-09-23 | 中国银行股份有限公司 | Function jump interception method and device for mobile phone application program |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107277803A (en) * | 2017-06-12 | 2017-10-20 | 广州市家佑医疗科技有限公司 | Wireless network authentication method, apparatus and system based on iOS terminals |
CN107679214A (en) * | 2017-10-16 | 2018-02-09 | 深圳视界信息技术有限公司 | Link localization method, device, terminal and computer-readable recording medium |
CN107844324A (en) * | 2017-10-23 | 2018-03-27 | 北京京东尚科信息技术有限公司 | Customer terminal webpage redirects treating method and apparatus |
CN109840418A (en) * | 2019-02-19 | 2019-06-04 | Oppo广东移动通信有限公司 | Jump control method, device, storage medium and the terminal of application program |
CN110221872A (en) * | 2019-04-22 | 2019-09-10 | 五八有限公司 | Method for page jump, device, electronic equipment and storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8443346B2 (en) * | 2007-01-18 | 2013-05-14 | Aol Inc. | Server evaluation of client-side script |
-
2020
- 2020-05-25 CN CN202010447114.6A patent/CN111625736B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107277803A (en) * | 2017-06-12 | 2017-10-20 | 广州市家佑医疗科技有限公司 | Wireless network authentication method, apparatus and system based on iOS terminals |
CN107679214A (en) * | 2017-10-16 | 2018-02-09 | 深圳视界信息技术有限公司 | Link localization method, device, terminal and computer-readable recording medium |
CN107844324A (en) * | 2017-10-23 | 2018-03-27 | 北京京东尚科信息技术有限公司 | Customer terminal webpage redirects treating method and apparatus |
CN109840418A (en) * | 2019-02-19 | 2019-06-04 | Oppo广东移动通信有限公司 | Jump control method, device, storage medium and the terminal of application program |
CN110221872A (en) * | 2019-04-22 | 2019-09-10 | 五八有限公司 | Method for page jump, device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111625736A (en) | 2020-09-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20210334856A1 (en) | Telecommunications call augmentation system | |
CN107820701B (en) | Developer exchange system | |
US20210117059A1 (en) | Application interface management method and apparatus | |
KR101523607B1 (en) | Apparatus and methods for widget intercommunication in a wireless communication environment | |
US10410241B1 (en) | Swipe screen advertisement metrics and tracking | |
US20160188432A1 (en) | Method and Apparatus for Intercepting Implanted Information in Application | |
US20140282245A1 (en) | Dynamic icons | |
CN113535267A (en) | Applet page configuration method and device, electronic equipment and storage medium | |
KR102413396B1 (en) | Method for providing push service using webpush and electronic device supporting the same | |
US9727201B2 (en) | Contextual help | |
US8972525B1 (en) | Selecting an interactive content item based on device age | |
CN111625736B (en) | Link skip control method and related device | |
US20130298034A1 (en) | Delayed command servicing in an application executed on a network accessible device | |
US11461759B1 (en) | System for transmitting customer data from a device | |
KR101671750B1 (en) | Rewards app system for cache-call | |
EP3222030A1 (en) | Telecommunications call augmentation system | |
KR102045917B1 (en) | Advertisement Information Operating Method And System thereof, and Apparatus supporting the same | |
CN118113954A (en) | Page rendering method and electronic device | |
CN115934232A (en) | View display method, device, medium and computing equipment |
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 |