Contact association method and device, storage medium and computer device

By monitoring page switching signals on the terminal device, the system identifies and automatically determines the contacts page, and displays a floating component to indicate that a contact has been added. This solves the problem of users having to manually check whether a friend has been added, thus improving the user experience.

CN115757395BActive Publication Date: 2026-07-03SHENZHEN WORKEC TECH

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN WORKEC TECH
Filing Date
2022-10-24
Publication Date
2026-07-03

AI Technical Summary

Technical Problem

Users need to manually check whether friends have been added when using different applications, which is cumbersome and results in a poor user experience.

Method used

By listening to page switching signals on the terminal device, it can identify whether the currently displayed page is the contacts page of the preset application. When it is detected that the user is viewing the contacts page, it automatically determines whether the currently displayed contact is an added contact. If so, a floating component is displayed to prompt that the contact is automatically associated.

Benefits of technology

The system automatically identifies and prompts users that they have added contacts, eliminating the need for manual viewing and improving user experience while simplifying the process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115757395B_ABST
    Figure CN115757395B_ABST
Patent Text Reader

Abstract

The application relates to the computer technical field and discloses a contact association method and device, a storage medium and a computer device, the method comprising the following steps: a target application program responds to a page switching signal of a terminal device, and identifies whether a current display page belongs to a first contact page of a preset application program; if the current display page belongs to the first contact page, current contact information corresponding to the current display page is acquired; whether the current contact information is contained in an added contact database corresponding to the target application program is inquired; and if the current contact information is contained in the added contact database, a first component is displayed on the current display page. In the case that the contacts displayed in the contact page of the preset application program belong to the added contacts of the target application program, the current displayed contacts and the added contacts of the target application program are automatically associated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a contact association method and apparatus, storage medium, and computer equipment. Background Technology

[0002] With the continuous development of computer technology, smartphones and other terminal devices have become indispensable in people's daily lives and work, leading to the emergence of a growing number of applications. Many applications have social features, and users often need to add friends from one application to another to meet their social needs across different applications. However, while using different applications, users often forget whether they have added friends from the currently used application to the other, requiring them to manually check their friend list, which is cumbersome and results in a poor user experience. Summary of the Invention

[0003] In view of this, this application provides a contact association method and apparatus, storage medium, and computer device that eliminates the need for users to manually check whether contacts have been added, thereby removing tedious manual operations and improving the user experience.

[0004] According to one aspect of this application, a contact association method is provided, the method comprising:

[0005] The target application responds to the page switching signal of the terminal device and identifies whether the currently displayed page belongs to the first contact page of the preset application;

[0006] If the currently displayed page belongs to the first contact page, then obtain the current contact information corresponding to the currently displayed page;

[0007] Query whether the current contact information is contained in the database of added contacts corresponding to the target application;

[0008] If the added contact database contains the current contact information, a first component is displayed floating on the current display page, wherein the first component is used to indicate that the currently displayed contact is an added contact.

[0009] Furthermore, after the first component is displayed floating on the current display page, the method further includes:

[0010] In response to a trigger operation on the first component, based on the current contact information, the user is redirected to the second contact page of the target application.

[0011] Furthermore, the current contact information includes a current contact identifier, and also includes at least one of the following: current contact name, current contact nickname, and current contact avatar information;

[0012] The step of querying whether the current contact information is contained in the database of added contacts corresponding to the target application includes:

[0013] Query whether the database of added contacts contains added contact information that matches the current contact identifier;

[0014] If the added contact database contains the current contact information, then a first component is displayed floating on the current display page, including:

[0015] If the added contact database contains added contact information that matches the contact identifier, a first component is displayed floating on the current display page. If the added contact name in the added contact information does not match the current contact name, and / or the added contact nickname does not match the current contact nickname, and / or the added contact avatar information does not match the current contact avatar information, an update identifier is displayed on the first component.

[0016] The step of responding to a trigger operation on the first component and, based on the current contact information, redirecting to the second contact page of the target application includes:

[0017] In response to a trigger operation on the first component, the part of the current contact information that differs from the added contact information is obtained as updatable information. Based on the added contact information and the updatable information, the user is redirected to the second contact page of the target application.

[0018] Furthermore, after querying whether the current contact information is contained in the added contacts database corresponding to the target application, the method further includes:

[0019] If the added contact database does not contain the current contact information, then a second component is displayed floating on the current display page;

[0020] In response to the triggering operation of the second component, the user is redirected to the contact addition page of the target application, and the current contact information is filled into the contact addition page.

[0021] Furthermore, identifying whether the currently displayed page belongs to the first contact page of a preset application includes:

[0022] Take a screenshot of the current display page of the terminal device and identify whether the screenshot of the current display page matches the layout features of the contact page corresponding to the preset application. The layout features of the contact page include at least one of the following: contact identifier layout parameters, contact name layout parameters, contact nickname layout parameters, and contact avatar layout parameters.

[0023] Furthermore, obtaining the current contact information corresponding to the currently displayed page includes:

[0024] Obtain the contact identifier area, contact name area, contact nickname area, and contact avatar area corresponding to the screenshot of the currently displayed page;

[0025] Text recognition is performed on the contact identifier area, the contact name area, and the contact nickname area respectively to obtain the current contact identifier, the current contact name, and the current contact nickname. Avatar feature encoding is performed based on the contact avatar area to obtain the current contact avatar information.

[0026] Furthermore, before the target application identifies whether the currently displayed page belongs to the first contact page of another application in response to a page switching signal from the terminal device, the method further includes:

[0027] Run the target application, and listen for page switching signals on the terminal device when the user authorizes contact association permissions for the target application, wherein the contact association permissions include application listening permissions, floating window permissions, and screenshot permissions.

[0028] According to another aspect of this application, a contact association device is provided, the device comprising:

[0029] The identification module is used by the target application to identify whether the currently displayed page belongs to the first contact page of the preset application in response to the page switching signal of the terminal device;

[0030] The acquisition module is used to acquire the current contact information corresponding to the current display page if the currently displayed page belongs to the first contact page;

[0031] The query module is used to query whether the current contact information is contained in the database of added contacts corresponding to the target application;

[0032] The display module is used to display a first component floating on the current display page if the added contact database contains the current contact information, wherein the first component is used to indicate that the currently displayed contact is an added contact.

[0033] Furthermore, the display module is also configured to: in response to a trigger operation on the first component, jump to the second contact page of the target application based on the current contact information.

[0034] Furthermore, the current contact information includes a current contact identifier, and also includes at least one of the following: current contact name, current contact nickname, and current contact avatar information;

[0035] The query module is further configured to: query whether the database of added contacts contains added contact information that matches the current contact identifier;

[0036] The display module is further configured to: if the added contact database contains added contact information matching the contact identifier, then display a first component floating on the current display page, wherein if the added contact name in the added contact information does not match the current contact name, and / or the added contact nickname does not match the current contact nickname, and / or the added contact avatar information does not match the current contact avatar information, then display an update identifier on the first component; and,

[0037] In response to a trigger operation on the first component, the part of the current contact information that differs from the added contact information is obtained as updatable information. Based on the added contact information and the updatable information, the user is redirected to the second contact page of the target application.

[0038] Furthermore, the display module is also configured to: if the added contact database does not contain the current contact information, then display a second component floating on the current display page; and,

[0039] In response to the triggering operation of the second component, the user is redirected to the contact addition page of the target application, and the current contact information is filled into the contact addition page.

[0040] Furthermore, the identification module is also used for:

[0041] Take a screenshot of the current display page of the terminal device and identify whether the screenshot of the current display page matches the layout features of the contact page corresponding to the preset application. The layout features of the contact page include at least one of the following: contact identifier layout parameters, contact name layout parameters, contact nickname layout parameters, and contact avatar layout parameters.

[0042] Furthermore, the acquisition module is also used for:

[0043] Obtain the contact identifier area, contact name area, contact nickname area, and contact avatar area corresponding to the screenshot of the currently displayed page;

[0044] Text recognition is performed on the contact identifier area, the contact name area, and the contact nickname area respectively to obtain the current contact identifier, the current contact name, and the current contact nickname. Avatar feature encoding is performed based on the contact avatar area to obtain the current contact avatar information.

[0045] Furthermore, the device also includes:

[0046] The monitoring module is used to run the target application and, when the user authorizes the contact association permissions of the target application, monitor the page switching signals of the terminal device. The contact association permissions include application monitoring permissions, floating window permissions, and screenshot permissions.

[0047] According to another aspect of this application, a storage medium is provided that stores a computer program thereon, which, when executed by a processor, implements the above-described contact association method.

[0048] According to another aspect of this application, a computer device is provided, including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor executes the program to implement the above-described contact association method.

[0049] By employing the above technical solutions, this application provides a contact association method, apparatus, storage medium, and computer device. With user authorization, the terminal device can listen to page switching signals by running a target application. When a page switch is detected, it identifies whether the currently displayed page is the contacts page of a preset application. Furthermore, when it detects that the user is viewing the contacts page using a preset application, it determines whether the contacts on the currently displayed page are already added contacts in the target application. If so, it prompts the user that the currently displayed contact is an added contact in the target application by displaying a first component in a floating manner. Compared to existing technologies that require users to manually check contacts, this application's embodiments automatically associate the currently displayed contact with the added contacts in the target application when the contact displayed on the preset application's contacts page is already added contacts in the target application. This eliminates the need for users to manually check whether a contact has been added, avoiding tedious manual operations and improving the user experience.

[0050] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description

[0051] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0052] Figure 1 A flowchart illustrating a contact association method provided in an embodiment of this application is shown;

[0053] Figure 2 A flowchart illustrating another contact association method provided in an embodiment of this application is shown;

[0054] Figure 3 This illustration shows a schematic diagram of a contact association permission authorization process provided in an embodiment of this application;

[0055] Figure 4 A flowchart illustrating another contact association method provided in an embodiment of this application is shown;

[0056] Figure 5 A schematic diagram of a contact association device provided in an embodiment of this application is shown. Detailed Implementation

[0057] The present application will be described in detail below with reference to the accompanying drawings and embodiments. It should be noted that, unless otherwise specified, the embodiments and features described in the embodiments of the present application can be combined with each other.

[0058] This embodiment provides a contact association method, such as Figure 1 As shown, the method includes:

[0059] Step 101: The target application responds to the page switching signal of the terminal device and identifies whether the currently displayed page belongs to the first contact page of the preset application.

[0060] In this embodiment of the application, when the user has authorized the target application to listen to the application, the terminal device will listen to the page switching status of the terminal device when the target application is running. When the page switching signal is detected, the current display page of the terminal device will be identified to determine whether the current display page belongs to the contact page corresponding to the preset application, i.e., the first contact page. The preset application may include multiple applications, such as social software such as WeChat and QQ. The first contact page may be the friend details page of WeChat.

[0061] Step 102: If the currently displayed page belongs to the first contact page, then obtain the current contact information corresponding to the currently displayed page.

[0062] Step 103: Query whether the current contact information is contained in the added contacts database corresponding to the target application.

[0063] Step 104: If the added contact database contains the current contact information, then a first component is displayed floating on the current display page, wherein the first component is used to indicate that the currently displayed contact is an added contact.

[0064] Furthermore, when it is identified that the current display page of the terminal device belongs to the first contact page of the preset application, the corresponding current contact information is identified from the current display page. For example, in the WeChat contact details page, the WeChat contact's WeChat ID, nickname, nickname, profile picture, etc., are identified. Next, it is queried whether the current contact is an added contact of the target application. Specifically, it can be queried in the added contact database of the target application to see if the current contact information is contained, for example, to see if there are added contacts with the same WeChat ID. Finally, if the current contact displayed on the current display page belongs to the added contacts of the target application, that is, if the added contact database of the target application contains the current contact information, then a first component is displayed in a floating form above the current display page to inform the user that the contact on the current display page is a contact that has been added in the target application. For example, the first component is a component that displays an "Added Contact" label.

[0065] By applying the technical solution of this embodiment, with user authorization, the terminal device can listen to page switching signals on the device by running the target application. When a page switching is detected, it can identify whether the currently displayed page is the contacts page of a preset application. Furthermore, when it is determined that the user is viewing the contacts page using the preset application, it can determine whether the contacts on the currently displayed page are already added contacts in the target application. If so, it will prompt the user that the currently displayed contact is an added contact in the target application by displaying a first component in a floating manner. Compared to the prior art, which requires the user to manually check contacts, this embodiment automatically associates the currently displayed contact with the added contacts in the target application when the contact displayed on the contacts page of the preset application is already added contact in the target application. This eliminates the need for the user to manually check whether the contact has been added, avoiding tedious manual operations and improving the user experience.

[0066] Furthermore, as a refinement and extension of the specific implementation methods of the above embodiments, and to fully illustrate the specific implementation process of this embodiment, another contact association method is provided, such as... Figure 2 As shown, the method includes:

[0067] Step 201: Run the target application, and if the user authorizes the contact association permission of the target application, listen for the page switching signal of the terminal device, wherein the contact association permission includes application listening permission, floating window permission and screenshot permission.

[0068] The contact association method provided in this application requires user authorization. Specifically, when the target application is launched for the first time on the terminal device, a permission dialog box can automatically pop up, prompting the user to authorize application listening permissions, floating window permissions, and screenshot permissions. Alternatively, the user can manually enable the above permissions in the application permission settings of the terminal device. When the terminal device is running the target application, and the target application has already obtained contact association permissions (including application listening permissions, floating window permissions, and screenshot permissions), the listening function is activated to monitor page switching signals on the terminal device.

[0069] like Figure 3The diagram shown illustrates a contact association permission authorization process provided in this application embodiment. Taking WeChat as the preset application and the target application's added contact database as the customer database as an example, when the App is launched for the first time, it enters the permission device stage, and a permission dialog box pops up. After the user agrees, the system will authorize "app page switching broadcast listening permission", "floating dialog pop-up permission", and "screenshot permission". After the entire authorization process is completed, the third-party application (such as WeChat) and the customer database association process will be officially launched.

[0070] Step 202: In response to the page switching signal of the terminal device, the target application takes a screenshot of the current display page of the terminal device and identifies whether the screenshot of the current display page matches the layout features of the contacts page corresponding to the preset application.

[0071] The contact page layout features include at least one of the following: contact identifier layout parameters, contact name layout parameters, contact nickname layout parameters, and contact avatar layout parameters. If the screenshot of the currently displayed page matches the contact page layout features, then the currently displayed page is determined to belong to the first contact page.

[0072] In this embodiment, when a page switching signal is detected, a screenshot of the currently displayed page on the terminal device is taken based on screenshot permission authorization. This screenshot is used to identify whether the page belongs to the first contact page of a preset application. Specifically, taking the first contact page of a preset application, which includes a contact identifier (e.g., WeChat ID), name, nickname, and avatar, as an example, the layout parameters of the contact identifier (e.g., coordinate information of the contact identifier display area), the layout parameters of the contact name (e.g., coordinate information of the contact name display area), the layout parameters of the contact nickname (e.g., coordinate information of the contact nickname display area), and the layout parameters of the contact avatar (e.g., coordinate information of the contact avatar display area) are predetermined. Whether the currently displayed page belongs to the first contact page can be determined from four dimensions: first, the WeChat nickname image is successfully captured; second, the avatar coordinates are captured; third, the nickname is successfully captured; and fourth, the WeChat ID is successfully captured. When all the above conditions are met, the currently displayed page can be considered to belong to the first contact page.

[0073] Step 203: If the currently displayed page belongs to the first contact page, then obtain the contact identifier area, contact name area, contact nickname area and contact avatar area corresponding to the screenshot of the currently displayed page.

[0074] Step 204: Perform text recognition on the contact identifier area, the contact name area, and the contact nickname area respectively to obtain the current contact identifier, the current contact name, and the current contact nickname, and perform avatar feature encoding based on the contact avatar area to obtain the current contact avatar information.

[0075] Step 205: Query whether the current contact information is contained in the added contacts database corresponding to the target application.

[0076] Furthermore, the system can identify various feature areas (identifier, name, nickname, and avatar) in the screenshot of the currently displayed page to obtain the identifier, name, nickname, and avatar information of the current contact on the currently displayed page, such as the binary code of the avatar. Then, using the identified current contact identifier, current contact name, current contact nickname, and current contact avatar information, it can determine whether the current contact is an added contact of the target application. Specifically, since names, nicknames, and avatars are changeable and not unique, while identifiers are generally unique and unchangeable, it can be determined whether the current contact is an added contact by querying whether the current contact identifier exists in the database of added contacts.

[0077] Step 206: If the added contact database contains the current contact information, then a first component is displayed floating on the current display page, wherein the first component is used to indicate that the currently displayed contact is an added contact.

[0078] Step 207: In response to the triggering operation of the first component, based on the current contact information, jump to the second contact page of the target application.

[0079] If the current contact is an added contact in the target application, a first component (e.g., the first component displays "Customer Profile") will be displayed floating on the current page. When the user clicks or otherwise triggers the first component, the user will be redirected to the second contact page in the target application, where the user can view the current contact's contact information in the target application.

[0080] In this embodiment of the application, optionally, step 205 includes: querying whether the added contact database contains added contact information that matches the current contact identifier; step 206 includes: if the added contact database contains added contact information that matches the contact identifier, then a first component is displayed floating on the current display page, wherein if the added contact name in the added contact information does not match the current contact name, and / or the added contact nickname does not match the current contact nickname, and / or the added contact avatar information does not match the current contact avatar information, then an update identifier is displayed on the first component; step 207 includes: in response to a trigger operation on the first component, obtaining the part of the current contact information that is different from the added contact information as updatable information, and based on the added contact information and the updatable information, jumping to the second contact page of the target application.

[0081] In this embodiment, the system determines whether the current contact is an added contact by querying whether the current contact's identifier exists in the database of added contacts. If the result is yes, it further compares whether the current contact's avatar, name, and nickname match the information recorded in the database of added contacts. If they do not match, a special update indicator is attached to the first component floating in the current display page to indicate that the current contact's information has been updated. Users can trigger the first component to enter the second contact page of the target application to update the current contact's information in the target application, so as to better match and maintain consistency of contact information across different applications. In a specific application scenario, the target application can use the part of the current contact information that differs from the added contact information as updatable information. The added contact information of the current contact in the target application and this updatable information are displayed together on the second contact page. The updatable information can be displayed in a modified form, and users can easily replace the original added contact information with the updatable information with one click.

[0082] Step 208: If the added contact database does not contain the current contact information, then the second component is displayed floating on the current display page.

[0083] Step 209: In response to the triggering operation of the second component, jump to the contact addition page of the target application and fill the current contact information into the contact addition page.

[0084] If the target application's added contacts database does not include the current contact's information, meaning the current contact is not among the target application's added contacts, a second component (e.g., displaying "Add Customer") can be displayed floating on the current screen. This component prompts the user to add the current contact to the target application. The user can trigger the second component by clicking or other means. Once triggered, the device is redirected to the target application's contact addition page, where the identified current contact information is filled into the corresponding fields. This includes filling in the contact's ID, avatar, name, and nickname. The default application for the contact can also be added to the contact addition page, allowing the user to determine which application to use to find the contact when viewing contact information in the target application. This quickly identifies unadded contacts and improves contact addition efficiency through the second component-triggered redirection and automatic information filling.

[0085] like Figure 4 As shown in the figure, this application provides a contact association method. After determining that the current display interface (i.e., the target interface in the figure) is the first contact page of a preset application (WeChat in this example), the screenshot image is used for OCR text recognition to obtain the WeChat friend's name, nickname, WeChat ID, and avatar binary data in text format. At this time, a floating box will be displayed. Using the data obtained above, the WeChat ID is used to query customer information data in the target application's customer database. If the query finds a match, it proves that the customer and the WeChat friend are associated. At this time, a "Customer Information Button" will be displayed in the floating box. Clicking the button will redirect to the target application. The application app's customer profile interface allows users to retrieve customer information via WeChat ID and display the correct customer information, thus establishing a complete association. If the WeChat ID cannot be found in the target application app's customer database, it means there is no association between WeChat friends and the customer database. In this case, a "Create Customer" button will appear in the floating window. Clicking this button will import the binary data of the successfully matched WeChat friend's name, nickname, WeChat ID, and profile picture into our app's customer creation interface. When the user clicks "Create Customer," the WeChat friend data is stored in the customer database with one click, thus completing the establishment of the association between customers and WeChat friends.

[0086] Furthermore, as Figure 1 In terms of specific implementation of the method, this application provides a contact association device, such as... Figure 5 As shown, the device includes:

[0087] The identification module is used by the target application to identify whether the currently displayed page belongs to the first contact page of the preset application in response to the page switching signal of the terminal device;

[0088] The acquisition module is used to acquire the current contact information corresponding to the current display page if the currently displayed page belongs to the first contact page;

[0089] The query module is used to query whether the current contact information is contained in the database of added contacts corresponding to the target application;

[0090] The display module is used to display a first component floating on the current display page if the added contact database contains the current contact information, wherein the first component is used to indicate that the currently displayed contact is an added contact.

[0091] Furthermore, the display module is also configured to: in response to a trigger operation on the first component, jump to the second contact page of the target application based on the current contact information.

[0092] Furthermore, the current contact information includes a current contact identifier, and also includes at least one of the following: current contact name, current contact nickname, and current contact avatar information;

[0093] The query module is further configured to: query whether the database of added contacts contains added contact information that matches the current contact identifier;

[0094] The display module is further configured to: if the added contact database contains added contact information matching the contact identifier, then display a first component floating on the current display page, wherein if the added contact name in the added contact information does not match the current contact name, and / or the added contact nickname does not match the current contact nickname, and / or the added contact avatar information does not match the current contact avatar information, then display an update identifier on the first component; and,

[0095] In response to a trigger operation on the first component, the part of the current contact information that differs from the added contact information is obtained as updatable information. Based on the added contact information and the updatable information, the user is redirected to the second contact page of the target application.

[0096] Furthermore, the display module is also configured to: if the added contact database does not contain the current contact information, then display a second component floating on the current display page; and,

[0097] In response to the triggering operation of the second component, the user is redirected to the contact addition page of the target application, and the current contact information is filled into the contact addition page.

[0098] Furthermore, the identification module is also used for:

[0099] Take a screenshot of the current display page of the terminal device and identify whether the screenshot of the current display page matches the layout features of the contact page corresponding to the preset application. The layout features of the contact page include at least one of the following: contact identifier layout parameters, contact name layout parameters, contact nickname layout parameters, and contact avatar layout parameters.

[0100] Furthermore, the acquisition module is also used for:

[0101] Obtain the contact identifier area, contact name area, contact nickname area, and contact avatar area corresponding to the screenshot of the currently displayed page;

[0102] Text recognition is performed on the contact identifier area, the contact name area, and the contact nickname area respectively to obtain the current contact identifier, the current contact name, and the current contact nickname. Avatar feature encoding is performed based on the contact avatar area to obtain the current contact avatar information.

[0103] Furthermore, the device also includes:

[0104] The monitoring module is used to run the target application and, when the user authorizes the contact association permissions of the target application, monitor the page switching signals of the terminal device. The contact association permissions include application monitoring permissions, floating window permissions, and screenshot permissions.

[0105] It should be noted that other corresponding descriptions of the functional units involved in the contact association device provided in this application embodiment can be found by referring to... Figures 1 to 2 The corresponding descriptions in the method will not be repeated here.

[0106] Based on the above, Figures 1 to 2 Accordingly, this application also provides a storage medium storing a computer program, which, when executed by a processor, implements the above-described method. Figures 1 to 2 The contact association method shown.

[0107] Based on this understanding, the technical solution of this application can be embodied in the form of a software product. This software product can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, or portable hard drive), and includes several instructions to cause a computer device (such as a personal computer, server, or network device) to execute the methods described in the various implementation scenarios of this application.

[0108] Based on the above, Figures 1 to 2 The method shown, and Figure 5 To achieve the above objectives, the present application also provides a computer device, specifically a personal computer, server, network device, etc., as shown in the virtual device embodiment. This computer device includes a storage medium and a processor; the storage medium stores a computer program; the processor executes the computer program to achieve the above-described objectives. Figures 1 to 2 The contact association method shown.

[0109] Optionally, the computer device may also include a user interface, a network interface, a camera, radio frequency (RF) circuitry, sensors, audio circuitry, a Wi-Fi module, etc. The user interface may include a display screen, input units such as a keyboard, etc., and optional user interfaces may also include USB interfaces, card reader interfaces, etc. The network interface may optionally include standard wired interfaces, wireless interfaces (such as Bluetooth interfaces, Wi-Fi interfaces), etc.

[0110] Those skilled in the art will understand that the computer device structure provided in this embodiment does not constitute a limitation on the computer device, and may include more or fewer components, or combine certain components, or have different component arrangements.

[0111] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages and stores the hardware and software resources of a computer device, supporting the operation of information processing programs and other software and / or programs. The network communication module is used to enable communication between the various components within the storage medium, as well as communication with other hardware and software within the physical device.

[0112] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware platforms, or it can be implemented by hardware. With user authorization, the terminal device can listen to the page switching signal in the device by running the target application. When the terminal device detects a page switching, it can identify whether the currently displayed page is the contacts page of the preset application. Thus, when it is identified that the user is using the preset application to view the contacts page, it can determine whether the contacts on the currently displayed page are contacts already added in the target application. If they are, it will prompt the user that the currently displayed contact is a contact already added in the target application by displaying a first component in a floating manner. Compared with the prior art, which requires the user to manually check the contacts, this application embodiment can automatically associate the currently displayed contact with the contacts already added in the target application when the contact displayed on the contacts page of the preset application is a contact already added in the target application. This eliminates the need for the user to manually check whether the contact has been added, avoids tedious manual operation, and improves the user experience.

[0113] Those skilled in the art will understand that the accompanying drawings are merely schematic diagrams of a preferred embodiment, and the modules or processes shown in the drawings are not necessarily essential for implementing this application. Those skilled in the art will understand that the modules in the apparatus of the embodiment can be distributed within the apparatus of the embodiment as described, or can be modified to be located in one or more apparatuses different from this embodiment. The modules of the above-described embodiment can be combined into one module, or further divided into multiple sub-modules.

[0114] The serial numbers in this application are for descriptive purposes only and do not represent the superiority or inferiority of any particular implementation scenario. The above disclosures are merely a few specific implementation scenarios of this application; however, this application is not limited thereto, and any variations conceived by those skilled in the art should fall within the protection scope of this application.

Claims

1. A method for associating contacts, characterized in that, The method includes: The target application responds to the page switching signal of the terminal device and identifies whether the currently displayed page belongs to the first contact page of the preset application; If the currently displayed page belongs to the first contact page, then obtain the current contact information corresponding to the currently displayed page; the current contact information includes the current contact identifier, and also includes at least one of the current contact name, current contact nickname and current contact avatar information; Querying whether the target application's added contact database contains the current contact information includes: querying whether the added contact database contains added contact information that matches the current contact identifier; If the added contact database contains the current contact information, a first component is displayed floating on the current display page, including: if the added contact database contains added contact information that matches the contact identifier, a first component is displayed floating on the current display page, wherein if the added contact name in the added contact information does not match the current contact name, and / or the added contact nickname does not match the current contact nickname, and / or the added contact avatar information does not match the current contact avatar information, an update identifier is displayed on the first component, wherein the first component is used to indicate that the currently displayed contact is an added contact; In response to a trigger operation on the first component, based on the current contact information, jump to the second contact page of the target application, including: in response to a trigger operation on the first component, obtaining the part of the current contact information that is different from the added contact information as updatable information, and based on the added contact information and the updatable information, jumping to the second contact page of the target application.

2. The method according to claim 1, characterized in that, After querying whether the current contact information is contained in the database of added contacts corresponding to the target application, the method further includes: If the added contact database does not contain the current contact information, then a second component is displayed floating on the current display page; In response to the triggering operation of the second component, the user is redirected to the contact addition page of the target application, and the current contact information is filled into the contact addition page.

3. The method according to claim 1 or 2, characterized in that, The step of identifying whether the currently displayed page belongs to the first contact page of a preset application includes: A screenshot of the current display page of the terminal device is taken, and it is identified whether the screenshot of the current display page matches the layout features of the contact page corresponding to the preset application. The layout features of the contact page include at least one of the following: contact identifier layout parameters, contact name layout parameters, contact nickname layout parameters, and contact avatar layout parameters. If the screenshot of the current display page matches the layout features of the contact page, it is determined that the current display page belongs to the first contact page.

4. The method according to claim 3, characterized in that, The step of obtaining the current contact information corresponding to the currently displayed page includes: Obtain the contact identifier area, contact name area, contact nickname area, and contact avatar area corresponding to the screenshot of the currently displayed page; Text recognition is performed on the contact identifier area, the contact name area, and the contact nickname area respectively to obtain the current contact identifier, the current contact name, and the current contact nickname. Avatar feature encoding is performed based on the contact avatar area to obtain the current contact avatar information.

5. The method according to claim 3, characterized in that, Before the target application identifies whether the currently displayed page belongs to the first contact page of another application in response to the page switching signal of the terminal device, the method further includes: Run the target application, and listen for page switching signals on the terminal device when the user authorizes contact association permissions for the target application, wherein the contact association permissions include application listening permissions, floating window permissions, and screenshot permissions.

6. A contact association device, characterized in that, The device includes: The identification module is used by the target application to identify whether the currently displayed page belongs to the first contact page of the preset application in response to the page switching signal of the terminal device; The acquisition module is used to acquire the current contact information corresponding to the current display page if the currently displayed page belongs to the first contact page; the current contact information includes the current contact identifier, and also includes at least one of the current contact name, current contact nickname and current contact avatar information; The query module is used to query whether the current contact information is contained in the database of added contacts corresponding to the target application; The display module is configured to, if the added contact database contains the current contact information, to display a first component floating on the current display page, wherein the first component is used to indicate that the currently displayed contact is an added contact; The query module is also used to query whether the database of added contacts contains added contact information that matches the current contact identifier; The display module is further configured to, if the added contact database contains added contact information that matches the contact identifier, then display a first component floating on the current display page, wherein if the added contact name in the added contact information does not match the current contact name, and / or the added contact nickname does not match the current contact nickname, and / or the added contact avatar information does not match the current contact avatar information, then an update identifier is displayed on the first component; The display module is further configured to, in response to a trigger operation on the first component, obtain the portion of the current contact information that differs from the added contact information as updatable information, and, based on the added contact information and the updatable information, jump to the second contact page of the target application.

7. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the contact association method according to any one of claims 1 to 5.

8. A computer device, comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, characterized in that, When the processor executes the computer program, it implements the contact association method according to any one of claims 1 to 5.