WO2016197851A1 - 一种通知信息的管理方法和设备 - Google Patents

一种通知信息的管理方法和设备 Download PDF

Info

Publication number
WO2016197851A1
WO2016197851A1 PCT/CN2016/084441 CN2016084441W WO2016197851A1 WO 2016197851 A1 WO2016197851 A1 WO 2016197851A1 CN 2016084441 W CN2016084441 W CN 2016084441W WO 2016197851 A1 WO2016197851 A1 WO 2016197851A1
Authority
WO
WIPO (PCT)
Prior art keywords
page
browser
current
information
user terminal
Prior art date
Application number
PCT/CN2016/084441
Other languages
English (en)
French (fr)
Inventor
郑欣
Original Assignee
阿里巴巴集团控股有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2016197851A1 publication Critical patent/WO2016197851A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/41User authentication where a single sign-on provides access to a plurality of computers
    • 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/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Definitions

  • the present application relates to the field of network technologies, and in particular, to a method and a device for managing notification information.
  • the browser When the browser receives the information, it must distribute the information uniformly to each page and promptly present it to the user. If it is not handled well, it will appear. For example, multiple identical messages are popped up repeatedly, or some pages cannot receive notifications correctly for display, causing misunderstanding and dissatisfaction.
  • a browser's information notification management mechanism is used, for example, using a cookie to process.
  • the specific steps are:
  • the receiving server sends notification information to a page embedded with the webpage instant messaging client, where the notification information includes a mark of arrival of the instant messaging information;
  • the browser cookies on the market now have a limit on the number and size, that is, the number of cookies is between 20 and 50.
  • the limit of the number of messages per cookie is about 4,097, and the total size cannot be greater than the storage size of the cookie.
  • the cookie can be manually cleared in the browser, once cleared, there may be information confusion or loss, which will cause information insecurity.
  • the purpose of the present application is to provide a method and a device for managing notification information.
  • the present application by improving the user terminal, enables the user terminal to make the response information according to the currently stored operation type of the browser.
  • Corresponding processing solves the problem of webpage information security and operation rendering of the page, and solves the problem that the information control part cannot effectively monitor, manage and prompt the information when the number of information is large due to the storage space.
  • the application provides a method for managing notification information, including:
  • the user terminal obtains the current operation type of the browser
  • the user terminal acquires current operation information of a browser page
  • the user terminal sends the operation information to a server corresponding to the current browser page, so that the server returns corresponding response information to the user terminal according to the operation information;
  • the user terminal performs corresponding processing on the received response information according to the current operation type of the browser.
  • the method further includes:
  • the user terminal acquires registration information of the current browser page
  • the registration information includes: a user ID of the current browser page of the user and an ID of the application corresponding to the current browser page.
  • the method further includes:
  • the user terminal determines whether the current browser has a sharing process share worker
  • the user terminal creates a share worker for the browser to enable the share worker Storing the current operation type of the browser and the registration information of the current browser page, and performing the response information returned by the server to the user terminal according to the stored current operation type of the browser and the registration information of the current browser page. The corresponding processing.
  • the browser has been closed to the current browser page; or,
  • the browser is closed to the current browser page, and the browser is added with a new page that belongs to the same site as the closed current browser page;
  • the browser is closed to the current browser page, and the browser is added with a new page that belongs to the same site as the closed current browser page, and the newly added page is the activation page; or,
  • An activation page is added to the browser to add a new page belonging to the same site as the current browser page, and a page belonging to the same site as the page of the operation of the current browser page.
  • the user terminal performs corresponding processing on the received response information according to the current operation type of the browser, specifically:
  • the user terminal parses the received response information returned by the server
  • the user terminal When the operation of closing the current browser page is performed on the browser, the user terminal does not send the response information to the page on which the operation of closing the current browser page is performed;
  • the user terminal When the browser is closed to the current browser page and the browser is added with a new operation to close the page of the same site as the current browser page, the user terminal sends the response information to the new Added on the page;
  • the browser When the browser is closed to the current browser page, and the browser is added with a new page that belongs to the same site as the closed current browser page, and the newly added page is an activation page, the user
  • the terminal processes the response information into an eye-catching response message, and sends the processed response information to the newly added page;
  • the user terminal When an operation of adding a new page belonging to the same site as the current browser page is performed on the browser, the user terminal sends the response information to all pages belonging to the same site as the current browser page;
  • the user terminal When an operation of adding a new page belonging to the same site as the current browser page is added to the browser, and the activation page exists in the page belonging to the same site as the current browser page, the user terminal sends the response information to On all pages belonging to the same site as the current browser page, and responding to the response sent to the activation page Eye-catching treatment.
  • a user terminal device comprising:
  • a first obtaining module configured to acquire a current operation type of the browser
  • a second obtaining module configured to acquire current operation information of a browser page
  • a sending module configured to send the operation information to a server corresponding to the current browser page, so that the server returns corresponding response information according to the operation information
  • the processing module is configured to perform corresponding processing on the received response information according to the current operation type of the browser.
  • the device further includes:
  • the first determining module is configured to determine whether the registration information of the current browser page is stored before the user terminal obtains the current operation type of the browser;
  • the third obtaining module if not present, is used to obtain registration information of the current browser page
  • the registration information includes: a user ID of the current browser page of the user and an ID of the application corresponding to the current browser page.
  • the device further includes:
  • the second determining module is configured to determine whether the current browser has a sharing process share worker before determining whether the user terminal stores the registration information of the current browser page;
  • Creating a module, if not present, for creating a share worker for the browser so that the share worker stores the current operation type of the browser and the registration information of the current browser page, and according to the current browser to the stored
  • the operation type and the registration information of the current browser page perform corresponding processing on the response information returned by the server to the user terminal.
  • the browser has been closed to the current browser page; or,
  • the browser is closed to the current browser page, and the browser is added with a new page that belongs to the same site as the closed current browser page;
  • the browser is closed to the current browser page, and the browser is added with a new page that belongs to the same site as the closed current browser page, and the newly added page is the activation page; or,
  • An activation page is added to the browser to add a new page belonging to the same site as the current browser page, and a page belonging to the same site as the page of the operation of the current browser page.
  • the processing module is specifically configured to:
  • the browser When the browser is closed to the current browser page, and the browser is added with a new page that belongs to the same site as the closed current browser page, and the newly added page is an activation page, the The response information processing is an eye-catching response message, and the processed response information is sent to the newly added page;
  • the response information is sent to all pages belonging to the same site as the current browser page;
  • the response information is sent to the current browser.
  • the pages belong to all pages of the same site and do a striking response to the response sent to the activation page.
  • the user terminal can make corresponding processing on the received response information according to the stored current operation type of the browser, thereby solving the problem that the webpage information security and the operation rendering of the page are affected. At the same time, it solves the problem that the information control part cannot effectively monitor, manage and prompt the information when the number of information is large due to the storage space.
  • FIG. 1 is a flowchart of a method for managing notification information in an embodiment of the present application
  • FIG. 2 is a schematic diagram of a relationship between a page registered in a share worker according to an embodiment of the present application
  • FIG. 3 is a schematic diagram of a process of registering a page based on a share worker according to an embodiment of the present application
  • FIG. 4 is a schematic structural diagram of a user terminal according to an embodiment of the present application.
  • Different pages can be opened in the same browser.
  • Different pages can include different pages belonging to the same site, that is, different sub-pages under the same site, and the different sub-pages correspond to the same application server.
  • Including different pages that do not belong to the same site different pages that do not belong to the same site correspond to different application servers, and the response information returned by the server can only be displayed on the corresponding page, that is, different sub-pages belonging to the same site.
  • the above display may also be displayed only on the page corresponding to the response information, but may not be displayed on the pages of other sites, otherwise problems may occur.
  • the activation page is a page in the browser that the user is currently able to operate, that is, a page currently presented on the user display device, and there is only one activation page.
  • a method for managing notification information in an embodiment of the present application includes the following steps:
  • Step 101 The user terminal acquires the current operation type of the browser.
  • the current operation type of the browser is the specific operation behavior of the user on the current browser.
  • the current operation type of the browser specifically includes:
  • the browser has been closed to the current browser page; or,
  • the browser is closed to the current browser page, and the browser is added with a new page that belongs to the same site as the closed current browser page;
  • the browser is closed to the current browser page, and the browser is added with a new page that belongs to the same site as the closed current browser page, and the newly added page is the activation page; or,
  • An activation page is added to the browser to add a new page belonging to the same site as the current browser page, and a page belonging to the same site as the page of the operation of the current browser page.
  • the user terminal When the user terminal waits for the application server to reply to the response information, it may perform some operations on the page in the browser, such as: closing the page in the browser, adding a page belonging to the same site, or changing the current activation page, etc., therefore, the user terminal needs to obtain the right The type of operation when the browser performs the operation, so that when the page of the browser changes, the user terminal further processes the response information according to the operation of the browser.
  • Step 102 The user terminal acquires current operation information of a browser page.
  • the user adds an item to the shopping cart when the operation of the current browser page is available, and the user terminal needs to obtain the operation information of adding an item to the shopping cart.
  • the operation information of the browser page is obtained to send the operation information to the server of the corresponding application, so that the server returns the corresponding response information according to the current operation information of the browser page, and obtains the current browser.
  • the operation type is for the user terminal to send the response information returned by the server to the page belonging to the same site as the page for obtaining the operation information according to the current operation type of the browser.
  • the user terminal may be a smart terminal capable of performing page operations on a browser, such as a smart phone, a computer, a tablet, and the like.
  • Step 103 The user terminal sends the operation information to a server corresponding to the current browser page, so that the server returns corresponding response information to the user terminal according to the operation information.
  • Step 104 The user terminal performs corresponding processing on the received response information according to the current operation type of the browser.
  • the user terminal performs corresponding processing on the received response information according to the current operation type of the browser, specifically:
  • the user terminal parses the received response information returned by the server
  • the user terminal When the operation of closing the current browser page is performed on the browser, the user terminal does not send the response information to the operation page on which the current browser page is closed;
  • the user terminal When the browser is closed to the current browser page and the browser is added with a new operation to close the page of the same site as the current browser page, the user terminal sends the response information to the new Added on the page;
  • the browser When the browser deletes the current browser page, and adds a new operation to the browser to close the page of the same site as the current browser page, and the newly added page is an activation page, the user terminal Processing the response information as eye-catching response information, and transmitting the processed response information to the newly added page;
  • the user terminal When an operation of adding a new page belonging to the same site as the current browser page is performed on the browser, the user terminal sends the response information to all pages belonging to the same site as the current browser page;
  • the user terminal When an operation of adding a new page belonging to the same site as the current browser page is added to the browser, and the activation page exists in the page belonging to the same site as the current browser page, the user terminal sends the response information to On all pages belonging to the same site as the current browser page, and responding to the response sent to the activation page Eye-catching treatment.
  • the registration information includes: a user ID (Identity) of the current browser page of the user and an ID of the application corresponding to the current browser page.
  • the application server corresponding to the browser page stores the user ID that operates on the browser page and the ID of the application corresponding to the page that is operated, and carries the current browsing in the returned information.
  • the user ID of the page and the ID of the application corresponding to the current browser page enable the user terminal to find the corresponding page and the page belonging to the same site, and perform corresponding processing according to the obtained current operation type of the browser.
  • the user terminal performs eye-catching processing when the response information is displayed on the page, for example, when the page is displayed on the page, it may be a pop-up prompt. Tips that are easy for users to pay attention to.
  • the method further includes:
  • the user terminal acquires registration information of the current browser page.
  • the user terminal only sends the response information returned by the server to the page where the registration information is stored on the user terminal. Therefore, the user terminal needs to determine whether the registration information of the current browser page is stored. If not, the user terminal needs to obtain the registration information. The registration information sent by the current browser page; if it exists, it does not need to be obtained.
  • the method further includes:
  • the user terminal determines whether the current browser has a sharing process share worker
  • the user terminal creates the share worker for the browser, so that the share worker stores the operation type of the browser and the registration information of the current browser page, and according to the stored operation on the browser The type, the registration information of the current browser page, performs corresponding processing on the response information returned by the server to the user terminal.
  • Share worker is a new feature provided in html (Hypertext Markup Language) 5, which allows a part of the program code to run in the thread of the client operating system, rather than in the browser thread, thus achieving more Thread.
  • html Hypertext Markup Language
  • the share worker can provide services for multiple pages at the same time, for example, to manage information on multiple pages, so as to avoid the problem that all the work is performed on the page and affect the running speed of the user terminal.
  • the browser calls a Share worker. If the Share worker does not exist, the user terminal creates a Share worker for the browser, and if the browser is connected to the browser In the Share worker, when the user terminal opens a page in the browser, the page sends the registration information of the page to the Share worker and stores it.
  • the page detects whether the registration information of the page is stored in the Share worker, and if the page is not registered, the registration information of the page is sent to the Stored in the Share worker, if not, it will not be sent.
  • the information listener also listens to the operation information of the user terminal to the browser page, and sends the operation information of the current browser page to the server through the Share worker, and the information listener listens to the response returned by the server. And transmitting the response information to the Share worker, so that the Share worker processes the response information according to a current type of operation of the browser.
  • the Share worker is created through an HTML5 API (Application Programming Interface) interface.
  • the user terminal can make corresponding processing on the received response information according to the stored current operation type of the browser, thereby solving the security of the webpage information and affecting the operation rendering of the page.
  • the problem solves the problem that the information control part cannot effectively monitor, manage and prompt the information when the number of information is large due to the storage space.
  • the pages in the browser include different pages belonging to the same site, that is, different sub-pages under the same site, and the different sub-pages correspond to the same application server, and also include different pages that do not belong to the same site, and do not belong to the same site. Different pages correspond to different application servers.
  • the current three pages need to send registration information to the Share worker, wherein the Share worker passes Ajax (Asynchronous JavaScript, a kind) Web development technology) polls or establishes a web socket (HTML5 a new protocol) long connection method, and data interaction with the corresponding server.
  • Ajax Asynchronous JavaScript, a kind
  • Web development technology polls or establishes a web socket (HTML5 a new protocol) long connection method, and data interaction with the corresponding server.
  • the browser can create a Share worker through the API interface of HTML5, and the share worker can be more
  • the pages provide services at the same time, for example, information management on multiple pages, so as to avoid the problem that all the work is performed on the page and affect the running speed of the user terminal.
  • pag1 is the newly opened page.
  • the browser calls the Share worker to determine whether the Share worker exists. If it does not exist, the browser creates a Share worker. If the Share worker already exists, the browser is connected. In the Share worker, the registration information of pag1 is sent to the Share worker for storage.
  • the registration information includes: a user ID of pag1 and an ID of a corresponding application of pag1.
  • Each page that needs to be managed by the information is registered in the Share worker, and is managed by the Share worker.
  • the Share worker performs data interaction with the corresponding server of the page through ajax polling or establishing a long connection of the web socket.
  • the share worker processes the response information returned by the server.
  • an information listener is created in the Share worker, and the information listener monitors the operation of the user terminal on the browser, the registration information sent by the page, and the response information returned by the server.
  • the Share worker needs to obtain the type of operation performed on the browser from time to time, so that the Share worker performs corresponding processing on the response information returned by the server according to the type of operation of the browser by the user. .
  • the type of operation for the browser specifically:
  • the browser is closed to the current browser page.
  • the page in the current browser has pag1, pag2, and pag3, and the user closes the page pag1 in the current browser.
  • the page in the current browser also has pag2 and Pag3; or,
  • the browser is closed to the current browser page, and the browser is added with a new page that belongs to the same site as the current browser page that is closed.
  • the page in the current browser has pag1, pag2,
  • the user closes pag1 in the browser, and the user opens a pag3 page in the browser that belongs to the same site as pag1; or
  • the browser is closed to the current browser page, and the browser is added with a new page that belongs to the same site as the closed current browser page, and the newly added page is an activation page, for example: current browsing
  • the page in the device has pag1, pag2, the user closes pag1 in the browser, and the user opens a pag3 page belonging to the same site as pag1 in the browser, and sets pag3 as the activation page; or
  • Adding a new page to the browser that belongs to the same site as the current browser page For example, the page in the current browser has pag1 and pag2, and the user opens a pag3 that belongs to the same site as pag1 in the browser. Page; or,
  • An operation is added to the browser to add a new page belonging to the same site as the current browser page, and an active page exists in the page belonging to the same site as the page of the operation of the current browser page, for example, the page in the current browser There are pag1, pag2, and the user opens a pag3 page belonging to the same site as pag1 in the browser, and pag1 or pag3 is the activation page.
  • the Share worker sends the operation information. Give the application server corresponding to pag1.
  • the server corresponding to the Pag1 returns the response information to the share worker according to the received operation information, where the response information includes the user ID of the Pag1 and the ID of the application corresponding to the Pag1, so that the share worker finds the corresponding page, and according to the already stored
  • the share worker parses the response packet, obtains the user ID in the response packet, and the ID of the corresponding application, and the share worker can determine the corresponding page and the page according to the user ID and the ID of the corresponding application. Other pages of the same site, and according to the operation of the browser.
  • the page in the current browser has pag1, pag2, and pag3, and the user performs a page operation on pag1, such as adding an item in the pag1 page.
  • the user closes pag1 after the page operation is performed in pag1, and discards the response information after the share worker receives the response information returned by the server corresponding to pag1; or
  • the browser When the browser is closed to the current browser page, and the browser is added with a new page that closes the current browser page belonging to the same site, for example, the page in the current browser has pag1, pag2 After the user performs a page operation on pag1, the pag1 in the browser is closed, and the user opens a pag3 page belonging to the same site as pag1 in the browser, and the share worker receives the response information returned by the server corresponding to pag1. Sending the response information to pag3 to enable the user to obtain corresponding reply information; or
  • the browser When the browser is closed to the current browser page, and the browser is added with a new page that belongs to the same site as the closed current browser page, and the newly added page is the active page, for example:
  • the page in the current browser has pag1 and pag2.
  • the pag1 in the browser After the user performs the page operation on pag1, the pag1 in the browser is closed, and the user opens a pag3 page belonging to the same site as pag1 in the browser, and the pag3 is set.
  • the response information After the share worker receives the response information returned by the server corresponding to pag1, the response information is visually processed, for example, converting the response information into a popup prompt, and displaying the popup prompt on the pag3. In order to enable the user to obtain corresponding reply information; or,
  • Adding a new page to the browser that belongs to the same site as the current browser page For example, the page in the current browser has pag1 and pag2. After the page operation of pag1, the user opens a page in the browser.
  • the pag1 belongs to the pag3 page of the same site, and after the share worker receives the response information returned by the server corresponding to the pag1, the response information is simultaneously sent to the pag1 and the pag3, so that the user obtains the corresponding reply information; or
  • the browser has been added a new page that belongs to the same site as the current browser page, and there is an activation page in the page with the same site.
  • the page in the current browser has pag1, pag2, and the user has performed on pag1.
  • a pag3 page belonging to the same site as pag1 is opened in the browser, and one of pag1 or pag3 is an activation page, for example, pag1 is an activation page, and after the share worker receives the response information returned by the server corresponding to pag1, Performing eye-catching processing on the response information, such as: converting the response information into a pop-up prompt, displaying the pop-up prompt in pag1, and transmitting the response information to pag3, so that the user obtains Corresponding reply message.
  • the present application also provides a user terminal device. As shown in FIG. 4, the device includes:
  • the first obtaining module 41 is configured to acquire a current type of operation on the browser
  • the second obtaining module 42 is configured to obtain current operation information of the browser page.
  • the sending module 43 is configured to send the operation information to a server corresponding to the current browser page, so that the server returns corresponding response information according to the operation information;
  • the processing module 44 is configured to perform corresponding processing on the received response information according to the current operation type of the browser.
  • the device further includes:
  • the first determining module is configured to determine whether the registration information of the current browser page is stored before the user terminal obtains the current operation type of the browser;
  • the third obtaining module if not present, is used to obtain registration information of the current browser page
  • the registration information includes: a user ID of the current browser page of the user and an ID of the application corresponding to the current browser page.
  • the device further includes:
  • the second determining module is configured to determine whether the current browser has a sharing process share worker before determining whether the user terminal stores the registration information of the current browser page;
  • Creating a module, if not present, for creating the share worker for the browser to make the share The worker stores the current operation type of the browser and the registration information of the current browser page, and returns the response information returned by the server to the user terminal according to the stored current operation type of the browser and the registration information of the current browser page. Make the appropriate processing.
  • the browser has been closed to the current browser page; or,
  • the browser is closed to the current browser page, and the browser is added with a new page that belongs to the same site as the closed current browser page;
  • the browser is closed to the current browser page, and the browser is added with a new page that belongs to the same site as the closed current browser page, and the newly added page is the activation page; or,
  • An activation page is added to the browser to add a new page belonging to the same site as the current browser page, and a page belonging to the same site as the page of the operation of the current browser page.
  • the processing module is specifically configured to:
  • the browser When the browser is closed to the current browser page, and the browser is added with a new page that belongs to the same site as the closed current browser page, and the newly added page is an activation page, the The response information processing is an eye-catching response message, and the processed response information is sent to the newly added page;
  • the response information is sent to all pages belonging to the same site as the current browser page;
  • the response information is sent to the current browser.
  • the pages belong to all pages of the same site and do a striking response to the response sent to the activation page.
  • the user terminal can make corresponding processing on the received response information according to the stored current operation type of the browser, thereby solving the security of the webpage information and affecting the operation rendering of the page.
  • the problem while solving the information control part because of the storage space caused by the number of information is relatively large Effectively monitor, manage, and alert information.
  • the present application can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is a better implementation. the way.
  • the technical solution of the present application which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium, including a plurality of instructions for making a
  • the terminal device (which may be a cell phone, a personal computer, a server, or a network device, etc.) performs the methods described in various embodiments of the present application.
  • modules in the apparatus in the embodiments may be distributed in the apparatus of the embodiment according to the description of the embodiments, or the corresponding changes may be located in one or more apparatuses different from the embodiment.
  • the modules of the foregoing embodiments may be integrated into one or may be deployed separately; may be combined into one module, or may be further split into multiple sub-modules.
  • the serial numbers of the embodiments of the present application are merely for the description, and do not represent the advantages and disadvantages of the embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本申请公开了一种通知信息的管理方法和设备,所述方法包括以下步骤:用户终端获取当前对浏览器的操作类型;所述用户终端获取当前对浏览器页面的操作信息;所述用户终端将所述操作信息发送给当前浏览器页面对应的服务器,以使所述服务器根据所述操作信息向所述用户终端返回相应的响应信息;所述用户终端根据当前对浏览器的操作类型对接收的所述响应信息做出相应的处理。本申请解决了网页信息安全和影响页面的操作渲染的问题,同时解决了信息控制部分因为存储空间造成的在信息数比较多时不能有效的进行信息的监听、管理与信息提示的问题。

Description

一种通知信息的管理方法和设备
本申请要求2015年06月09日递交的申请号为201510312914.6、发明名称为“一种通知信息的管理方法和设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及网络技术领域,特别是涉及一种通知信息的管理方法和设备。
背景技术
当下web应用越来越多,越来越平台化,很多的平台应用都会使用信息的方式来将一些信息实时地反馈给用户,例如一些待办事宜,***通知,状态变更等等。而浏览器信息通知的管理其实是比较复杂的,主要要解决几个问题:
1、要保证请求的唯一性。
当存在多个浏览器页面的时候,如何统一进行信息的监听,如果每个浏览器页面都去监听信息,就会导致浏览器会有很多的重复请求,导致服务器压力暴增,另外也会造成不同页面收到的结果不一致的情况。
2、要保证信息提醒的唯一性。
当浏览器收到信息后,必须要将信息统一地分发给各个页面并且友好地提示给用户。如果处理不好,就会出现,例如,重复弹出多个相同的信息,或者有些页面无法正确收到通知进行展示,从而引起用户的误解和不满。
在现有技术中,使用的是浏览器的信息通知管理机制,例如:使用cookie来处理。具体步骤为:
1、接收服务器向嵌入有网页即时通讯客户端的页面发送通知信息,所述通知信息中包括即时通讯信息到达的标记;
2、将所述即时通讯信息到达的标记写入所述嵌入有网页即时通讯客户端的页面所属的上级域名对应的小型文件记录Cookie中;
3、根据所述Cookie中的所述标记,在所述上级域名下嵌入所述网页即时通讯客户端的其他页面上进行所述即时通讯信息到达的通知。
在实现本申请的过程中,发明人发现现有技术至少存在如下问题:
1、现在市面上的浏览器cookie有个数及大小的限制,即:cookie的个数在20~50个之间。每个cookie的信息条数限制多为4097条左右,同时总大小不能大于cookie的存储大小。在信息数比较多时就不能有效的进行信息的监听、管理与信息提示。
2、Cookie是可以在浏览器被手动清除的,一旦清除,可能出现信息混乱或者丢失的情况出现,这样会造成信息的不安全性。
3、使用cookie来管理信息,发送信息请求,做信息展示,都会占用当前页面的资源,导致页面变卡,渲染变慢等问题。
发明内容
本申请的目的在于提供一种通知信息的管理方法和设备,本申请通过对用户终端的改进,使所述用户终端可以根据存储的当前对浏览器的操作类型对接收的所述响应信息做出相应的处理,从而解决了网页信息安全和影响页面的操作渲染的问题,同时解决了信息控制部分因为存储空间造成的在信息数比较多时不能有效的进行信息的监听、管理与信息提示的问题。
本申请的技术方案如下:
本申请提供一种通知信息的管理方法,包括:
用户终端获取当前对浏览器的操作类型;
所述用户终端获取当前对浏览器页面的操作信息;
所述用户终端将所述操作信息发送给当前浏览器页面对应的服务器,以使所述服务器根据所述操作信息向所述用户终端返回相应的响应信息;
所述用户终端根据当前对浏览器的操作类型对接收的所述响应信息做出相应的处理。
在所述用户终端获取当前对浏览器的操作类型之前,所述方法还包括:
所述用户终端判断是否存储有当前浏览器页面的注册信息;
如果不存在,所述用户终端获取当前浏览器页面的注册信息;
所述注册信息包括:用户在当前浏览器页面的用户ID和当前浏览器页面对应应用的ID。
在所述用户终端判断是否存储有当前浏览器页面的注册信息之前,所述方法还包括:
所述用户终端判断当前浏览器是否存在共享进程share worker;
如果不存在,所述用户终端为所述浏览器创建share worker,以使所述share worker 存储当前对浏览器的操作类型和当前浏览器页面的注册信息,并根据存储的当前对浏览器的操作类型、当前浏览器页面的注册信息对所述服务器向用户终端返回的所述响应信息做出相应的处理。
当前对浏览器的操作类型,具体为:
对浏览器进行了关闭当前浏览器页面的操作;或,
对浏览器进行了关闭当前浏览器页面的操作,并对浏览器进行了添加新的与关闭的当前浏览器页面属于同一站点的页面的操作;或,
对浏览器进行了关闭当前浏览器页面的操作,并对浏览器进行了添加新的与关闭的当前浏览器页面属于同一站点的页面的操作,且新添加的页面为激活页面;或,
对浏览器进行了添加新的与当前浏览器页面属于同一站点的页面的操作;或,
对浏览器进行了添加新的与当前浏览器页面属于同一站点的页面的操作,且与当前浏览器页面的操作的页面属于同一站点的页面中存在激活页面。
所述用户终端根据当前对浏览器的操作类型对接收的所述响应信息做出相应的处理,具体为:
所述用户终端解析接收的所述服务器返回的响应信息;
所述用户终端根据解析得到的注册信息确定所述响应信息对应的浏览器页面;
当对浏览器进行了关闭当前浏览器页面的操作时,所述用户终端不将所述响应信息发送到进行了关闭当前浏览器页面的操作的页面上;
当对浏览器进行了关闭当前浏览器页面的操作,并对浏览器进行了添加新的与关闭当前浏览器页面属于同一站点的页面的操作时,所述用户终端将所述响应信息发送到新添加的页面上;
当对浏览器进行了关闭当前浏览器页面的操作,并对浏览器进行了添加新的与关闭的当前浏览器页面属于同一站点的页面的操作,且新添加的页面为激活页面,所述用户终端将所述响应信息处理为醒目的响应信息,并将处理后的所述响应信息发送到新添加的页面上;
当对浏览器进行了添加新的与当前浏览器页面属于同一站点的页面的操作时,所述用户终端将所述响应信息发送到与当前浏览器页面属于同一站点的所有页面上;
当对浏览器进行了添加新的与当前浏览器页面属于同一站点的页面的操作,且与当前浏览器页面属于同一站点的页面中存在激活页面时,所述用户终端将所述响应信息发送到与当前浏览器页面属于同一站点的所有页面上,并对发送到激活页面的响应信息做 醒目处理。
一种用户终端设备,所述设备包括:
第一获取模块,用于获取当前对浏览器的操作类型;
第二获取模块,用于获取当前对浏览器页面的操作信息;
发送模块,用于将所述操作信息发送给当前浏览器页面对应的服务器,以使所述服务器根据所述操作信息返回相应的响应信息;
处理模块,用于根据当前对浏览器的操作类型对接收的所述响应信息做出相应的处理。
所述设备还包括:
第一判断模块,在所述用户终端获取当前对浏览器的操作类型之前,用于判断是否存储有当前浏览器页面的注册信息;
第三获取模块,如果不存在,用于获取当前浏览器页面的注册信息;
所述注册信息包括:用户在当前浏览器页面的用户ID和当前浏览器页面对应应用的ID。
所述设备还包括:
第二判断模块,在所述用户终端判断是否存储有当前浏览器页面的注册信息之前,用于判断当前浏览器是否存在共享进程share worker;
创建模块,如果不存在,用于为所述浏览器创建share worker,以使所述share worker存储当前对浏览器的操作类型和当前浏览器页面的注册信息,并根据存储的当前对浏览器的操作类型、当前浏览器页面的注册信息对所述服务器向用户终端返回的所述响应信息做出相应的处理。
当前对浏览器的操作类型,具体为:
对浏览器进行了关闭当前浏览器页面的操作;或,
对浏览器进行了关闭当前浏览器页面的操作,并对浏览器进行了添加新的与关闭的当前浏览器页面属于同一站点的页面的操作;或,
对浏览器进行了关闭当前浏览器页面的操作,并对浏览器进行了添加新的与关闭的当前浏览器页面属于同一站点的页面的操作,且新添加的页面为激活页面;或,
对浏览器进行了添加新的与当前浏览器页面属于同一站点的页面的操作;或,
对浏览器进行了添加新的与当前浏览器页面属于同一站点的页面的操作,且与当前浏览器页面的操作的页面属于同一站点的页面中存在激活页面。
所述处理模块,具体用于:
解析接收的所述服务器返回的响应信息;
根据解析得到的注册信息确定所述响应信息对应的浏览器页面;
当对浏览器进行了关闭当前浏览器页面的操作时,不将所述响应信息发送到进行了关闭当前浏览器页面的操作的页面上;
当对浏览器进行了关闭当前浏览器页面的操作,并对浏览器进行了添加新的与关闭当前浏览器页面属于同一站点的页面的操作时,将所述响应信息发送到新添加的页面上;
当对浏览器进行了关闭当前浏览器页面的操作,并对浏览器进行了添加新的与关闭的当前浏览器页面属于同一站点的页面的操作,且新添加的页面为激活页面,将所述响应信息处理为醒目的响应信息,并将处理后的所述响应信息发送到新添加的页面上;
当对浏览器进行了添加新的与当前浏览器页面属于同一站点的页面的操作时,将所述响应信息发送到与当前浏览器页面属于同一站点的所有页面上;
当对浏览器进行了添加新的与当前浏览器页面属于同一站点的页面的操作,且与当前浏览器页面属于同一站点的页面中存在激活页面时,将所述响应信息发送到与当前浏览器页面属于同一站点的所有页面上,并对发送到激活页面的响应信息做醒目处理。
本申请通过对用户终端的改进,使所述用户终端可以根据存储的当前对浏览器的操作类型对接收的响应信息做出相应的处理,从而解决了网页信息安全和影响页面的操作渲染的问题,同时解决了信息控制部分因为存储空间造成的在信息数比较多时不能有效的进行信息的监听、管理与信息提示的问题。
附图说明
为了更清楚地说明本申请或现有技术中的技术方案,下面将对本申请或现有技术描述中所需要使用的附图作简单的介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例中的一种通知信息的管理方法流程图;
图2为本申请实施例中的一种页面在share worker中注册的关系示意图;
图3为本申请实施例中的一种基于share worker的页面注册流程示意图;
图4为本申请实施例中的一种用户终端结构示意图。
具体实施方式
下面将结合本申请中的附图,对本申请中的技术方案进行清楚、完整的描述,显然,所描述的实施例是本申请的一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的其他实施例,都属于本申请保护的范围。
不同的页面可以在同一个浏览器中打开,其中,不同的页面中可以包括属于同一站点的不同页面,即属于同一站点下的不同子页面,所述不同的子页面对应同一个应用服务器,还包括不属于同一站点的不同页面,不属于同一站点的不同页面对应不同的应用服务器,所述服务器返回的回应信息只能在对应的页面上进行显示,即可以在属于同一站点下的不同子页面上显示,也可以只在所述回应信息对应的页面上显示,但是不能在其他站点的页面上显示,否则会出现问题。
激活页面为所述浏览器中用户当前能够进行操作的页面,即当前呈现在用户显示装置上的页面,激活页面有且只有一个。
如图1所示,为本申请实施例中的一种通知信息的管理方法,所述方法包括以下步骤:
步骤101,用户终端获取当前对浏览器的操作类型。
当前对浏览器的操作类型是用户对当前浏览器的具体操作行为,在具体应用场景下,当前对浏览器的操作类型具体包括:
对浏览器进行了关闭当前浏览器页面的操作;或,
对浏览器进行了关闭当前浏览器页面的操作,并对浏览器进行了添加新的与关闭的当前浏览器页面属于同一站点的页面的操作;或,
对浏览器进行了关闭当前浏览器页面的操作,并对浏览器进行了添加新的与关闭的当前浏览器页面属于同一站点的页面的操作,且新添加的页面为激活页面;或,
对浏览器进行了添加新的与当前浏览器页面属于同一站点的页面的操作;或,
对浏览器进行了添加新的与当前浏览器页面属于同一站点的页面的操作,且与当前浏览器页面的操作的页面属于同一站点的页面中存在激活页面。
用户终端等待应用服务器回复响应信息时可以对浏览器中的页面进行一些操作,如:关闭浏览器中的页面、添加属于同一站点的页面或改变当前的激活页面等,因此,用户终端需要获取对浏览器进行操作时的操作类型,以使当浏览器的页面发生改变时,所述用户终端根据对浏览器的操作来对响应信息做进一步处理。
步骤102,所述用户终端获取当前对浏览器页面的操作信息。
例如:用户在当前浏览器页面的操作可以时将一个商品添加到购物车中,用户终端需要获取将一个商品添加到购物车中这一操作信息。
其中,获取当前对浏览器页面的操作信息是为了将所述操作信息发送给对应应用的服务器,以使所述服务器根据当前对浏览器页面的操作信息返回相应的响应信息,获取当前对浏览器的操作类型是为了让所述用户终端根据当前对浏览器的操作类型将所述服务器返回的响应信息发送到与获取操作信息的页面属于同一站点的页面上。
所述用户终端可以是能够在浏览器上进行页面操作的智能终端,例如:智能手机、电脑以及平板电脑等。
步骤103,所述用户终端将所述操作信息发送给当前浏览器页面对应的服务器,以使所述服务器根据所述操作信息向所述用户终端返回相应的响应信息。
步骤104,所述用户终端根据当前对浏览器的操作类型对接收的所述响应信息做出相应的处理。
所述用户终端根据当前对浏览器的操作类型对接收的所述响应信息做出相应的处理,具体为:
所述用户终端解析接收的所述服务器返回的响应信息;
所述用户终端根据解析得到的注册信息确定所述响应信息对应的浏览器页面;
当对浏览器进行了关闭当前浏览器页面的操作时,所述用户终端不将所述响应信息发送到进行了关闭当前浏览器页面的操作页面上;
当对浏览器进行了关闭当前浏览器页面的操作,并对浏览器进行了添加新的与关闭当前浏览器页面属于同一站点的页面的操作时,所述用户终端将所述响应信息发送到新添加的页面上;
当对浏览器进行了删除当前浏览器页面的操作,并对浏览器进行了添加新的与关闭当前浏览器页面属于同一站点的页面的操作,且新添加的页面为激活页面,所述用户终端将所述响应信息处理为醒目的响应信息,并将处理后的所述响应信息发送到新添加的页面上;
当对浏览器进行了添加新的与当前浏览器页面属于同一站点的页面的操作时,所述用户终端将所述响应信息发送到与当前浏览器页面属于同一站点的所有页面上;
当对浏览器进行了添加新的与当前浏览器页面属于同一站点的页面的操作,且与当前浏览器页面属于同一站点的页面中存在激活页面时,所述用户终端将所述响应信息发送到与当前浏览器页面属于同一站点的所有页面上,并对发送到激活页面的响应信息做 醒目处理。
所述注册信息包括:用户在当前浏览器页面的用户ID(Identity,身份标识号码)和所述当前浏览器页面对应应用的ID。
用户终端在对浏览器页面进行操作之前,所述浏览器页面对应的应用服务器中就存储有在浏览器页面进行操作的用户ID和进行操作的页面对应应用的ID,在返回信息中携带当前浏览器页面的用户ID和所述当前浏览器页面对应应用的ID就能够让用户终端找到对应的页面和属于同一站点的页面,并根据获取的当前对浏览器的操作类型进行相应的处理。
其中,如果接收响应信息的页面为当前浏览器的激活页面时,用户终端为所述响应信息在所述页面上进行显示时做醒目处理,例如:在所述页面上显示时可以是弹窗提示等容易让用户注意的提示。
在所述用户终端获取当前对浏览器的操作类型之前,所述方法还包括:
所述用户终端判断是否存储有当前浏览器页面的注册信息;
如果不存在,所述用户终端获取当前浏览器页面的注册信息。
用户终端只将服务器返回的响应信息发送到在用户终端上存储了注册信息的页面上,因此,用户终端需要判断是否存储了当前浏览器页面的注册信息,如果不存在,所述用户终端需要获取当前浏览器页面发送的注册信息;如果存在,则不需要获取。
在所述用户终端判断是否存储有当前浏览器页面的注册信息之前,所述方法还包括:
所述用户终端判断当前浏览器是否存在共享进程share worker;
如果不存在,所述用户终端为所述浏览器创建所述share worker,以使所述share worker存储对浏览器的操作类型和当前浏览器页面的注册信息,并根据存储的对浏览器的操作类型、当前浏览器页面的注册信息对所述服务器向用户终端返回的所述响应信息做出相应的处理。
Share worker是html(Hypertext Markup Language,超文本标记语言)5中提供的一个新功能,它可以让一部分程序代码运行在客户端操作***的线程中,而非在浏览器的线程中,从而实现多线程。
share worker能够为多个页面同时提供服务,例如:对多个页面进行信息管理,这样可以避免所有的工作都在页面上进行造成的影响用户终端运行速度的问题。
具体的,在浏览器被打开时,所述浏览器调用Share worker,如果Share worker不存在,所述用户终端为所述浏览器创建一个Share worker,如果存在了所述浏览器连接到所 述Share worker中,当用户终端在浏览器中打开一个页面时,所述页面将页面的注册信息发送给所述Share worker并进行存储。
其中,当用户终端在浏览器中打开一个页面时,所述页面会检测所述Share worker中是否存在存储了所述页面的注册信息,如果没有注册所述页面将其的注册信息发送到所述Share worker中进行存储,如果存在了,则不发送。
由于页面和Share worker的交互都是以数据信息的方式进行的,因此,在用户终端为所述浏览器创建Share worker时,还要在Share worker中创建一个信息***,所述信息***用于监听用户终端对浏览器的操作和浏览器页面发送的注册信息,并将用户终端对浏览器的操作类型和浏览器页面发送的注册信息发送给所述Share worker中,以使所述Share worker进行存储。
同时,所述信息***还要监听用户终端对浏览器页面的操作信息,并通过Share worker将当前浏览器页面的操作信息发送给所述服务器,所述信息***监听所述服务器返回的响应信息,并将所述响应信息发送给所述Share worker,以使所述Share worker根据当前对浏览器的操作类型对所述响应信息做出处理。
其中,所述Share worker是通过HTML5的API(Application Programming Interface,应用程序编程接口)接口创建的。
本申请通过对用户终端的改进,使所述用户终端可以根据存储的当前对浏览器的操作类型对接收的所述响应信息做出相应的处理,从而解决了网页信息安全和影响页面的操作渲染的问题,同时解决了信息控制部分因为存储空间造成的在信息数比较多时不能有效的进行信息的监听、管理与信息提示的问题。
为了进一步阐述本申请的技术思想,现结合具体的应用场景,对本申请的技术方案进行说明。
浏览器中的页面包括属于同一站点的不同页面,即属于同一站点下的不同子页面,所述不同的子页面对应同一个应用服务器,还包括不属于同一站点的不同页面,不属于同一站点的不同页面对应不同的应用服务器。
如图2所示,如果当前浏览器中打开了3个页面:pag1、pag2和pag3,当前的3个页面需要向Share worker发送注册信息,其中,所述Share worker通过ajax(Asynchronous JavaScript,一种网页开发技术)轮询或者建立web socket(HTML5一种新的协议)长连接的方式,跟相应的服务器进行数据交互。
浏览器可以通过HTML5的API接口创建Share worker,所述share worker能够为多 个页面同时提供服务,例如:对多个页面进行信息管理,这样可以避免所有的工作都在页面上进行造成的影响用户终端运行速度的问题。
如图3所示,pag1为新打开的页面,浏览器调用Share worker,判断Share worker是否存在,如果不存在,所述浏览器创建一个Share worker,如果已经存在Share worker,那么,浏览器连接到Share worker中,并将pag1的注册信息发送到Share worker中进行存储。
所述注册信息包括:pag1的用户ID和pag1对应应用的ID。
其中,每个需要进行信息管理的页面都要注册到Share worker中,由Share worker进行统一管理,Share worker通过ajax轮询或者建立web socket长连接的方式与页面相应的服务器进行数据交互,并由Share worker对服务器返回的回应信息进行统一处理。
在建立Share worker时,在Share worker中创建一个信息***,由所述信息***监听用户终端对浏览器的操作、页面发送的注册信息和服务器返回的回应信息。
同时,在用户对浏览器进行操作时,所述Share worker需要时时获取对浏览器进行的操作类型,以使所述Share worker根据用户对浏览器的操作类型对服务器返回的响应信息做相应的处理。
对浏览器的操作类型,具体为:
对浏览器进行了关闭当前浏览器页面的操作,例如:当前浏览器中的页面有pag1、pag2和pag3,用户关闭当前浏览器中的页面pag1,此时当前浏览器中的页面还有pag2和pag3;或,
对浏览器进行了关闭当前浏览器页面的操作,并对浏览器进行了添加新的与关闭的当前浏览器页面属于同一站点的页面的操作,例如:当前浏览器中的页面有pag1、pag2,用户将浏览器中的pag1关闭,同时用户在浏览器中打开了一个与pag1属于同一站点的pag3页面;或,
对浏览器进行了关闭当前浏览器页面的操作,并对浏览器进行了添加新的与关闭的当前浏览器页面属于同一站点的页面的操作,且新添加的页面为激活页面,例如:当前浏览器中的页面有pag1、pag2,用户将浏览器中的pag1关闭,同时用户在浏览器中打开了一个与pag1属于同一站点的pag3页面,并且将pag3设置为激活页面;或,
对浏览器进行了添加新的与当前浏览器页面属于同一站点的页面的操作,例如:当前浏览器中的页面有pag1、pag2,用户再在浏览器中打开了一个与pag1属于同一站点的pag3页面;或,
对浏览器进行了添加新的与当前浏览器页面属于同一站点的页面的操作,且与当前浏览器页面的操作的页面属于同一站点的页面中存在激活的页面,例如:当前浏览器中的页面有pag1、pag2,用户再在浏览器中打开了一个与pag1属于同一站点的pag3页面,并且pag1或pag3为激活页面。
如果此时用户对当前页面pag1和pag2(pag1和pag2为不属于同一站点的页面)中的pag1页面进行操作,例如:在pag1的购物车中添加了新商品,Share worker将所述操作信息发送给pag1对应的应用服务器。
Pag1对应的服务器根据接收到的操作信息向share worker返回响应信息,所述响应信息中包括Pag1的用户ID和Pag1对应应用的ID,以使所述share worker找到对应的页面,并根据已经存储的pag1的用户ID和Pag1对应应用的ID,以及当前对浏览器的操作类型来对相应信息进行处理。
具体为:share worker解析所述响应报文,获取所述响应报文中的用户ID和对应应用的ID,share worker根据用户ID和对应应用的ID能够确定出对应的页面和与所述页面属于同一站点的其他页面,并根据对浏览器的操作进行相应的处理。
例如:当对浏览器进行了关闭当前浏览器页面的操作时,例如:当前浏览器中的页面有pag1、pag2和pag3,用户对pag1进行了页面操作,如在pag1页面中进行将一个商品添加到购物车的操作,同时用户在pag1进行了页面操作后将pag1关闭了,在share worker接收到pag1对应的服务器返回的响应信息后丢弃所述响应信息;或,
当对浏览器进行了关闭当前浏览器页面的操作,并对浏览器进行了添加新的与关闭当前浏览器页面属于同一站点的页面的操作时,例如:当前浏览器中的页面有pag1、pag2,用户对pag1进行了页面操作后将浏览器中的pag1关闭,同时用户在浏览器中打开了一个与pag1属于同一站点的pag3页面,所述share worker接收到pag1对应的服务器返回的响应信息后将所述响应信息发送到pag3上,以使所述用户得到相应的回复信息;或,
当对浏览器进行了关闭当前浏览器页面的操作,并对浏览器进行了添加新的与关闭的当前浏览器页面属于同一站点的页面的操作,且新添加的页面为激活页面时,例如:当前浏览器中的页面有pag1、pag2,用户对pag1进行了页面操作后将浏览器中的pag1关闭,同时用户在浏览器中打开了一个与pag1属于同一站点的pag3页面,并且,将pag3设置为激活页面,在share worker接收到pag1对应的服务器返回的响应信息后将所述响应信息进行醒目处理,如:将所述响应信息转换为弹窗提示,并将所述弹窗提示显示在pag3中,以使所述用户得到相应的回复信息;或,
对浏览器进行了添加新的与当前浏览器页面属于同一站点的页面的操作,例如:当前浏览器中的页面有pag1、pag2,用户对pag1进行了页面操作后在浏览器中打开了一个与pag1属于同一站点的pag3页面,在share worker接收到pag1对应的服务器返回的响应信息后将所述响应信息同时发送给pag1和pag3,以使所述用户得到相应的回复信息;或,
对浏览器进行了添加新的与当前浏览器页面属于同一站点的页面的操作,且具有相同站点的页面中存在激活页面,例如:当前浏览器中的页面有pag1、pag2,用户对pag1进行了页面操作后在浏览器中打开了一个与pag1属于同一站点的pag3页面,并且pag1或pag3中的一个为激活页面,如pag1为激活页面,在share worker接收到pag1对应的服务器返回的响应信息后将所述响应信息进行醒目处理,如:将所述响应信息转换为弹窗提示,并将所述弹窗提示显示在pag1中,并将所述响应信息发送给pag3,以使所述用户得到相应的回复信息。
基于与上述方法同样的申请构思,本申请还提出了一种用户终端设备,如图4所述,该设备包括:
第一获取模块41,用于获取当前对浏览器的操作类型;
第二获取模块42,用于获取当前对浏览器页面的操作信息;
发送模块43,用于将所述操作信息发送给当前浏览器页面对应的服务器,以使所述服务器根据所述操作信息返回相应的响应信息;
处理模块44,用于根据当前对浏览器的操作类型对接收的所述响应信息做出相应的处理。
所述设备还包括:
第一判断模块,在所述用户终端获取当前对浏览器的操作类型之前,用于判断是否存储有当前浏览器页面的注册信息;
第三获取模块,如果不存在,用于获取当前浏览器页面的注册信息;
所述注册信息包括:用户在当前浏览器页面的用户ID和当前浏览器页面对应应用的ID。
所述设备还包括:
第二判断模块,在所述用户终端判断是否存储有当前浏览器页面的注册信息之前,用于判断当前浏览器是否存在共享进程share worker;
创建模块,如果不存在,用于为所述浏览器创建所述share worker,以使所述share  worker存储当前对浏览器的操作类型和当前浏览器页面的注册信息,并根据存储的当前对浏览器的操作类型、当前浏览器页面的注册信息对所述服务器向用户终端返回的所述响应信息做出相应的处理。
当前对浏览器的操作类型,具体为:
对浏览器进行了关闭当前浏览器页面的操作;或,
对浏览器进行了关闭当前浏览器页面的操作,并对浏览器进行了添加新的与关闭的当前浏览器页面属于同一站点的页面的操作;或,
对浏览器进行了关闭当前浏览器页面的操作,并对浏览器进行了添加新的与关闭的当前浏览器页面属于同一站点的页面的操作,且新添加的页面为激活页面;或,
对浏览器进行了添加新的与当前浏览器页面属于同一站点的页面的操作;或,
对浏览器进行了添加新的与当前浏览器页面属于同一站点的页面的操作,且与当前浏览器页面的操作的页面属于同一站点的页面中存在激活页面。
所述处理模块,具体用于:
解析接收的所述服务器返回的响应信息;
根据解析得到的注册信息确定所述响应信息对应的浏览器页面;
当对浏览器进行了关闭当前浏览器页面的操作时,不将所述响应信息发送到进行了关闭当前浏览器页面的操作的页面上;
当对浏览器进行了关闭当前浏览器页面的操作,并对浏览器进行了添加新的与关闭当前浏览器页面属于同一站点的页面的操作时,将所述响应信息发送到新添加的页面上;
当对浏览器进行了关闭当前浏览器页面的操作,并对浏览器进行了添加新的与关闭的当前浏览器页面属于同一站点的页面的操作,且新添加的页面为激活页面,将所述响应信息处理为醒目的响应信息,并将处理后的所述响应信息发送到新添加的页面上;
当对浏览器进行了添加新的与当前浏览器页面属于同一站点的页面的操作时,将所述响应信息发送到与当前浏览器页面属于同一站点的所有页面上;
当对浏览器进行了添加新的与当前浏览器页面属于同一站点的页面的操作,且与当前浏览器页面属于同一站点的页面中存在激活页面时,将所述响应信息发送到与当前浏览器页面属于同一站点的所有页面上,并对发送到激活页面的响应信息做醒目处理。
本申请通过对用户终端的改进,使所述用户终端可以根据存储的当前对浏览器的操作类型对接收的所述响应信息做出相应的处理,从而解决了网页信息安全和影响页面的操作渲染的问题,同时解决了信息控制部分因为存储空间造成的在信息数比较多时不能 有效的进行信息的监听、管理与信息提示的问题。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本申请可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台终端设备(可以是手机,个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
以上所述仅是本申请的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视本申请的保护范围。
本领域技术人员可以理解实施例中的装置中的模块可以按照实施例描述进行分布于实施例的装置中,也可以进行相应变化位于不同于本实施例的一个或多个装置中。上述实施例的模块可以集成于一体,也可以分离部署;可以合并为一个模块,也可以进一步拆分成多个子模块。上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。
以上公开的仅为本申请的几个具体实施例,但是,本申请并非局限于此,任何本领域的技术人员能思之的变化都应落入本申请的保护范围。

Claims (10)

  1. 一种通知信息的管理方法,其特征在于,所述方法包括:
    用户终端获取当前对浏览器的操作类型;
    所述用户终端获取当前对浏览器页面的操作信息;
    所述用户终端将所述操作信息发送给当前浏览器页面对应的服务器,以使所述服务器根据所述操作信息向所述用户终端返回相应的响应信息;
    所述用户终端根据当前对浏览器的操作类型对接收的所述响应信息做出相应的处理。
  2. 如权利要求1所述方法,其特征在于,在所述用户终端获取当前对浏览器的操作类型之前,所述方法还包括:
    所述用户终端判断是否存储有当前浏览器页面的注册信息;
    如果不存在,所述用户终端获取当前浏览器页面的注册信息;
    所述注册信息包括:用户在当前浏览器页面的用户ID和当前浏览器页面对应应用的ID。
  3. 如权利要求2所述方法,其特征在于,在所述用户终端判断是否存储有当前浏览器页面的注册信息之前,所述方法还包括:
    所述用户终端判断当前浏览器是否存在共享进程share worker;
    如果不存在,所述用户终端为所述浏览器创建share worker,以使所述share worker存储当前对浏览器的操作类型和当前浏览器页面的注册信息,并根据存储的当前对浏览器的操作类型、当前浏览器页面的注册信息对所述服务器向用户终端返回的所述响应信息做出相应的处理。
  4. 如权利要求2所述方法,其特征在于,当前对浏览器的操作类型,具体为:
    对浏览器进行了关闭当前浏览器页面的操作;或,
    对浏览器进行了关闭当前浏览器页面的操作,并对浏览器进行了添加新的与关闭的当前浏览器页面属于同一站点的页面的操作;或,
    对浏览器进行了关闭当前浏览器页面的操作,并对浏览器进行了添加新的与关闭的当前浏览器页面属于同一站点的页面的操作,且新添加的页面为激活页面;或,
    对浏览器进行了添加新的与当前浏览器页面属于同一站点的页面的操作;或,
    对浏览器进行了添加新的与当前浏览器页面属于同一站点的页面的操作,且与当前浏览器页面的操作的页面属于同一站点的页面中存在激活页面。
  5. 如权利要求4所述方法,其特征在于,所述用户终端根据当前对浏览器的操作类型对接收的所述响应信息做出相应的处理,具体为:
    所述用户终端解析接收的所述服务器返回的响应信息;
    所述用户终端根据解析得到的注册信息确定所述响应信息对应的浏览器页面;
    当对浏览器进行了关闭当前浏览器页面的操作时,所述用户终端不将所述响应信息发送到进行了关闭当前浏览器页面的操作的页面上;
    当对浏览器进行了关闭当前浏览器页面的操作,并对浏览器进行了添加新的与关闭当前浏览器页面属于同一站点的页面的操作时,所述用户终端将所述响应信息发送到新添加的页面上;
    当对浏览器进行了关闭当前浏览器页面的操作,并对浏览器进行了添加新的与关闭的当前浏览器页面属于同一站点的页面的操作,且新添加的页面为激活页面,所述用户终端将所述响应信息处理为醒目的响应信息,并将处理后的所述响应信息发送到新添加的页面上;
    当对浏览器进行了添加新的与当前浏览器页面属于同一站点的页面的操作时,所述用户终端将所述响应信息发送到与当前浏览器页面属于同一站点的所有页面上;
    当对浏览器进行了添加新的与当前浏览器页面属于同一站点的页面的操作,且与当前浏览器页面属于同一站点的页面中存在激活页面时,所述用户终端将所述响应信息发送到与当前浏览器页面属于同一站点的所有页面上,并对发送到激活页面的响应信息做醒目处理。
  6. 一种用户终端设备,其特征在于,所述设备包括:
    第一获取模块,用于获取当前对浏览器的操作类型;
    第二获取模块,用于获取当前对浏览器页面的操作信息;
    发送模块,用于将所述操作信息发送给当前浏览器页面对应的服务器,以使所述服务器根据所述操作信息返回相应的响应信息;
    处理模块,用于根据当前对浏览器的操作类型对接收的所述响应信息做出相应的处理。
  7. 如权利要求6所述设备,其特征在于,所述设备还包括:
    第一判断模块,在所述用户终端获取当前对浏览器的操作类型之前,用于判断是否存储有当前浏览器页面的注册信息;
    第三获取模块,如果不存在,用于获取当前浏览器页面的注册信息;
    所述注册信息包括:用户在当前浏览器页面的用户ID和当前浏览器页面对应应用的ID。
  8. 如权利要求7所述设备,其特征在于,所述设备还包括:
    第二判断模块,在所述用户终端判断是否存储有当前浏览器页面的注册信息之前,用于判断当前浏览器是否存在共享进程share worker;
    创建模块,如果不存在,用于为所述浏览器创建share worker,以使所述share worker存储当前对浏览器的操作类型和当前浏览器页面的注册信息,并根据存储的当前对浏览器的操作类型、当前浏览器页面的注册信息对所述服务器向用户终端返回的所述响应信息做出相应的处理。
  9. 如权利要求7所述设备,其特征在于,当前对浏览器的操作类型,具体为:
    对浏览器进行了关闭当前浏览器页面的操作;或,
    对浏览器进行了关闭当前浏览器页面的操作,并对浏览器进行了添加新的与关闭的当前浏览器页面属于同一站点的页面的操作;或,
    对浏览器进行了关闭当前浏览器页面的操作,并对浏览器进行了添加新的与关闭的当前浏览器页面属于同一站点的页面的操作,且新添加的页面为激活页面;或,
    对浏览器进行了添加新的与当前浏览器页面属于同一站点的页面的操作;或,
    对浏览器进行了添加新的与当前浏览器页面属于同一站点的页面的操作,且与当前浏览器页面的操作的页面属于同一站点的页面中存在激活页面。
  10. 如权利要求9所述设备,其特征在于,所述处理模块,具体用于:
    解析接收的所述服务器返回的响应信息;
    根据解析得到的注册信息确定所述响应信息对应的浏览器页面;
    当对浏览器进行了关闭当前浏览器页面的操作时,不将所述响应信息发送到进行了关闭当前浏览器页面的操作的页面上;
    当对浏览器进行了关闭当前浏览器页面的操作,并对浏览器进行了添加新的与关闭当前浏览器页面属于同一站点的页面的操作时,将所述响应信息发送到新添加的页面上;
    当对浏览器进行了关闭当前浏览器页面的操作,并对浏览器进行了添加新的与关闭的当前浏览器页面属于同一站点的页面的操作,且新添加的页面为激活页面,将所述响应信息处理为醒目的响应信息,并将处理后的所述响应信息发送到新添加的页面上;
    当对浏览器进行了添加新的与当前浏览器页面属于同一站点的页面的操作时,将所 述响应信息发送到与当前浏览器页面属于同一站点的所有页面上;
    当对浏览器进行了添加新的与当前浏览器页面属于同一站点的页面的操作,且与当前浏览器页面属于同一站点的页面中存在激活页面时,将所述响应信息发送到与当前浏览器页面属于同一站点的所有页面上,并对发送到激活页面的响应信息做醒目处理。
PCT/CN2016/084441 2015-06-09 2016-06-02 一种通知信息的管理方法和设备 WO2016197851A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510312914.6 2015-06-09
CN201510312914.6A CN106295309A (zh) 2015-06-09 2015-06-09 一种通知信息的管理方法和设备

Publications (1)

Publication Number Publication Date
WO2016197851A1 true WO2016197851A1 (zh) 2016-12-15

Family

ID=57502951

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/084441 WO2016197851A1 (zh) 2015-06-09 2016-06-02 一种通知信息的管理方法和设备

Country Status (2)

Country Link
CN (1) CN106295309A (zh)
WO (1) WO2016197851A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107808010A (zh) * 2017-11-17 2018-03-16 北京锐安科技有限公司 一种弹窗页面生成方法、装置、浏览器及存储介质
CN109167830B (zh) * 2018-08-24 2021-08-10 北京国电智深控制技术有限公司 一种监控数据的获取方法和装置
CN114553949A (zh) * 2022-02-15 2022-05-27 北京京东乾石科技有限公司 一种页面消息的推送方法和装置

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095737A (zh) * 2011-10-27 2013-05-08 阿里巴巴集团控股有限公司 一种网络浏览信息的处理方法和装置
US8626865B1 (en) * 2010-06-07 2014-01-07 Google Inc. Shared worker application
CN103532824A (zh) * 2012-07-06 2014-01-22 阿里巴巴集团控股有限公司 即时通讯消息通知的方法、浏览器及服务器
CN103678644A (zh) * 2013-12-20 2014-03-26 北京奇虎科技有限公司 一种在浏览器中显示日程信息的方法与装置
US20140129860A1 (en) * 2012-11-06 2014-05-08 Nokia Corporation Method and apparatus for enabling mobile device power management using a shared worker
CN104144199A (zh) * 2013-09-30 2014-11-12 腾讯科技(深圳)有限公司 一种信息处理方法、装置及***
CN104202734A (zh) * 2014-09-23 2014-12-10 酷派软件技术(深圳)有限公司 通知处理方法、通知处理装置和终端

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902774A (zh) * 2012-09-28 2013-01-30 用友软件股份有限公司 页面展现***和页面展现方法
CN104601433B (zh) * 2013-10-30 2019-02-01 腾讯科技(深圳)有限公司 应用信息窗口展示方法、客户端、服务器及***

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8626865B1 (en) * 2010-06-07 2014-01-07 Google Inc. Shared worker application
CN103095737A (zh) * 2011-10-27 2013-05-08 阿里巴巴集团控股有限公司 一种网络浏览信息的处理方法和装置
CN103532824A (zh) * 2012-07-06 2014-01-22 阿里巴巴集团控股有限公司 即时通讯消息通知的方法、浏览器及服务器
US20140129860A1 (en) * 2012-11-06 2014-05-08 Nokia Corporation Method and apparatus for enabling mobile device power management using a shared worker
CN104144199A (zh) * 2013-09-30 2014-11-12 腾讯科技(深圳)有限公司 一种信息处理方法、装置及***
CN103678644A (zh) * 2013-12-20 2014-03-26 北京奇虎科技有限公司 一种在浏览器中显示日程信息的方法与装置
CN104202734A (zh) * 2014-09-23 2014-12-10 酷派软件技术(深圳)有限公司 通知处理方法、通知处理装置和终端

Also Published As

Publication number Publication date
CN106295309A (zh) 2017-01-04

Similar Documents

Publication Publication Date Title
US10805380B2 (en) Data transmission method and device
US10795629B2 (en) Text and custom format information processing method, client, server, and computer-readable storage medium
US10834031B2 (en) Information exchange method, client, and apparatus
CN109547511B (zh) 一种web消息实时推送方法、服务器、客户端及***
US11558322B2 (en) Communication management system
CN103970760B (zh) 一种网页请求处理方法及装置
US20180131779A1 (en) Recording And Triggering Web And Native Mobile Application Events With Mapped Data Fields
CN103124263A (zh) 一种广告推送***及广告推送设备、广告服务器
CN108124007A (zh) 消息数据实时传输的方法与装置
CN109151056B (zh) 基于Canal的消息推送方法和***
CN104426985A (zh) 显示网页的方法、装置及***
CN106357697A (zh) 一种基于WebSocket属性同步的多终端页面同步方法
US10102239B2 (en) Application event bridge
CN107766509A (zh) 一种网页静态备份的方法和装置
WO2016197851A1 (zh) 一种通知信息的管理方法和设备
CN105634929A (zh) 一种基于web网页的即时通信方法及装置
CN115951923B (zh) 订阅事件管理方法、显示***、设备和存储介质
WO2014026542A1 (zh) 即时通信应用的实现方法及***、与设备
TWI628941B (zh) 藉由登入頁面普查之網路釣魚偵測
CN113364664A (zh) 一种即时通讯方法和装置
CN113965385B (zh) 一种异常网站的监控处理方法、装置、设备和介质
CN115632815A (zh) 一种数据的更新方法、装置、电子设备及存储介质
CN107888683A (zh) 一种客户端交互方法及装置
CN106815006B (zh) 页面调用方法、装置及页面管理服务器
CN107704491B (zh) 消息处理方法和装置

Legal Events

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

Ref document number: 16806749

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16806749

Country of ref document: EP

Kind code of ref document: A1