[go: up one dir, main page]

CN106503134B - Browser jumps to the method for data synchronization and device of application program - Google Patents

Browser jumps to the method for data synchronization and device of application program Download PDF

Info

Publication number
CN106503134B
CN106503134B CN201610913502.2A CN201610913502A CN106503134B CN 106503134 B CN106503134 B CN 106503134B CN 201610913502 A CN201610913502 A CN 201610913502A CN 106503134 B CN106503134 B CN 106503134B
Authority
CN
China
Prior art keywords
browser
url
application
web page
behavior record
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
Application number
CN201610913502.2A
Other languages
Chinese (zh)
Other versions
CN106503134A (en
Inventor
周璇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Mingchuang Software Technology Co ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610913502.2A priority Critical patent/CN106503134B/en
Publication of CN106503134A publication Critical patent/CN106503134A/en
Application granted granted Critical
Publication of CN106503134B publication Critical patent/CN106503134B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明实施例公开了一种浏览器跳转至应用程序的数据同步方法及装置,其中所述方法包括:检测在浏览器中发起的第一网页资源请求,在检测到所述第一网页资源请求时,获取所述第一网页资源请求对应的第一URL;读取本地应用程序列表,在所述本地应用程序列表中查找与所述第一URL对应的应用程序作为目标应用程序;若查找到,则跳转至所述目标应用程序中与所述第一URL对应的应用界面;获取在所述目标应用程序中发起的第二网页资源请求对应的第二URL,根据所述第二URL生成行为记录;根据预设的同步周期将所述行为记录发送至所述浏览器中进行存储,所述浏览器用于将所述存储的行为记录上报至服务器。采用本发明实施例,可提高浏览器数据统计的准确性。

The embodiment of the present invention discloses a data synchronization method and device for a browser to jump to an application program, wherein the method includes: detecting a first web page resource request initiated in the browser, and after detecting the first web page resource When requesting, obtain the first URL corresponding to the first webpage resource request; read the local application list, and find the application corresponding to the first URL in the local application list as the target application; to, then jump to the application interface corresponding to the first URL in the target application; obtain the second URL corresponding to the second webpage resource request initiated in the target application, according to the second URL Generating a behavior record; sending the behavior record to the browser for storage according to a preset synchronization period, and the browser is configured to report the stored behavior record to the server. By adopting the embodiments of the present invention, the accuracy of browser data statistics can be improved.

Description

浏览器跳转至应用程序的数据同步方法及装置Data synchronization method and device for browser to jump to application program

技术领域technical field

本发明涉及计算机技术领域,尤其涉及一种浏览器跳转至应用程序的数据同步方法及装置。The invention relates to the field of computer technology, and in particular, to a data synchronization method and device for jumping from a browser to an application program.

背景技术Background technique

浏览器是用于显示网站服务器或文件系统内的文件,并让用户与这些文件交互的一种应用软件,它可以显示在万维网或局域网等内的文字、图像及其他信息,这些文字或图像可以是连接其他网址的超链接,用户可迅速而轻易地浏览各种信息。A browser is an application software used to display files in a website server or file system and allow users to interact with these files. It can display text, images and other information on the World Wide Web or a local area network. Are hyperlinks to other web sites, allowing users to browse various information quickly and easily.

当用户在进行网页浏览时,如果终端安装了与所浏览的网站相对应的应用程序,终端会离开浏览器界面并自动跳转打开应用程序,例如,在浏览器中访问淘宝网时,终端检测到本地安装有手机淘宝软件,会自动跳转到手机淘宝的客户端。When the user is browsing the web, if the terminal has installed the application corresponding to the website being browsed, the terminal will leave the browser interface and automatically jump to open the application. For example, when visiting Taobao in the browser, the terminal will detect If the mobile Taobao software is installed locally, it will automatically jump to the mobile Taobao client.

在这种情况下,统计浏览器的访问记录的统计服务器在统计用户流量时,只能统计到跳转至淘宝等APP之前的用户在浏览器上的访问记录,而在用户继续在淘宝等APP上进行购物时,点击按钮或链接产生的访问记录则无法被统计服务器得到,这就使得统计服务器统计得到的访问记录不全面,导致统计的准确率较低。In this case, the statistics server that counts the browser's access records can only count the user's access records on the browser before jumping to Taobao and other apps when it counts user traffic. When shopping on the Internet, the access records generated by clicking buttons or links cannot be obtained by the statistics server, which makes the access records obtained by the statistics server incomplete, resulting in a low statistical accuracy.

发明内容SUMMARY OF THE INVENTION

本发明实施例提出了一种浏览器跳转至应用程序的数据同步方法,可以解决终端应用程序自动跳转导致浏览器数据统计准确率降低的技术问题。The embodiment of the present invention proposes a data synchronization method for a browser to jump to an application program, which can solve the technical problem that the automatic jump of the terminal application program leads to a decrease in the accuracy of browser data statistics.

一种浏览器跳转至应用程序的数据同步方法,包括:A data synchronization method for a browser to jump to an application program, comprising:

检测在浏览器中发起的第一网页资源请求,在检测到所述第一网页资源请求时,获取所述第一网页资源请求对应的第一URL;Detecting the first web page resource request initiated in the browser, and when detecting the first web page resource request, acquiring the first URL corresponding to the first web page resource request;

读取本地应用程序列表,在所述本地应用程序列表中查找与所述第一URL对应的应用程序作为目标应用程序;Reading the local application list, and looking up the application corresponding to the first URL in the local application list as the target application;

若查找到,则跳转至所述目标应用程序中与所述第一URL对应的应用界面;If found, then jump to the application interface corresponding to the first URL in the target application;

获取在所述目标应用程序中发起的第二网页资源请求对应的第二URL,根据所述第二URL生成行为记录;Obtain the second URL corresponding to the second webpage resource request initiated in the target application, and generate a behavior record according to the second URL;

根据预设的同步周期将所述行为记录发送至所述浏览器中进行存储,所述浏览器用于将所述存储的行为记录上报至服务器。The behavior record is sent to the browser for storage according to a preset synchronization period, and the browser is configured to report the stored behavior record to the server.

在其中一个实施例中,所述获取在所述目标应用程序中发起的第二网页资源请求对应的第二URL还包括:In one embodiment, the obtaining the second URL corresponding to the second webpage resource request initiated in the target application further includes:

获取与所述第二URL对应的第二网页资源请求的发起时间戳;obtaining the initiation timestamp of the second webpage resource request corresponding to the second URL;

所述根据所述第二URL生成行为记录还包括:The generating a behavior record according to the second URL further includes:

在所述行为记录中加入与所述第二URL对应的第二网页资源请求的发起时间戳。A time stamp of initiation of the second webpage resource request corresponding to the second URL is added to the behavior record.

在其中一个实施例中,所述根据预设的同步周期将所述行为记录发送至所述浏览器中进行存储之前还包括:In one embodiment, before the behavior record is sent to the browser for storage according to a preset synchronization period, the method further includes:

获取所述目标应用程序当前展示的第一目标网页所对应的目标URL;Obtain the target URL corresponding to the first target webpage currently displayed by the target application;

将所述目标URL发送至所述浏览器,所述浏览器用于展示与所述目标URL对应的第二目标网页。Sending the target URL to the browser, where the browser is configured to display a second target web page corresponding to the target URL.

在其中一个实施例中,所述根据所述第二URL生成行为记录之前还包括:In one embodiment, before generating the behavior record according to the second URL, the method further includes:

获取与所述在所述目标应用程序中发起的第二网页资源请求对应的搜索关键字;obtaining a search keyword corresponding to the second webpage resource request initiated in the target application;

获取与所述在所述目标应用程序中发起的第二网页资源请求对应的网页缩略图;obtaining a webpage thumbnail corresponding to the second webpage resource request initiated in the target application;

所述根据所述第二URL生成行为记录还包括:The generating a behavior record according to the second URL further includes:

在所述行为记录中加入所述搜索关键字和/或所述网页缩略图。The search keyword and/or the webpage thumbnail is added to the behavior record.

在其中一个实施例中,所述跳转至所述目标应用程序中与所述第一URL对应的应用界面之前还包括:In one of the embodiments, before the jumping to the application interface corresponding to the first URL in the target application program further includes:

判断所述目标应用程序是否属于所述预设的可跳转应用程序的白名单,若是,则执行所述跳转至所述目标应用程序中与所述第一URL对应的应用界面。Determine whether the target application belongs to the preset whitelist of jumpable applications, and if so, execute the jump to the application interface corresponding to the first URL in the target application.

此外,还提出了一种浏览器跳转至应用程序的数据同步装置。In addition, a data synchronization device for jumping from a browser to an application program is also proposed.

一种浏览器跳转至应用程序的数据同步装置,包括:A data synchronization device for a browser to jump to an application program, comprising:

网络资源请求检测模块,用于检测在浏览器中发起的第一网页资源请求,在检测到所述第一网页资源请求时,获取所述第一网页资源请求对应的第一URL;A network resource request detection module, configured to detect a first webpage resource request initiated in a browser, and when detecting the first webpage resource request, obtain a first URL corresponding to the first webpage resource request;

目标应用程序确定模块,用于读取本地应用程序列表,在所述本地应用程序列表中查找与所述第一URL对应的应用程序作为目标应用程序;a target application determination module, configured to read a local application list, and find an application corresponding to the first URL in the local application list as a target application;

界面跳转模块,用于跳转至所述目标应用程序中与所述第一URL对应的应用界面;an interface jumping module for jumping to the application interface corresponding to the first URL in the target application;

行为记录生成模块,用于获取在所述目标应用程序中发起的第二网页资源请求对应的第二URL,根据所述第二URL生成行为记录;A behavior record generation module, configured to obtain a second URL corresponding to the second webpage resource request initiated in the target application, and generate a behavior record according to the second URL;

数据同步模块,用于根据预设的同步周期将所述行为记录发送至所述浏览器中进行存储,所述浏览器用于将所述存储的行为记录上报至服务器。A data synchronization module, configured to send the behavior record to the browser for storage according to a preset synchronization period, and the browser is configured to report the stored behavior record to the server.

在其中一个实施例中,所述行为记录生成模块还用于获取与所述第二URL对应的第二网页资源请求的发起时间戳;在所述行为记录中加入与所述第二URL对应的第二网页资源请求的发起时间戳。In one of the embodiments, the behavior record generation module is further configured to obtain the initiation timestamp of the second webpage resource request corresponding to the second URL; add the behavior record corresponding to the second URL The origination timestamp of the second webpage resource request.

在其中一个实施例中,所述数据同步模块还用于获取所述目标应用程序当前展示的第一目标网页所对应的目标URL;将所述目标URL发送至所述浏览器,所述浏览器用于展示与所述目标URL对应的第二目标网页。In one embodiment, the data synchronization module is further configured to acquire the target URL corresponding to the first target webpage currently displayed by the target application; send the target URL to the browser, and the browser uses the for displaying the second target webpage corresponding to the target URL.

在其中一个实施例中,所述行为记录生成模块还用于获取与所述在所述目标应用程序中发起的第二网页资源请求对应的搜索关键字;获取与所述在所述目标应用程序中发起的第二网页资源请求对应的网页缩略图;在所述行为记录中加入所述搜索关键字和/或所述网页缩略图。In one of the embodiments, the behavior record generation module is further configured to obtain a search keyword corresponding to the second webpage resource request initiated in the target application; The webpage thumbnail corresponding to the second webpage resource request initiated in ; add the search keyword and/or the webpage thumbnail into the behavior record.

在其中一个实施例中,所述装置还包括白名单判断模块,用于判断所述目标应用程序是否属于所述预设的可跳转应用程序的白名单,在所述目标应用程序属于所述预设的可跳转应用程序的白名单时,调用所述界面跳转模块。In one embodiment, the apparatus further includes a whitelist judgment module, configured to judge whether the target application belongs to the preset whitelist of jumpable applications, and when the target application belongs to the When there is a preset whitelist of jumpable applications, the interface jumping module is called.

采用了上述浏览器跳转至应用程序的数据同步方法和装置之后,在用户在浏览器中进行网页浏览时,解析所访问的网页的地址信息,若该地址信息与终端中安装的应用程序是匹配的,则跳转至对应的应用程序中继续网页的浏览;并且,在应用程序中继续挖网页浏览的过程中,记录在该应用程序中进行网页浏览所产生的访问记录,并定时或实时的将记录的访问记录发送给浏览器,以便浏览器上的访问数据与应用程序上的访问数据是同步的,并在上报访问记录时一并将在应用程序中的访问记录上报。也就是说,虽然在浏览器中访问网页的过程中跳转至应用程序中进行网页浏览,但是因为统计服务器在统计用户的访问记录时,也统计了用户在应用程序上的访问记录,并没有因为跳转至应用服务器而导致无法统计完整的访问记录,即统计服务器统计的是用户完整的访问记录,提高了用户访问记录统计的准确性。After adopting the above-mentioned data synchronization method and device for jumping from a browser to an application program, when the user browses the web page in the browser, the address information of the visited web page is parsed. If the address information is the same as the application program installed in the terminal If there is a match, jump to the corresponding application program to continue browsing the web page; and, in the process of continuing to dig web page browsing in the application program, record the access records generated by the web page browsing in the application program, and record them regularly or in real time. Send the recorded access records to the browser, so that the access data on the browser is synchronized with the access data on the application, and the access records in the application will be reported when the access records are reported. That is to say, although the browser jumps to the application to browse the webpage during the process of accessing the webpage, because the statistics server also counts the user's access record on the application when it counts the user's access record, there is no Because of jumping to the application server, the complete access record cannot be counted, that is, the statistics server collects the user's complete access record, which improves the accuracy of the user access record statistics.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.

其中:in:

图1为一个实施例中一种浏览器跳转至应用程序的数据同步方法的流程示意图;1 is a schematic flowchart of a data synchronization method for a browser to jump to an application in one embodiment;

图2为一个实施例中一种浏览器跳转至应用程序的数据同步装置的结构示意图;2 is a schematic structural diagram of a data synchronization device for a browser to jump to an application in one embodiment;

图3为一个实施例中运行前述浏览器跳转至应用程序的数据同步方法的计算机设备的结构示意图。FIG. 3 is a schematic structural diagram of a computer device for executing the foregoing method for synchronizing data from a browser to an application program according to an embodiment.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

在本实施例中,提出了一种浏览器跳转至应用程序的数据同步方法,该方法的实现可依赖于计算机程序,该计算机程序可运行于基于冯诺依曼体系的计算机系统之上,该计算机程序可以是终端上的应用程序的启动管理的应用程序或浏览器与其他应用的关联启动的管理应用程序。该计算机系统可以是运行上述计算机程序的例如智能手机、平板电脑、个人电脑等服务器或终端。In this embodiment, a method for synchronizing data from a browser to an application program is proposed. The implementation of the method can depend on a computer program, and the computer program can run on a computer system based on the von Neumann system. The computer program may be an application program that manages the startup of an application program on the terminal or a management application program that is started in association with the browser and other applications. The computer system may be a server or terminal such as a smart phone, a tablet computer, a personal computer, etc. running the above-mentioned computer program.

具体的,如图1所示,上述浏览器跳转至应用程序的数据同步方法包括如下步骤:Specifically, as shown in FIG. 1 , the above-mentioned data synchronization method for the browser to jump to the application program includes the following steps:

步骤S102:检测在浏览器中发起的第一网页资源请求,在检测到所述第一网页资源请求时,获取所述第一网页资源请求对应的第一URL。Step S102: Detect a first webpage resource request initiated in the browser, and when the first webpage resource request is detected, obtain a first URL corresponding to the first webpage resource request.

在进行网页访问的过程中,用户在地址栏中输入将要访问的网页地址,或者点击网站上包含的其他网站的网页地址,浏览器根据用户的操作以及对应的网页地址生成相应的HTTP请求,并发送给Web服务器,也就是说,用户在浏览器中发起第一网页资源请求,并且,该请求对应上述网页地址。。In the process of accessing a web page, the user enters the address of the web page to be accessed in the address bar, or clicks the web page address of another website contained in the website, and the browser generates a corresponding HTTP request according to the user's operation and the corresponding web page address, and Sent to the web server, that is, the user initiates a first web page resource request in the browser, and the request corresponds to the above web page address. .

可以在浏览器中预先定义脚本语言,例如JavaScript等,检测网页资源请求的操作,例如超链接控件的点击事件、按钮控件的点击事件,从而获取网页资源请求对应的URL,即网络地址。A scripting language, such as JavaScript, can be pre-defined in the browser to detect the operation of the webpage resource request, such as the click event of the hyperlink control and the click event of the button control, so as to obtain the URL corresponding to the webpage resource request, that is, the network address.

需要说明的是,在本实施例中,在检测到用户在浏览器中发起第一网络资源请求时,获取与该请求对应的网络地址,即获取与该请求对应的URL(Uniform ResourceLocator)。It should be noted that, in this embodiment, when it is detected that the user initiates the first network resource request in the browser, the network address corresponding to the request is obtained, that is, the URL (Uniform ResourceLocator) corresponding to the request is obtained.

步骤S104:读取本地应用程序列表,在所述本地应用程序列表中查找与所述第一URL对应的应用程序作为目标应用程序,若查找到,则执行步骤S1060:跳转至所述目标应用程序中与所述第一URL对应的应用界面;若未查找到,则执行步骤S1062:在所述浏览器中展示与第一URL对应的页面。Step S104: Read the list of local applications, find the application corresponding to the first URL in the local application list as the target application, and if found, execute Step S1060: jump to the target application The application interface corresponding to the first URL in the program; if not found, perform step S1062: display the page corresponding to the first URL in the browser.

在进行网站访问时,浏览器从所获取的URL中提取关键字,并通过关键字与本地安装的应用程序信息进行比对,查找是否有与该网址信息对应的应用程序。例如,在终端访问淘宝网时,获取其网页地址为“https://www.taobao.com/”,终端提取出其中的关键字为“taobao”,终端在本地的应用程序列表中查询到注册信息包含有关键字“taobao”的应用程序,即判定网址信息与本地应用程序相对应,并将该本地应用程序标识为目标应用程序,该目标应用程序即为跳转的应用程序。When accessing a website, the browser extracts keywords from the obtained URL, and compares the keywords with the locally installed application information to find out whether there is an application corresponding to the URL information. For example, when the terminal accesses Taobao.com, it obtains its web page address as "https://www.taobao.com/", the keyword extracted by the terminal is "taobao", and the terminal finds the registration in the local application list The information contains the application program of the keyword "taobao", that is, it is determined that the website information corresponds to the local application program, and the local application program is identified as the target application program, and the target application program is the jumping application program.

在本实施例中,若目标应用程序存在的情况下,为了保证用户在浏览页面时的良好的适用体验,跳转至目标应用程序中继续进行浏览和操作。具体的,浏览器在查找到本地应用程序列表中存在与网页地址相对应的应用程序时,即向应用程序管理软件发送指令来跳转至对应的应用程序;该指令的发送可以通过内置在浏览器中的应用程序管理的插件直接向应用程序管理软件发送指令。在另一个实施例中,也可以通过浏览器向终端控制中心发送指令,再由终端控制中心向应用程序管理软件发送指令,从而实现从浏览器向应用程序的跳转。In this embodiment, if the target application program exists, in order to ensure the user's good applicable experience when browsing the page, jump to the target application program to continue browsing and operating. Specifically, when the browser finds that there is an application program corresponding to the webpage address in the local application program list, it sends an instruction to the application program management software to jump to the corresponding application program; the instruction can be sent through the built-in browser The application management plug-in in the server sends instructions directly to the application management software. In another embodiment, the browser can also send an instruction to the terminal control center, and then the terminal control center sends an instruction to the application management software, so as to realize the jump from the browser to the application.

需要说明的是,在由浏览器跳转至目标应用程序时,还将上述检测到的在浏览器中发起的第一网页资源请求以及相应的第一URL也一并发送给目标应用程序,目标应用程序在启动之后,根据第一网页资源请求以及相应的第一URL展示与第一URL对应的应用界面,从而实现在浏览器中发起网页资源请求而在目标应用程序中展示用户发起的网页资源请求对应的界面。It should be noted that when the browser jumps to the target application, the detected first webpage resource request initiated in the browser and the corresponding first URL are also sent to the target application. After the application is started, the application interface corresponding to the first URL is displayed according to the first webpage resource request and the corresponding first URL, so that the webpage resource request is initiated in the browser and the webpage resource initiated by the user is displayed in the target application. Request the corresponding interface.

可选的,在一个实施例中,并不是所有的在浏览器中的操作均跳转至对应的应用程序进行操作,例如,用户可以设置在需要跳转的应用为A应用时,不进行跳转,或者,还可以设置在需要跳转的应用为B应用时,进行跳转。进一步的,还可以设置可跳转应用的白名单以及不可跳转应用的黑名单。Optionally, in an embodiment, not all operations in the browser are jumped to the corresponding application for operation. For example, the user can set that when the application to be jumped is the A application, the jump is not performed. Jump, or you can also set to jump when the application to be jumped is the B application. Further, it is also possible to set a whitelist of jumpable applications and a blacklist of non-jumpable applications.

具体的,在一个实施例中,上述跳转至所述目标应用程序中与所述第一URL对应的应用界面之前还包括:判断所述目标应用程序是否属于所述预设的可跳转应用程序的白名单,若是,则执行所述跳转至所述目标应用程序中与所述第一URL对应的应用界面。Specifically, in one embodiment, before jumping to the application interface corresponding to the first URL in the target application, the step further includes: judging whether the target application belongs to the preset jumpable application The whitelist of the program, if yes, execute the jump to the application interface corresponding to the first URL in the target application program.

也就是说,在浏览器或者终端中预设有可跳转应用程序白名单,即在检测到终端中的本地应用程序列表中包含的应用程序存在于该白名单中时,终端的应用程序管理软件允许该应用程序的启动。例如,在浏览器中设置的应用程序白名单中包含支付宝软件,当用户在访问网站时,所访问的网页链接中包含“alipay”关键字,浏览器检测其对应的应用程序为支付宝软件,并在终端的本地应用程序列表中查找到存在支付宝软件,并且,该支付宝软件属于上述可跳转应用的白名单上,则执行相应的跳转操作。That is to say, a whitelist of jumpable applications is preset in the browser or terminal, that is, when it is detected that the applications included in the local application list in the terminal exist in the whitelist, the application management of the terminal The software allows the application to be launched. For example, Alipay software is included in the application whitelist set in the browser. When a user visits a website, the web page link they visit contains the keyword "alipay", the browser detects that the corresponding application is Alipay software, and If it is found that Alipay software exists in the local application program list of the terminal, and the Alipay software belongs to the white list of the above-mentioned applications that can be jumped, a corresponding jump operation is performed.

再例如,在浏览器中还设置有不可跳转应用的黑名单,在需要跳转的目标应用程序属于该黑名单时,无论在终端上是否已经安装有该应用程序,均不进行跳转操作。For another example, a blacklist of non-jumpable applications is also set in the browser. When the target application that needs to be redirected belongs to the blacklist, the redirection operation will not be performed regardless of whether the application is already installed on the terminal. .

步骤S108:获取在所述目标应用程序中发起的第二网页资源请求对应的第二URL,根据所述第二URL生成行为记录。Step S108: Acquire a second URL corresponding to the second webpage resource request initiated in the target application, and generate a behavior record according to the second URL.

步骤S110:根据预设的同步周期将所述行为记录发送至所述浏览器中进行存储,所述浏览器用于将所述存储的行为记录上报至服务器。Step S110: Send the behavior record to the browser for storage according to a preset synchronization period, and the browser is configured to report the stored behavior record to the server.

在跳转至目标应用程序之后,在目标应用程序中开启一个进程用来记录用户在目标应用程序中进行数据浏览的过程中产生的历史数据。例如,用户在目标应用程序中通过搜索操作、链接点击操作等操作产生的网页数据浏览的历史数据。具体的,上述进程在用户进行网页数据浏览的过程中,获取在目标应用程序中发起的所有的网页资源请求对应的网页地址(或URL),并根据获取到的所有的URL生成行为记录。该行为记录中包括了用户在使用目标应用数据浏览数据的过程中的所有的访问记录。After jumping to the target application, a process is started in the target application to record historical data generated during the user's data browsing in the target application. For example, the user browses historical data of web page data generated by operations such as search operations, link click operations, etc. in the target application program. Specifically, the above process acquires the webpage addresses (or URLs) corresponding to all webpage resource requests initiated in the target application program during the user's browsing of webpage data, and generates behavior records according to all the obtained URLs. The behavior record includes all the access records of the user in the process of using the target application data to browse the data.

为了使得在浏览器中包含有用户的所有的访问记录,并且在上报给web服务器的访问记录时用户的完整的访问记录,因此,在用户在目标应用程序中完成数据的访问之后,将用户在目标应用程序中的访问记录发送给浏览器,以便浏览器获取完成的访问记录。In order to include all the access records of the user in the browser, and the complete access records of the user when the access records are reported to the web server, after the user completes the data access in the target application, the user is placed in the The access record in the target application is sent to the browser so that the browser can obtain the completed access record.

需要说明的是,在本实施例中,目标应用程序将访问记录发送给浏览器的时间可以是实时的,也就是说,一般上述进程检测到目标应用程序中的访问请求,则更新访问记录,并将更新后的访问记录发送给浏览器,以便浏览器获取实时的访问数据,即实现浏览器与目标应用程序之间的实时的数据同步。It should be noted that, in this embodiment, the time when the target application program sends the access record to the browser may be real-time, that is, generally, the above process detects the access request in the target application program, and then updates the access record, The updated access record is sent to the browser, so that the browser can obtain real-time access data, that is, real-time data synchronization between the browser and the target application is realized.

进一步的,在另一个实施例中,还可以设定一个同步周期,也就是说,目标应用程序按照上述同步周期定时的将访问记录发送给浏览器,减少了在数据同步的过程中同步的次数,以及对终端资源的占用。Further, in another embodiment, a synchronization period can also be set, that is, the target application regularly sends the access record to the browser according to the above synchronization period, which reduces the number of synchronizations in the process of data synchronization. , and the occupation of terminal resources.

也就是说,在浏览器中不仅包括了用户在浏览器中相应的行为记录或访问记录,还包括了用户在目标应用程序中进行数据访问的行为记录或访问记录。从而使得浏览器在将行为记录或访问记录上报给web服务器时,上报的数据覆盖了用户完整的访问记录,提高了上报数据的完整性。That is to say, the browser includes not only the user's corresponding behavior records or access records in the browser, but also the user's behavior records or access records of data access in the target application. Therefore, when the browser reports the behavior record or the access record to the web server, the reported data covers the user's complete access record, which improves the integrity of the reported data.

需要说明的是,在本实施例中,浏览器上报的行为记录为目标应用程序发送至浏览器的行为记录,还可以包括了浏览器根据在浏览器上进行的数据浏览的记录生成的行为记录。It should be noted that, in this embodiment, the behavior record reported by the browser is the behavior record sent by the target application to the browser, and may also include the behavior record generated by the browser according to the data browsing record on the browser. .

可选的,在用户结束浏览之后,浏览器将用户的访问记录存储到浏览器缓存中。浏览器缓存,通常称为Cookie,有时也用其复数形式Cookies,指某些网站为了辨别用户身份、进行session跟踪而储存在用户本地终端上的数据(通常经过加密)。Cookie是由服务器端生成,发送给User-Agent(一般是浏览器),浏览器会将Cookie的键key/值value保存到某个目录下的文本文件内,下次请求同一网站时就发送该Cookie给服务器(前提是浏览器设置为启用Cookie)。Cookie名称和值可以由服务器端开发自己定义,对于JSP而言也可以直接写入jsessionid,这样服务器可以知道该用户是否是合法用户以及是否需要重新登录等,服务器可以设置或读取Cookies中包含信息,借此维护用户跟服务器会话中的状态。在用户在目标应用程序中进行数据访问之后,将相应的行为记录也一并存储在浏览器的Cookie中。Optionally, after the user finishes browsing, the browser stores the user's access record in the browser cache. Browser cache, commonly referred to as Cookie, and sometimes in its plural form Cookies, refers to the data (usually encrypted) stored on the user's local terminal by some websites in order to identify the user's identity and perform session tracking. The cookie is generated by the server and sent to the User-Agent (usually the browser). The browser will save the key/value of the cookie to a text file in a certain directory, and will send it the next time the same website is requested. Cookies are given to the server (provided that the browser is set to enable cookies). The cookie name and value can be defined by the server-side development. For JSP, it can also be directly written to jsessionid, so that the server can know whether the user is a legitimate user and whether it needs to log in again. The server can set or read the information contained in cookies. , which maintains state in the user's session with the server. After the user accesses data in the target application, the corresponding behavior record is also stored in the browser's cookie.

需要说明的是,在本实施例中,在生成行为记录的同时,不仅将网页地址或URL包含在该行为记录中,还在行为记录中存储有与每一项行为记录对应的时间戳,用来区分网页浏览的先后顺序。It should be noted that, in this embodiment, when the behavior record is generated, not only the web page address or URL is included in the behavior record, but also a timestamp corresponding to each behavior record is stored in the behavior record, and a timestamp corresponding to each behavior record is stored in the behavior record. to distinguish the order of web browsing.

具体的,所述获取在所述目标应用程序中发起的第二网页资源请求对应的第二URL还包括:获取与所述第二URL对应的第二网页资源请求的发起时间戳;所述根据所述第二URL生成行为记录还包括:在所述行为记录中加入与所述第二URL对应的第二网页资源请求的发起时间戳。Specifically, the obtaining the second URL corresponding to the second webpage resource request initiated in the target application further includes: obtaining an initiation timestamp of the second webpage resource request corresponding to the second URL; The second URL generating the behavior record further includes: adding an initiation timestamp of the second webpage resource request corresponding to the second URL in the behavior record.

进一步的,在行为记录中还可以包括有用户在进行网页搜索时输入的搜索关键字等搜索记录,该搜索记录可以用来确定用户的偏好信息;并且,在行为记录中还可以包括有用户在浏览网页时产生的网页缩略图等相关数据。Further, the behavior records may also include search records such as search keywords entered by the user when conducting web page searches, and the search records may be used to determine the user's preference information; Related data such as web page thumbnails generated when browsing web pages.

具体的,上述根据所述第二URL生成行为记录之前还包括:获取与所述在所述目标应用程序中发起的第二网页资源请求对应的搜索关键字;获取与所述在所述目标应用程序中发起的第二网页资源请求对应的网页缩略图;所述根据所述第二URL生成行为记录还包括:在所述行为记录中加入所述搜索关键字和/或所述网页缩略图。Specifically, before generating the behavior record according to the second URL, the method further includes: obtaining a search keyword corresponding to the second webpage resource request initiated in the target application; obtaining a search keyword corresponding to the second webpage resource request initiated in the target application; The second webpage resource initiated in the program requests a corresponding webpage thumbnail; the generating a behavior record according to the second URL further includes: adding the search keyword and/or the webpage thumbnail into the behavior record.

也就是说,在用户通过目标应用程序访问网络时,不仅仅获取用户访问的网页所对应的网页地址或对应的URL,还需要获取用户在网页的浏览的过程中搜索网页所产生的搜索官建立等搜索历史,并且将上述搜索历史添加到行为记录中,以便web服务器再统计用户的偏好信息时根据搜索历史来确定用户的偏好信息。That is to say, when the user accesses the network through the target application, not only the web page address or the corresponding URL corresponding to the web page accessed by the user is obtained, but also the search officer establishment generated by the user searching the web page during the web page browsing process. Wait for the search history, and add the above search history to the behavior record, so that the web server can determine the user's preference information according to the search history when the web server counts the user's preference information.

需要说明的是,在本实施例中,目标应用程序同步到浏览器的不仅仅是访问记录,还可以将目标应用程序展示的页面也一并随着访问记录的同步同步到浏览器中。It should be noted that, in this embodiment, not only the access record is synchronized by the target application to the browser, but the pages displayed by the target application may also be synchronized to the browser along with the synchronization of the access record.

具体的,所述根据预设的同步周期将所述行为记录发送至所述浏览器中进行存储之前还包括:获取所述目标应用程序当前展示的第一目标网页所对应的目标URL;将所述目标URL发送至所述浏览器,所述浏览器用于展示与所述目标URL对应的第二目标网页。Specifically, before sending the behavior record to the browser for storage according to a preset synchronization period, the method further includes: acquiring the target URL corresponding to the first target webpage currently displayed by the target application; The target URL is sent to the browser, and the browser is configured to display the second target web page corresponding to the target URL.

具体实施中,在目标应用程序将行为记录发送给浏览器的同时,还将当前在目标应用程序的展示页面上展示的网页对应的URL也一并发送给浏览器,浏览器在接收到该URL之后,加载该URL对应的网页,并在浏览器对应的展示页面上展示与该URL对应的网页。In the specific implementation, when the target application sends the behavior record to the browser, the URL corresponding to the webpage currently displayed on the display page of the target application is also sent to the browser, and the browser receives the URL After that, the webpage corresponding to the URL is loaded, and the webpage corresponding to the URL is displayed on the display page corresponding to the browser.

在另一个实施例中,上述网页的同步还可以是目标应用程序获取当前在展示页面上展示的目标网页对应的脚本文件,然后将该脚本文本一并发送给浏览器,浏览器在接收到脚本文件之后,通过加载脚本文件来展示目标网页。In another embodiment, the synchronization of the above webpage may also be that the target application obtains the script file corresponding to the target webpage currently displayed on the display page, and then sends the script text to the browser together, and the browser receives the script After the file, the landing page is displayed by loading the script file.

此外,在一个实施例中,如图2所示,还提出了一种浏览器跳转至应用程序的数据同步装置,包括网络资源请求检测模块102、目标应用程序确定模块104、界面跳转模块106、行为记录生成模块108以及数据同步模块110,其中:In addition, in one embodiment, as shown in FIG. 2 , a data synchronization device for jumping from a browser to an application program is also proposed, including a network resource request detection module 102 , a target application program determination module 104 , and an interface jump module 106. The behavior record generation module 108 and the data synchronization module 110, wherein:

网络资源请求检测模块102,用于检测在浏览器中发起的第一网页资源请求,在检测到所述第一网页资源请求时,获取所述第一网页资源请求对应的第一URL;The network resource request detection module 102 is configured to detect the first webpage resource request initiated in the browser, and when the first webpage resource request is detected, obtain the first URL corresponding to the first webpage resource request;

目标应用程序确定模块104,用于读取本地应用程序列表,在所述本地应用程序列表中查找与所述第一URL对应的应用程序作为目标应用程序;A target application program determination module 104, configured to read a local application program list, and find an application program corresponding to the first URL in the local application program list as a target application program;

界面跳转模块106,用于跳转至所述目标应用程序中与所述第一URL对应的应用界面;The interface jumping module 106 is used for jumping to the application interface corresponding to the first URL in the target application program;

行为记录生成模块108,用于获取在所述目标应用程序中发起的第二网页资源请求对应的第二URL,根据所述第二URL生成行为记录;A behavior record generating module 108, configured to obtain a second URL corresponding to the second webpage resource request initiated in the target application, and generate a behavior record according to the second URL;

数据同步模块110,用于根据预设的同步周期将所述行为记录发送至所述浏览器中进行存储,所述浏览器用于将所述存储的行为记录上报至服务器。The data synchronization module 110 is configured to send the behavior record to the browser for storage according to a preset synchronization period, and the browser is configured to report the stored behavior record to the server.

可选的,在一个实施例中,行为记录生成模块108还用于获取与所述第二URL对应的第二网页资源请求的发起时间戳;在所述行为记录中加入与所述第二URL对应的第二网页资源请求的发起时间戳。Optionally, in one embodiment, the behavior record generating module 108 is further configured to obtain the initiation timestamp of the second webpage resource request corresponding to the second URL; The corresponding initiation timestamp of the second webpage resource request.

可选的,在一个实施例中,数据同步模块110还用于获取所述目标应用程序当前展示的第一目标网页所对应的目标URL;将所述目标URL发送至所述浏览器,所述浏览器用于展示与所述目标URL对应的第二目标网页。Optionally, in one embodiment, the data synchronization module 110 is further configured to obtain the target URL corresponding to the first target webpage currently displayed by the target application; send the target URL to the browser, and the The browser is used to display the second target webpage corresponding to the target URL.

可选的,在一个实施例中,行为记录生成模块108还用于获取与所述在所述目标应用程序中发起的第二网页资源请求对应的搜索关键字;获取与所述在所述目标应用程序中发起的第二网页资源请求对应的网页缩略图;在所述行为记录中加入所述搜索关键字和/或所述网页缩略图。Optionally, in one embodiment, the behavior record generating module 108 is further configured to obtain a search keyword corresponding to the second webpage resource request initiated in the target application; The second webpage resource request initiated in the application program corresponds to the webpage thumbnail image; the search keyword and/or the webpage thumbnail image are added to the behavior record.

可选的,在一个实施例中,如图2所示,上述装置还包括白名单判断模块112,用于判断所述目标应用程序是否属于所述预设的可跳转应用程序的白名单,在所述目标应用程序属于所述预设的可跳转应用程序的白名单时,调用所述界面跳转模块106。Optionally, in an embodiment, as shown in FIG. 2 , the above-mentioned device further includes a whitelist judgment module 112, which is used to judge whether the target application belongs to the preset whitelist of jumpable applications, When the target application belongs to the preset whitelist of jumpable applications, the interface jumping module 106 is called.

采用了上述浏览器跳转至应用程序的数据同步方法和装置之后,在用户在浏览器中进行网页浏览时,解析所访问的网页的地址信息,若该地址信息与终端中安装的应用程序是匹配的,则跳转至对应的应用程序中继续网页的浏览;并且,在应用程序中继续挖网页浏览的过程中,记录在该应用程序中进行网页浏览所产生的访问记录,并定时或实时的将记录的访问记录发送给浏览器,以便浏览器上的访问数据与应用程序上的访问数据是同步的,并在上报访问记录时一并将在应用程序中的访问记录上报。也就是说,虽然在浏览器中访问网页的过程中跳转至应用程序中进行网页浏览,但是因为统计服务器在统计用户的访问记录时,也统计了用户在应用程序上的访问记录,并没有因为跳转至应用服务器而导致无法统计完整的访问记录,即统计服务器统计的是用户完整的访问记录,提高了用户访问记录统计的准确性。After adopting the above-mentioned data synchronization method and device for jumping from a browser to an application program, when the user browses the web page in the browser, the address information of the visited web page is parsed. If the address information is the same as the application program installed in the terminal If there is a match, jump to the corresponding application program to continue browsing the web page; and, in the process of continuing to dig web page browsing in the application program, record the access records generated by the web page browsing in the application program, and record them regularly or in real time. Send the recorded access records to the browser, so that the access data on the browser is synchronized with the access data on the application, and the access records in the application will be reported when the access records are reported. That is to say, although the browser jumps to the application to browse the webpage during the process of accessing the webpage, because the statistics server also counts the user's access record on the application when it counts the user's access record, there is no Because of jumping to the application server, the complete access record cannot be counted, that is, the statistics server collects the user's complete access record, which improves the accuracy of the user access record statistics.

在一个实施例中,如图3所示,图3展示了一种运行上述浏览器跳转至应用程序的数据同步方法的基于冯诺依曼体系的计算机系统的终端。该计算机系统可以是智能手机、平板电脑、掌上电脑、笔记本电脑或个人电脑等终端设备。具体的,可包括通过系统总线连接的外部输入接口1001、处理器1002、存储器1003和输出接口1004。其中,外部输入接口1001可选的可至少包括网络接口10012。存储器1003可包括外存储器10032(例如硬盘、光盘或软盘等)和内存储器10034。输出接口1004可至少包括显示屏10042等设备。In one embodiment, as shown in FIG. 3 , FIG. 3 shows a terminal of a computer system based on the von Neumann architecture that runs the above-mentioned method for synchronizing data from a browser to an application program. The computer system may be a terminal device such as a smart phone, a tablet computer, a palmtop computer, a notebook computer or a personal computer. Specifically, it may include an external input interface 1001, a processor 1002, a memory 1003, and an output interface 1004 connected through a system bus. The external input interface 1001 may optionally include at least a network interface 10012 . The memory 1003 may include an external memory 10032 (eg, a hard disk, an optical disk, or a floppy disk, etc.) and an internal memory 10034 . The output interface 1004 may at least include a display screen 10042 and other devices.

在本实施例中,本方法的运行基于计算机程序,该计算机程序的程序文件存储于前述基于冯诺依曼体系的计算机系统的外存储器10032中,在运行时被加载到内存储器10034中,然后被编译为机器码之后传递至处理器1002中执行,从而使得基于冯诺依曼体系的计算机系统中形成逻辑上的网络资源请求检测模块102、目标应用程序确定模块104、界面跳转模块106、行为记录生成模块108、数据同步模块110以及白名单判断模块112。且在上述浏览器跳转至应用程序的数据同步方法执行过程中,输入的参数均通过外部输入接口1001接收,并传递至存储器1003中缓存,然后输入到处理器1002中进行处理,处理的结果数据或缓存于存储器1003中进行后续地处理,或被传递至输出接口1004进行输出。In this embodiment, the operation of this method is based on a computer program, and the program file of the computer program is stored in the external memory 10032 of the aforementioned computer system based on the von Neumann system, loaded into the internal memory 10034 during operation, and then After being compiled into machine code, it is transmitted to the processor 1002 for execution, so that a logical network resource request detection module 102, a target application program determination module 104, an interface jump module 106, The behavior record generation module 108 , the data synchronization module 110 and the whitelist judgment module 112 . And in the execution process of the data synchronization method in which the browser jumps to the application program, the input parameters are all received through the external input interface 1001, and passed to the cache in the memory 1003, and then input into the processor 1002 for processing, and the result of the processing is The data is either buffered in the memory 1003 for subsequent processing, or transmitted to the output interface 1004 for output.

具体的,在一个实施例中,上述处理器1002用于检测在浏览器中发起的第一网页资源请求,在检测到所述第一网页资源请求时,获取所述第一网页资源请求对应的第一URL;读取本地应用程序列表,在所述本地应用程序列表中查找与所述第一URL对应的应用程序作为目标应用程序;若查找到,则跳转至所述目标应用程序中与所述第一URL对应的应用界面;获取在所述目标应用程序中发起的第二网页资源请求对应的第二URL,根据所述第二URL生成行为记录;根据预设的同步周期将所述行为记录发送至所述浏览器中进行存储,所述浏览器用于将所述存储的行为记录上报至服务器。Specifically, in one embodiment, the above-mentioned processor 1002 is configured to detect a first web page resource request initiated in a browser, and when detecting the first web page resource request, obtain the corresponding request for the first web page resource The first URL; read the list of local application programs, find the application program corresponding to the first URL in the local application program list as the target application program; if found, jump to the target application program with The application interface corresponding to the first URL; obtain the second URL corresponding to the second webpage resource request initiated in the target application, and generate a behavior record according to the second URL; The behavior record is sent to the browser for storage, and the browser is configured to report the stored behavior record to the server.

在可选的实施例中,处理器1002还用于获取与所述第二URL对应的第二网页资源请求的发起时间戳;在所述行为记录中加入与所述第二URL对应的第二网页资源请求的发起时间戳。In an optional embodiment, the processor 1002 is further configured to obtain an initiation timestamp of the second webpage resource request corresponding to the second URL; add a second URL corresponding to the second URL in the behavior record The origination timestamp of the web resource request.

在可选的实施例中,处理器1002根据预设的同步周期将所述行为记录发送至所述浏览器中进行存储之前,处理器1002还用于获取所述目标应用程序当前展示的第一目标网页所对应的目标URL;将所述目标URL发送至所述浏览器,所述浏览器用于展示与所述目标URL对应的第二目标网页。In an optional embodiment, before the processor 1002 sends the behavior record to the browser for storage according to a preset synchronization period, the processor 1002 is further configured to acquire the first current display of the target application. The target URL corresponding to the target web page; sending the target URL to the browser, where the browser is configured to display the second target web page corresponding to the target URL.

在可选的实施例中,处理器1002根据所述第二URL生成行为记录之前,处理器1002还用于获取与所述在所述目标应用程序中发起的第二网页资源请求对应的搜索关键字;获取与所述在所述目标应用程序中发起的第二网页资源请求对应的网页缩略图;进一步的,处理器1002还用于在所述行为记录中加入所述搜索关键字和/或所述网页缩略图。In an optional embodiment, before the processor 1002 generates the behavior record according to the second URL, the processor 1002 is further configured to acquire a search key corresponding to the second webpage resource request initiated in the target application program obtain the webpage thumbnail image corresponding to the second webpage resource request initiated in the target application; further, the processor 1002 is further configured to add the search keyword and/or the search keyword into the behavior record Thumbnails of the web pages.

在可选的实施例中,处理器1002跳转至所述目标应用程序中与所述第一URL对应的应用界面之前,处理器还用于判断所述目标应用程序是否属于所述预设的可跳转应用程序的白名单,在属于预设的可跳转应用程序的白名单时,处理器1002跳转至所述目标应用程序中与所述第一URL对应的应用界面,且输出接口1004用于展示跳转后的目标应用程序中与所述第一URL对应的应用界面。In an optional embodiment, before the processor 1002 jumps to the application interface corresponding to the first URL in the target application, the processor is further configured to determine whether the target application belongs to the preset The whitelist of jumpable applications, when belonging to the preset whitelist of jumpable applications, the processor 1002 jumps to the application interface corresponding to the first URL in the target application, and outputs the interface 1004 is used to display the application interface corresponding to the first URL in the jumped target application.

以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above disclosures are only preferred embodiments of the present invention, and of course, the scope of the rights of the present invention cannot be limited by this. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.

Claims (11)

1. the method for data synchronization that a kind of browser jumps to application program characterized by comprising
The the first web page resources request initiated in a browser is detected to obtain when detecting first web page resources request First web page resources request corresponding first URL;
Local application list is read, application corresponding with the first URL is searched in the local application list Program is as destination application;
If finding, application interface corresponding with the first URL in the destination application is jumped to;
It obtains the second web page resources initiated in the destination application and requests corresponding 2nd URL, according to described second URL generates behavior record;
The behavior record is sent in the browser according to preset synchronizing cycle and is stored, the browser is used for The behavior record of the storage is reported into server;Wherein, it is described by the behavior record be sent in the browser into Row storage includes: that after carrying out data access in destination application in user, corresponding behavior record is also stored together In the Cookie of browser;
By the page of destination application current presentation together being synchronized in browser with access record, so that described clear Device of looking at shows the identical page.
2. the method for data synchronization that browser according to claim 1 jumps to application program, which is characterized in that described to obtain The second web page resources initiated in the destination application are taken to request corresponding 2nd URL further include:
Obtain the initiation timestamp of the second web page resources request corresponding with the 2nd URL;
It is described that behavior record is generated according to the 2nd URL further include:
The initiation timestamp of the second web page resources request corresponding with the 2nd URL is added in the behavior record.
3. the method for data synchronization that browser according to claim 2 jumps to application program, which is characterized in that described to incite somebody to action The page of destination application current presentation is together as what access recorded being synchronized in browser, so that the browser exhibition Show that the identical page includes:
Obtain target URL corresponding to the first object webpage of the destination application current presentation;
The target URL is sent to the browser, the browser is for showing the second mesh corresponding with the target URL Mark webpage.
4. the method for data synchronization that browser according to claim 1 jumps to application program, which is characterized in that described Before the 2nd URL generation behavior record further include:
Obtain search key corresponding with the second web page resources request initiated in the destination application;
Obtain webpage thumbnail corresponding with the second web page resources request initiated in the destination application;
It is described that behavior record is generated according to the 2nd URL further include:
Described search keyword and/or the webpage thumbnail are added in the behavior record.
5. the method for data synchronization that browser according to claim 1 jumps to application program, which is characterized in that the jump It goes in the destination application before application interface corresponding with the first URL further include:
Judge whether the destination application belongs to the preset white list for jumping application program, if so, executing It is described to jump to application interface corresponding with the first URL in the destination application.
6. the data synchronization unit that a kind of browser jumps to application program characterized by comprising
Network resource request detection module, for detecting the first web page resources initiated in a browser request, detecting When stating the request of the first web page resources, obtains first web page resources and request corresponding first URL;
Destination application determining module is looked into the local application list for reading local application list Look for application program corresponding with the first URL as destination application;
Interface jump module, for jumping to application interface corresponding with the first URL in the destination application;
Behavior record generation module, it is corresponding for obtaining the second web page resources initiated in destination application request 2nd URL generates behavior record according to the 2nd URL;
Data simultaneous module is deposited for the behavior record to be sent in the browser according to preset synchronizing cycle Storage, the browser are used to the behavior record of the storage reporting to server;Wherein, data simultaneous module is in user in mesh It marks after carrying out data access in application program, corresponding behavior record is also stored in together in the Cookie of browser;Institute Data simultaneous module is stated to be also used to the page of destination application current presentation being synchronized to browsing with access record together In device, so that the identical page of the browser-presented.
7. the data synchronization unit that browser according to claim 6 jumps to application program, which is characterized in that the row It is also used to obtain the initiation timestamp of the second web page resources request corresponding with the 2nd URL for record generation module;Institute State the initiation timestamp that the second web page resources request corresponding with the 2nd URL is added in behavior record.
8. the data synchronization unit that browser according to claim 7 jumps to application program, which is characterized in that the number According to synchronization module also particularly useful for target corresponding to the first object webpage for obtaining the destination application current presentation URL;The target URL is sent to the browser, the browser is for showing the second mesh corresponding with the target URL Mark webpage.
9. the data synchronization unit that browser according to claim 6 jumps to application program, which is characterized in that the row It is also used to obtain for record generation module corresponding with the second web page resources request initiated in the destination application Search key;Obtain webpage contracting corresponding with the second web page resources request initiated in the destination application Sketch map;Described search keyword and/or the webpage thumbnail are added in the behavior record.
10. the data synchronization unit that browser according to claim 6 jumps to application program, which is characterized in that described Device further includes white list judgment module, described preset jumps application for judging whether the destination application belongs to The white list of program calls institute when the destination application belongs to the preset white list for jumping application program State interface jump module.
11. a kind of computer readable storage medium, which is characterized in that be stored with program in the computer readable storage medium and refer to It enables, described program is instructed for executing the method according to claim 1 to 5 after calling for computer.
CN201610913502.2A 2016-10-19 2016-10-19 Browser jumps to the method for data synchronization and device of application program Active CN106503134B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610913502.2A CN106503134B (en) 2016-10-19 2016-10-19 Browser jumps to the method for data synchronization and device of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610913502.2A CN106503134B (en) 2016-10-19 2016-10-19 Browser jumps to the method for data synchronization and device of application program

Publications (2)

Publication Number Publication Date
CN106503134A CN106503134A (en) 2017-03-15
CN106503134B true CN106503134B (en) 2019-08-13

Family

ID=58318020

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610913502.2A Active CN106503134B (en) 2016-10-19 2016-10-19 Browser jumps to the method for data synchronization and device of application program

Country Status (1)

Country Link
CN (1) CN106503134B (en)

Families Citing this family (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109218374B (en) * 2017-07-07 2021-11-30 北京小米移动软件有限公司 Application interaction method and device
CN109086143B (en) * 2017-06-14 2022-02-08 北京小米移动软件有限公司 Application interaction method and device
WO2018227899A1 (en) 2017-06-14 2018-12-20 北京小米移动软件有限公司 Application interaction method, interaction method and device
CN109218375B (en) * 2017-07-07 2021-11-23 北京小米移动软件有限公司 Application interaction method and device
CN108063804B (en) * 2017-12-04 2021-03-09 北京小米移动软件有限公司 Communication method and device
CN112291338B (en) * 2017-12-04 2023-09-19 北京小米移动软件有限公司 Communication method and device and electronic equipment
CN108156220B (en) * 2017-12-04 2021-12-03 北京小米移动软件有限公司 Communication method and device
CN108156221B (en) * 2017-12-04 2021-05-04 北京小米移动软件有限公司 Communication method and device and electronic equipment
CN108156271B (en) * 2017-12-04 2021-03-16 北京小米移动软件有限公司 Communication method and device and electronic equipment
CN108287884B (en) * 2018-01-12 2020-06-16 维沃移动通信有限公司 Page display method and mobile terminal
CN108416021B (en) * 2018-03-06 2023-10-13 腾讯科技(深圳)有限公司 Browser webpage content processing method and device, electronic equipment and readable medium
CN108833585B (en) * 2018-07-03 2021-06-29 北京小米移动软件有限公司 Information interaction method and device and storage medium
CN110708346B (en) * 2018-07-09 2023-03-21 北京高绎信息技术有限公司 Information processing system and method
CN109815000B (en) * 2019-02-25 2021-09-03 百度在线网络技术(北京)有限公司 Application invoking method and system, mobile terminal and computer readable medium thereof
CN109933445A (en) * 2019-03-14 2019-06-25 杭州汉领信息科技有限公司 It is not based on the local application call method of the browser-cross cross-system platform of plug-in unit
JP7015939B2 (en) * 2019-04-16 2022-02-03 グーグル エルエルシー Aggregate conversion measurements
CN111079041A (en) * 2019-11-28 2020-04-28 联想(北京)有限公司 Information processing method, system and computer readable storage medium
CN111147498B (en) * 2019-12-28 2021-05-18 物产中大数字科技有限公司 Device and method for automatically synchronizing IP address blacklist
CN111580997A (en) * 2020-05-20 2020-08-25 长沙米拓信息技术有限公司 A content synchronization method, system, device and storage medium for application and website
CN111813851B (en) * 2020-05-25 2023-10-20 车智互联(北京)科技有限公司 Method, system and mobile terminal for synchronizing data from mobile application to webpage
CN112764846B (en) * 2020-12-31 2022-12-27 北京达佳互联信息技术有限公司 Interface display method and device, electronic equipment and storage medium
CN113010610A (en) * 2021-04-15 2021-06-22 上海绚显科技有限公司 Data synchronization method and device
CN114417059A (en) * 2021-12-08 2022-04-29 北京达佳互联信息技术有限公司 Multimedia resource display method, device, electronic device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873583A (en) * 2014-03-24 2014-06-18 北京聚思信息咨询有限公司 Method and system for analyzing behaviors of internet users based on cloud platform
CN104050266A (en) * 2014-06-20 2014-09-17 小米科技有限责任公司 Recording method and device for user behaviors and webpage browser
CN104601672A (en) * 2014-12-26 2015-05-06 北京奇虎科技有限公司 Method and device for sharing network resources based on different application clients
CN104809213A (en) * 2015-04-29 2015-07-29 努比亚技术有限公司 Method, device and system for starting application software client
CN105718045A (en) * 2014-12-19 2016-06-29 意美森公司 Systems and Methods for Haptically-Enabled Interactions with Objects

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873583A (en) * 2014-03-24 2014-06-18 北京聚思信息咨询有限公司 Method and system for analyzing behaviors of internet users based on cloud platform
CN104050266A (en) * 2014-06-20 2014-09-17 小米科技有限责任公司 Recording method and device for user behaviors and webpage browser
CN105718045A (en) * 2014-12-19 2016-06-29 意美森公司 Systems and Methods for Haptically-Enabled Interactions with Objects
CN104601672A (en) * 2014-12-26 2015-05-06 北京奇虎科技有限公司 Method and device for sharing network resources based on different application clients
CN104809213A (en) * 2015-04-29 2015-07-29 努比亚技术有限公司 Method, device and system for starting application software client

Also Published As

Publication number Publication date
CN106503134A (en) 2017-03-15

Similar Documents

Publication Publication Date Title
CN106503134B (en) Browser jumps to the method for data synchronization and device of application program
CN106528659B (en) Control method and device for browser jumping to application program
CN106528657A (en) Control method and device for jumping from browser to application program
RU2618910C2 (en) Method and device for displaying information
CN108363815B (en) Webpage pre-reading method and device and intelligent terminal equipment
US8862777B2 (en) Systems, apparatus, and methods for mobile device detection
US8972412B1 (en) Predicting improvement in website search engine rankings based upon website linking relationships
CN106294648B (en) A processing method and device for a page access path
CN102647417B (en) The implementation method of network access, device and system and network system
US20120221932A1 (en) Rendering web content using pre-caching
CN104572777B (en) Webpage loading method and device based on UIWebView component
CN102200980A (en) Method and system for providing network resources
US9154522B2 (en) Network security identification method, security detection server, and client and system therefor
CN108228864B (en) Network crawler identification method, device, computer equipment and storage medium
CN108256014B (en) Page display method and device
US11157576B2 (en) Method, system and terminal for performing search in a browser
CN113326418A (en) Method and device for determining webpage information source and webpage quality
CN110851680A (en) Web crawler identification method and device
CN109246069B (en) Webpage login method and device and readable storage medium
CN110929129B (en) Information detection method, equipment and machine-readable storage medium
US20220253320A1 (en) Method and system for operating a web application on a device
CN119441650A (en) Web page loading method, device, electronic device and storage medium
CN104392009B (en) The method and apparatus obtaining mobile site chained address
CN102306181A (en) Method and system for providing network resources
US8370365B1 (en) Tools for predicting improvement in website search engine rankings based upon website linking relationships

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210419

Address after: 523860 Room 101, 1st floor, F2, 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong.

Patentee after: GUANGDONG MINGCHUANG SOFTWARE TECHNOLOGY Co.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.