WO2017071242A1 - 一种在应用程序窗口禁止通知的方法及装置 - Google Patents

一种在应用程序窗口禁止通知的方法及装置 Download PDF

Info

Publication number
WO2017071242A1
WO2017071242A1 PCT/CN2016/086082 CN2016086082W WO2017071242A1 WO 2017071242 A1 WO2017071242 A1 WO 2017071242A1 CN 2016086082 W CN2016086082 W CN 2016086082W WO 2017071242 A1 WO2017071242 A1 WO 2017071242A1
Authority
WO
WIPO (PCT)
Prior art keywords
notification
new
identifier
information
window
Prior art date
Application number
PCT/CN2016/086082
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 乐视控股(北京)有限公司
Priority to US15/246,539 priority Critical patent/US20170123615A1/en
Publication of WO2017071242A1 publication Critical patent/WO2017071242A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/14Display of multiple viewports
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/545Gui
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2354/00Aspects of interface with display user

Definitions

  • the present invention relates to the field of message notification technologies in the field of communications, and in particular, to a method and apparatus for prohibiting notifications in an application window.
  • the present invention is to overcome the shortcomings of the prior art that the notification message may interfere with the normal use of the application by the user. According to an aspect of the present invention, a method for prohibiting notification in the application window is proposed.
  • the window information includes one or more of the display information, the setting information, and the layout information of the application;
  • the prohibition notification identifier is an identifier set according to the notification type, and is used to prohibit the corresponding type of notification
  • the window information includes the prohibition notification identifier
  • the new notification is prohibited from being displayed according to the prohibition notification identifier, and the new notification is added to the notification list.
  • the method further includes:
  • the window information or the prohibition notification identifier is transmitted to the system layer and saved, and a corresponding notification policy is generated.
  • the method further includes:
  • the new notification is displayed according to the notification type in which the notification message is preferentially displayed in the priority information, and the new notification is added to the notification list.
  • the method when receiving the new notification, the method further includes:
  • the notification type includes one or more of a banner notification, a full screen notification, a ringtone notification, a vibration notification, and a marquee notification.
  • an embodiment of the present invention further provides an apparatus for prohibiting notification in an application window, including:
  • An update module configured to update window information of the application when switching the application window, where the window information includes one or more of display information, setting information, and layout information of the application;
  • the first determining module is configured to determine whether the prohibition notification identifier is included in the window information, and the prohibition notification identifier is an identifier set according to the notification type, and is used to prohibit the notification of the corresponding type;
  • the first processing module is configured to: when the window information includes the prohibition notification identifier, when the new notification is received, prohibiting the display of the new notification according to the prohibition notification identifier, and adding the new notification to the notification list.
  • the device further includes:
  • the sending module is configured to transmit the window information or the prohibition notification identifier to the system layer and save, and generate a corresponding notification policy.
  • the method further includes:
  • the second judging module is configured to determine whether the new notification includes the priority information, and the priority information includes the notification type that preferentially displays the notification message;
  • the second processing module is configured to: when the priority information is included in the new notification, display the new notification according to the notification type that preferentially displays the notification message in the priority information, and add the new notification to the notification list.
  • the device further includes:
  • the third judging module is configured to determine whether the new notification is in the notification list when the new notification is received, and to continue to prohibit the step of displaying the new notification when the new notification is not in the notification list.
  • the notification type includes one or more of a banner notification, a full screen notification, a ringtone notification, a vibration notification, and a marquee notification.
  • a method and apparatus for prohibiting notification in an application window by adding a specific prohibition notification identifier to a window information of an application, adding the identifier to a notification display condition, and displaying by using an existing notification message
  • FIG. 1 is a flowchart of a method for prohibiting notification in an application window according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for prohibiting notification in an application window according to Embodiment 1 of the present invention
  • FIG. 3 is a first structural diagram of an application window prohibition notification device in an embodiment of the present invention.
  • FIG. 4 is a second structural diagram of an application window prohibition notification device in an embodiment of the present invention.
  • FIG. 5 is a third structural diagram of an application window prohibition notification device in an embodiment of the present invention.
  • FIG. 6 is a fourth structural diagram of an application window prohibition notification device in an embodiment of the present invention.
  • FIG. 1 is a flowchart of the method, specifically including steps 101-103:
  • Step 101 When switching the application window, update window information of the application, where the window information includes one or more of display information, setting information, and layout information of the application.
  • the application window is an interface for operating an application, and the operation of the switching application window may be switching from one application to another, or opening a new application, no matter what.
  • the window information of the application may change, and the window information of the application needs to be updated.
  • the window information includes one or more of display information, setting information, and layout information of the application.
  • the display information is information displayed to the interface, and the setting information includes related settings of the application, which may include a prohibition notification identifier, and the layout information is an interface layout of the application.
  • Step 102 Determine whether the prohibition notification identifier is included in the window information, and the prohibition notification identifier is an identifier set according to the notification type, and is used to prohibit the notification of the corresponding type.
  • the prohibition of displaying the notification message is implemented by setting the prohibition notification identifier.
  • the prohibition notification identifier is an identifier set according to the notification type.
  • the notification type specifically includes one or more of a banner notification, a full screen notification, a ringtone notification, a vibration notification, and a marquee notification.
  • the prohibition notification identifier prohibits the banner notification and the ringtone notification, and when the other notification message needs to be displayed, the notification message is prohibited from being displayed in the form of a banner notification and a ringtone notification, and if the notification message is set as a banner display, the current application is Under the window, the notification message is not displayed at all.
  • Step 103 If the window information includes the prohibition notification identifier, when the new notification is received, the new notification is prohibited from being displayed according to the prohibition notification identifier, and the new notification is added to the notification list.
  • the new notification is prohibited from being displayed according to the notification type prohibited by the prohibition notification identifier.
  • the notification flag prohibiting the banner notification and the ringtone notification is prohibited, when the new notification needs to be displayed, the new notification is prohibited from being displayed in the form of a banner notification and a ringtone notification, and if the new notification is set to the banner display, The notification message is not displayed at all under the current application window.
  • the method further includes: transmitting the window information or the prohibition notification identifier to the system layer and saving, and generating a corresponding notification policy. That is, The notification notification ID is transmitted to the system layer for saving, and a notification policy is generated.
  • the notification policy is a policy for displaying a new notification. When a new notification is received, it can be displayed according to the notification policy.
  • a method for prohibiting notification in an application window adds a specific prohibition notification identifier to the window information of the application, adds the identifier to the notification display condition, and uses the existing notification message display policy. Implements the effect of disabling the display of banner notifications in a particular window, preventing users from being constantly disturbed by banner notifications in certain scenes.
  • the method further comprises the steps A1-A2:
  • Step A1 Determine whether the new notification includes priority information, and the priority information includes a notification type that preferentially displays the notification message.
  • Step A2 When the priority information is included in the new notification, the new notification is displayed according to the notification type in which the notification message is preferentially displayed in the priority information, and the new notification is added to the notification list.
  • the new notification may set the priority display of the notification message by using the priority information.
  • the notification type of the priority display notification message may also include one or more of a banner notification, a full screen notification, a ringtone notification, a vibration notification, and a ticker notification, and generally only the priority displayed notification type is set to a full screen notification.
  • the window information of the current application includes a prohibition notification identifier, and the banner notification is prohibited. If the new notification of an application (such as a phone) includes priority information and is displayed in full screen, even the current application The prohibition notification is set, but because the priority of another application (such as a phone) is relatively high, the notification message of the application (such as a phone) is still displayed and displayed in full screen mode.
  • priority messages it prevents the notification messages of important applications from being banned, preventing users from being able to find important notifications in time.
  • the method when receiving the new notification, further includes: determining whether the new notification is in the notification list, and continuing to prohibit the step of displaying the new notification when the new notification is not in the notification list. If the new notification already exists in the notification list, the new notification message is displayed in an existing display manner.
  • the steps 201-208 are included:
  • Step 201 Update the window information of the application when switching the application window.
  • the window information includes one or more of display information, setting information, and layout information of the application.
  • Step 202 Determine whether the prohibition notification identifier is included in the window information. When the prohibition notification identifier is included, proceed to step 203, otherwise display the notification message in a normal manner.
  • the prohibition notification flag is for prohibiting the display of the notification message in the form of a banner.
  • the prohibition notification identifier is not included, the corresponding notification message can be displayed according to the existing notification policy.
  • Step 203 The prohibition notification identifier is transmitted to the system layer and saved, and a corresponding notification policy is generated.
  • the prohibition notification identifier is delivered by using a cross-process call. Specifically, when the window information is updated, updateSystemUiVisibilityLw() is called to obtain the SystemUI related window information. Use AIDL to implement cross-process calls, add updateSystemUIWindowFlag() interface, and pass SystemUI related window information through StatusBarManagerService.
  • Step 204 Receive new notifications of other applications.
  • Step 205 Determine whether the priority information is included in the new notification. If the priority information is included, proceed to step 206, otherwise continue to step 207.
  • Step 206 Display the new notification according to the notification type in which the notification message is preferentially displayed in the priority information, and proceed to step 208.
  • the priority information is displayed as a full screen format, that is, if the new notification includes priority information, the new notification is displayed in full screen.
  • Step 207 Suppress the display of the new notification and proceed to step 208.
  • Step 208 Add a new notification to the notification list.
  • the notification display policy is determined according to the window information and the priority information of the newly added notification as a common determination condition. If the current application window prohibits the pop-up banner notification, the notification is displayed in full screen form (the priority exists) When the information is included, or added to the notification list in the notification bar (when there is no priority information), the user is prevented from missing important notifications.
  • an apparatus for disabling notifications in an application window is provided. See Figure 3, including:
  • the update module 31 is configured to update the window information of the application when the application window is switched, and the window information includes one or more of display information, setting information, and layout information of the application.
  • the first determining module 32 is configured to determine whether the prohibition notification identifier is included in the window information, and the prohibition notification identifier is an identifier set according to the notification type, and is used to prohibit the corresponding type of notification.
  • the first processing module 33 is configured to: when the window information includes the prohibition notification identifier, when the new notification is received, prohibit the display of the new notification according to the prohibition notification identifier, and add the new notification to the notification list.
  • the device further includes:
  • the sending module 34 is configured to transmit the window information or the prohibition notification identifier to the system layer and save, and generate a corresponding notification policy.
  • the device further includes:
  • the second determining module 35 is configured to determine whether the priority information is included in the new notification, and the priority information includes a notification type that preferentially displays the notification message.
  • the second processing module 36 is configured to: when the priority information is included in the new notification, display the new notification according to the notification type that preferentially displays the notification message in the priority information, and add the new notification to the notification list.
  • the device further includes:
  • the third determining module 37 is configured to determine, when the new notification is received, whether the new notification is in the notification list. When the new notification is not in the notification list, the steps to continue to display the new notification are continued.
  • the notification type includes one or more of a banner notification, a full screen notification, a ringtone notification, a vibration notification, and a marquee notification.
  • a method and device for prohibiting notification in an application window provided by an embodiment of the present invention Adding a specific prohibition notification identifier to the window information of the application, adding the identifier to the notification display condition, and using the existing notification message display policy, the effect of prohibiting the display of the banner notification in a specific window is prevented, and the user is prevented from being in a specific scene.
  • priority messages it prevents the notification messages of important applications from being banned, preventing users from being able to find important notifications in time.
  • the present invention can be embodied in a variety of different forms, and the technical solutions of the present invention are illustrated by taking the figures of FIG. 1 to FIG. 6 as an example, which does not mean that the specific examples applied by the present invention can be limited to In a particular process or embodiment structure, one of ordinary skill in the art will appreciate that the specific embodiments provided above are only a few examples of various preferred uses, and any embodiment embodying the claims of the present invention should be in the present invention. Within the scope of the technical solution.

Abstract

一种在应用程序窗口禁止通知的方法及装置。其中,该方法包括:在切换应用程序窗口时,更新应用程序的窗口信息,窗口信息中包括应用程序的显示信息、设置信息和布局信息中的一项或多项(101);判断窗口信息中是否包括禁止通知标识,禁止通知标识为根据通知类型设置的标识,用于禁止相应类型的通知(102);若窗口信息中包括禁止通知标识,则在接收到新增通知时,根据禁止通知标识禁止显示新增通知,并将新增通知加入通知列表中(103)。该方法通过在应用程序的窗口信息中增加特定的禁止通知标识,实现在特定窗口禁止显示横幅通知的效果,防止用户在特定场景中一直被横幅通知所干扰。

Description

一种在应用程序窗口禁止通知的方法及装置 技术领域
本发明涉及通信领域中消息通知技术领域,具体地,涉及一种在应用程序窗口禁止通知的方法及装置。
背景技术
随着智能手机的发展,手机已不单单是打电话的通讯工具,应用市场中的各种应用覆盖了生活中的方方面面,每个人的手机里都装上了各种应用,方面了衣食住行,但各个应用发出的通知和消息经常会打扰到用户,尤其是看视频、玩游戏时应用弹出的横幅通知会干扰到用户。
发明内容
本发明是为了克服现有技术中通知消息会干扰用户正常使用应用程序的缺陷,根据本发明的一个方面,提出一种在应用程序窗口禁止通知的方法。
本发明实施例提供的一种在应用程序窗口禁止通知的方法,包括:
在切换应用程序窗口时,更新应用程序的窗口信息,窗口信息中包括应用程序的显示信息、设置信息和布局信息中的一项或多项;
判断窗口信息中是否包括禁止通知标识,禁止通知标识为根据通知类型设置的标识,用于禁止相应类型的通知;
若窗口信息中包括禁止通知标识,则在接收到新增通知时,根据禁止通知标识禁止显示新增通知,并将新增通知加入通知列表中。
在上述技术方案中,若窗口信息中包括禁止通知标识,该方法还包括:
将窗口信息或禁止通知标识传送至系统层并保存,生成相应的通知策略。
在上述技术方案中,还包括:
判断新增通知中是否包含优先级信息,优先级信息中包括优先显示通 知消息的通知类型;
在新增通知中包含优先级信息时,根据优先级信息中优先显示通知消息的通知类型显示新增通知,并将新增通知加入通知列表中。
在上述技术方案中,在接收到新增通知时,该方法还包括:
判断新增通知是否在通知列表中;在新增通知不在通知列表中时,继续禁止显示新增通知的步骤。
在上述技术方案中,通知类型包括:横幅通知、全屏通知、铃声通知、震动通知和跑马灯通知中的一种或多种。
基于同样的发明构思,本发明实施例还提供一种在应用程序窗口禁止通知的装置,包括:
更新模块,用于在切换应用程序窗口时,更新应用程序的窗口信息,窗口信息中包括应用程序的显示信息、设置信息和布局信息中的一项或多项;
第一判断模块,用于判断窗口信息中是否包括禁止通知标识,禁止通知标识为根据通知类型设置的标识,用于禁止相应类型的通知;
第一处理模块,用于若窗口信息中包括禁止通知标识,则在接收到新增通知时,根据禁止通知标识禁止显示新增通知,并将新增通知加入通知列表中。
在上述技术方案中,若窗口信息中包括禁止通知标识,该装置还包括:
发送模块,用于将窗口信息或禁止通知标识传送至系统层并保存,生成相应的通知策略。
在上述技术方案中,还包括:
第二判断模块,用于判断新增通知中是否包含优先级信息,优先级信息中包括优先显示通知消息的通知类型;
第二处理模块,用于在新增通知中包含优先级信息时,根据优先级信息中优先显示通知消息的通知类型显示新增通知,并将新增通知加入通知列表中。
在上述技术方案中,在该装置还包括:
第三判断模块,用于接收到新增通知时,判断新增通知是否在通知列表中;在新增通知不在通知列表中时,继续禁止显示新增通知的步骤。
在上述技术方案中,通知类型包括:横幅通知、全屏通知、铃声通知、震动通知和跑马灯通知中的一种或多种。
本发明实施例提供的一种在应用程序窗口禁止通知的方法及装置,通过在应用程序的窗口信息中增加特定的禁止通知标识,将该标识增加到通知显示条件中,利用现有通知消息显示策略,实现在特定窗口禁止显示横幅通知的效果,防止用户在特定场景中一直被横幅通知所干扰。通过设置优先权消息,防止禁止重要应用程序的通知消息,避免用户不能及时发现重要通知。
本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在所写的说明书、权利要求书、以及附图中所特别指出的结构来实现和获得。
下面通过附图和实施例,对本发明的技术方案做进一步的详细描述。
附图说明
附图用来提供对本发明的进一步理解,并且构成说明书的一部分,与本发明的实施例一起用于解释本发明,并不构成对本发明的限制。在附图中:
图1为本发明实施例中在应用程序窗口禁止通知的方法流程图;
图2为本发明实施例一中在应用程序窗口禁止通知的方法流程图;
图3为本发明实施例中在应用程序窗口禁止通知装置的第一结构图;
图4为本发明实施例中在应用程序窗口禁止通知装置的第二结构图;
图5为本发明实施例中在应用程序窗口禁止通知装置的第三结构图;
图6为本发明实施例中在应用程序窗口禁止通知装置的第四结构图。
具体实施方式
下面结合附图,对本发明的具体实施方式进行详细描述,但应当理解本发明的保护范围并不受具体实施方式的限制。
根据本发明实施例,提供了一种在应用程序窗口禁止通知的方法,图1为该方法的流程图,具体包括步骤101-103:
步骤101:在切换应用程序窗口时,更新应用程序的窗口信息,窗口信息中包括应用程序的显示信息、设置信息和布局信息中的一项或多项。
本发明实施例中,应用程序窗口为用于操作应用程序的界面,该切换应用程序窗口的操作可以为从一个应用程序切换至另一个应用程序,也可以为打开一个新的应用程序,无论何种切换操作,应用程序的窗口信息均可能发生变化,都需要更新应用程序的窗口信息。窗口信息中包括应用程序的显示信息、设置信息和布局信息中的一项或多项。其中,显示信息为显示至界面的信息,设置信息中包含该应用程序的相关设置,其中可以包含禁止通知标识,布局信息即为应用程序的界面布局。
步骤102:判断窗口信息中是否包括禁止通知标识,禁止通知标识为根据通知类型设置的标识,用于禁止相应类型的通知。
本发明实施例中,通过设置禁止通知标识实现禁止显示通知消息。具体的,该禁止通知标识为根据通知类型设置的标识。通知类型具体包括:横幅通知、全屏通知、铃声通知、震动通知和跑马灯通知中的一种或多种。例如,该禁止通知标识禁止横幅通知和铃声通知,则其他通知消息需要显示时,禁止该通知消息以横幅通知和铃声通知的形式进行显示,若该通知消息设置为横幅显示,则在当前应用程序窗口下,完全不显示该通知消息。
步骤103:若窗口信息中包括禁止通知标识,则在接收到新增通知时,根据禁止通知标识禁止显示新增通知,并将新增通知加入通知列表中。
具体的,根据该禁止通知标识所禁止的通知类型,对该新增通知进行禁止显示。如上所述,若禁止通知标识禁止横幅通知和铃声通知,则在新增通知需要显示时,禁止该新增通知以横幅通知和铃声通知的形式进行显示,若该新增通知设置为横幅显示,则在当前应用程序窗口下,完全不显示该通知消息。
优选的,若窗口信息中包括禁止通知标识,该方法还包括:将窗口信息或禁止通知标识传送至系统层并保存,生成相应的通知策略。即,将该 禁止通知标识传送至系统层进行保存,生成通知策略,该通知策略即为显示新增通知的策略。在接收到新增通知时,即可以根据该通知策略进行相应的显示。
本发明实施例提供的一种在应用程序窗口禁止通知的方法,通过在应用程序的窗口信息中增加特定的禁止通知标识,将该标识增加到通知显示条件中,利用现有通知消息显示策略,实现在特定窗口禁止显示横幅通知的效果,防止用户在特定场景中一直被横幅通知所干扰。
优选的,该方法还包括步骤A1-A2:
步骤A1、判断新增通知中是否包含优先级信息,优先级信息中包括优先显示通知消息的通知类型。
步骤A2、在新增通知中包含优先级信息时,根据优先级信息中优先显示通知消息的通知类型显示新增通知,并将新增通知加入通知列表中。
本发明实施例中,新增通知通过优先级信息可以设置优先显示该通知消息。该优先显示通知消息的通知类型也可以包括横幅通知、全屏通知、铃声通知、震动通知和跑马灯通知中的一种或多种,一般只将该优先显示的通知类型设置为全屏通知。例如,当前应用程序的窗口信息中包含禁止通知标识,且为禁止横幅通知,若某一应用程序(如电话)的新增通知包含优先级信息,且为全屏显示的方式,则即使当前应用程序设置了禁止通知,但由于另一应用程序(如电话)的优先级别比较高,仍然后显示该应用程序(如电话)的通知消息,且以全屏的方式显示。通过设置优先权消息,防止禁止重要应用程序的通知消息,避免用户不能及时发现重要通知。
优选的,在接收到新增通知时,该方法还包括:判断新增通知是否在通知列表中,在新增通知不在通知列表中时,继续禁止显示新增通知的步骤。若该新增通知已经存在通知列表中,则以现有的显示方式显示该新增通知消息。
下面通过一个实施例,详细介绍该方法的流程图。
实施例一
在实施例一中,在接收到新增通知时,判断是否包含优先级信息,之 后再继续相应的操作。具体的,参见图2所示,包括步骤201-208:
步骤201:在切换应用程序窗口时,更新应用程序的窗口信息。
其中,窗口信息中包括应用程序的显示信息、设置信息和布局信息中的一项或多项。
步骤202:判断窗口信息中是否包括禁止通知标识,当包括禁止通知标识时,继续步骤203,否则按照正常方式显示通知消息。
在实施例一中,该禁止通知标识用于禁止以横幅的形式显示通知消息。在不包含禁止通知标识时,即可以按照现有的通知策略显示相应的通知消息。
步骤203:将该禁止通知标识传送至系统层并保存,生成相应的通知策略。
其中,利用跨进程调用,传递该禁止通知标识。具体的,当窗口信息更新时,调用updateSystemUiVisibilityLw()获取SystemUI相关窗口信息。利用AIDL实现跨进程调用,增加updateSystemUIWindowFlag()接口,通过StatusBarManagerService传递SystemUI相关窗口信息。
步骤204:接收其他应用程序的新增通知。
步骤205:判断新增通知中是否包含优先级信息,在包含优先级信息时,继续步骤206,否则继续步骤207。
步骤206:根据优先级信息中优先显示通知消息的通知类型显示新增通知,并继续步骤208。
在实施例一中,以该优先级信息为全屏形式显示为例,即,若该新增通知中包含优先级信息,则全屏显示该新增通知。
步骤207:禁止显示新增通知,并继续步骤208。
步骤208:将新增通知加入通知列表中。
在实施例一中,根据窗口信息和新增通知的优先级信息作为共同判定条件,确定通知显示策略,如果当前应用程序窗口禁止弹出横幅通知,则把该条通知以全屏形式显示(存在优先级信息时),或加入到通知栏的通知列表中(不存在优先级信息时),从而避免用户遗漏重要通知。
以上详细介绍了一种在应用程序窗口禁止通知的方法流程,该方法也可以通过相应的装置实现,下面详细介绍该装置的结构和功能。
根据本发明实施例,提供了一种在应用程序窗口禁止通知的装置。参见图3所示,包括:
更新模块31,用于在切换应用程序窗口时,更新应用程序的窗口信息,窗口信息中包括应用程序的显示信息、设置信息和布局信息中的一项或多项。
第一判断模块32,用于判断窗口信息中是否包括禁止通知标识,禁止通知标识为根据通知类型设置的标识,用于禁止相应类型的通知。
第一处理模块33,用于若窗口信息中包括禁止通知标识,则在接收到新增通知时,根据禁止通知标识禁止显示新增通知,并将新增通知加入通知列表中。
优选的,若窗口信息中包括禁止通知标识,参见图4所示,该装置还包括:
发送模块34,用于将窗口信息或禁止通知标识传送至系统层并保存,生成相应的通知策略。
优选的,参见图5所示,该装置还包括:
第二判断模块35,用于判断新增通知中是否包含优先级信息,优先级信息中包括优先显示通知消息的通知类型。
第二处理模块36,用于在新增通知中包含优先级信息时,根据优先级信息中优先显示通知消息的通知类型显示新增通知,并将新增通知加入通知列表中。
优选的,参见图6所示,该装置还包括:
第三判断模块37,用于在接收到新增通知时,判断新增通知是否在通知列表中。在新增通知不在通知列表中时,继续禁止显示新增通知的步骤。
优选的,通知类型包括:横幅通知、全屏通知、铃声通知、震动通知和跑马灯通知中的一种或多种。
本发明实施例提供的一种在应用程序窗口禁止通知的方法及装置,通 过在应用程序的窗口信息中增加特定的禁止通知标识,将该标识增加到通知显示条件中,利用现有通知消息显示策略,实现在特定窗口禁止显示横幅通知的效果,防止用户在特定场景中一直被横幅通知所干扰。通过设置优先权消息,防止禁止重要应用程序的通知消息,避免用户不能及时发现重要通知。
本发明能有多种不同形式的具体实施方式,上面以图1-图6为例结合附图对本发明的技术方案作举例说明,这并不意味着本发明所应用的具体实例只能局限在特定的流程或实施例结构中,本领域的普通技术人员应当了解,上文所提供的具体实施方案只是多种优选用法中的一些示例,任何体现本发明权利要求的实施方式均应在本发明技术方案所要求保护的范围之内。
最后应说明的是:以上所述仅为本发明的优选实施例而已,并不用于限制本发明,尽管参照前述实施例对本发明进行了详细的说明,对于本领域的技术人员来说,其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (10)

  1. 一种在应用程序窗口禁止通知的方法,其特征在于,包括:
    在切换应用程序窗口时,更新应用程序的窗口信息,所述窗口信息中包括所述应用程序的显示信息、设置信息和布局信息中的一项或多项;
    判断所述窗口信息中是否包括禁止通知标识,所述禁止通知标识为根据通知类型设置的标识,用于禁止相应类型的通知;
    若所述窗口信息中包括禁止通知标识,则在接收到新增通知时,根据所述禁止通知标识禁止显示所述新增通知,并将所述新增通知加入通知列表中。
  2. 根据权利要求1所述的方法,其特征在于,若所述窗口信息中包括禁止通知标识,该方法还包括:
    将所述窗口信息或所述禁止通知标识传送至系统层并保存,生成相应的通知策略。
  3. 根据权利要求1或2所述的方法,其特征在于,还包括:
    判断所述新增通知中是否包含优先级信息,所述优先级信息中包括优先显示通知消息的通知类型;
    在所述新增通知中包含优先级信息时,根据所述优先级信息中优先显示通知消息的通知类型显示所述新增通知,并将所述新增通知加入通知列表中。
  4. 根据权利要求3所述的方法,其特征在于,在接收到新增通知时,该方法还包括:
    判断所述新增通知是否在通知列表中;在所述新增通知不在通知列表中时,继续禁止显示所述新增通知的步骤。
  5. 根据权利要求1或2所述的方法,其特征在于,所述通知类型包括:横幅通知、全屏通知、铃声通知、震动通知和跑马灯通知中的一种或多种。
  6. 一种在应用程序窗口禁止通知的装置,其特征在于,包括:
    更新模块,用于在切换应用程序窗口时,更新应用程序的窗口信息,所述窗口信息中包括所述应用程序的显示信息、设置信息和布局信息中的一项或多项;
    第一判断模块,用于判断所述窗口信息中是否包括禁止通知标识,所述禁止通知标识为根据通知类型设置的标识,用于禁止相应类型的通知;
    第一处理模块,用于若所述窗口信息中包括禁止通知标识,则在接收到新增通知时,根据所述禁止通知标识禁止显示所述新增通知,并将所述新增通知加入通知列表中。
  7. 根据权利要求6所述的装置,其特征在于,若所述窗口信息中包括禁止通知标识,该装置还包括:
    发送模块,用于将所述窗口信息或所述禁止通知标识传送至系统层并保存,生成相应的通知策略。
  8. 根据权利要求6或7所述的装置,其特征在于,还包括:
    第二判断模块,用于判断所述新增通知中是否包含优先级信息,所述优先级信息中包括优先显示通知消息的通知类型;
    第二处理模块,用于在所述新增通知中包含优先级信息时,根据所述优先级信息中优先显示通知消息的通知类型显示所述新增通知,并将所述新增通知加入通知列表中。
  9. 根据权利要求8所述的装置,其特征在于,在该装置还包括:
    第三判断模块,用于接收到新增通知时,判断所述新增通知是否在通知列表中;在所述新增通知不在通知列表中时,继续禁止显示所述新增通知的步骤。
  10. 根据权利要求6或7所述的装置,其特征在于,所述通知类型包括:横幅通知、全屏通知、铃声通知、震动通知和跑马灯通知中的一种或多种。
PCT/CN2016/086082 2015-10-30 2016-06-16 一种在应用程序窗口禁止通知的方法及装置 WO2017071242A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/246,539 US20170123615A1 (en) 2015-10-30 2016-08-25 Method and electronic device for prohibiting notifications in application window

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510732898.6A CN105912309A (zh) 2015-10-30 2015-10-30 一种在应用程序窗口禁止通知的方法及装置
CN2015107328986 2015-10-30

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/246,539 Continuation US20170123615A1 (en) 2015-10-30 2016-08-25 Method and electronic device for prohibiting notifications in application window

Publications (1)

Publication Number Publication Date
WO2017071242A1 true WO2017071242A1 (zh) 2017-05-04

Family

ID=56744008

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/086082 WO2017071242A1 (zh) 2015-10-30 2016-06-16 一种在应用程序窗口禁止通知的方法及装置

Country Status (3)

Country Link
US (1) US20170123615A1 (zh)
CN (1) CN105912309A (zh)
WO (1) WO2017071242A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11681415B2 (en) * 2018-10-31 2023-06-20 Apple Inc. Near-viewing notification techniques
CN110045898A (zh) * 2019-03-29 2019-07-23 东莞市步步高通信软件有限公司 一种显示方法及终端设备
CN113312263B (zh) * 2021-06-07 2022-06-21 维沃移动通信(杭州)有限公司 异常监测方法和装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1499354A (zh) * 2002-11-11 2004-05-26 �ձ�������ʽ���� 多窗口显示设备以及多窗口管理方法
CN101620529A (zh) * 2008-07-03 2010-01-06 联想(北京)有限公司 拦截弹出窗口的方法和系统
US20100194764A1 (en) * 2009-01-30 2010-08-05 Canon Kabushiki Kaisha Information processing apparatus and information processing method
CN102965890A (zh) * 2012-11-21 2013-03-13 包宏基 一种折叠型晾衣架折叠锁扣结构

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5128981A (en) * 1989-05-24 1992-07-07 Hitachi, Ltd. Radio communication system and a portable wireless terminal
US8041701B2 (en) * 2004-05-04 2011-10-18 DG FastChannel, Inc Enhanced graphical interfaces for displaying visual data
US7933959B2 (en) * 2005-02-25 2011-04-26 Microsoft Corporation Notification breakthrough status and profile
WO2007115224A2 (en) * 2006-03-30 2007-10-11 Sri International Method and apparatus for annotating media streams
JP4992408B2 (ja) * 2006-12-19 2012-08-08 富士通株式会社 ジョブ割当プログラム、方法及び装置
CN101661367A (zh) * 2008-08-25 2010-03-03 扬智科技股份有限公司 菜单快捷方式的生成方法及使用者接口装置
US20110320120A1 (en) * 2010-06-23 2011-12-29 Bart Tielens Method of operating a navigation system to block unwanted advertisements
CN102968590B (zh) * 2012-10-23 2015-08-05 北京奇虎科技有限公司 弹窗抑制方法和系统
US9172787B2 (en) * 2013-04-11 2015-10-27 Alexander B. Kemmler Cellular telephone docking device and silencing method
JP6192126B2 (ja) * 2015-04-16 2017-09-06 トヨタ自動車株式会社 着信通知制御システム
US20160373814A1 (en) * 2015-06-19 2016-12-22 Autodesk, Inc. Real-time content filtering and replacement

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1499354A (zh) * 2002-11-11 2004-05-26 �ձ�������ʽ���� 多窗口显示设备以及多窗口管理方法
CN101620529A (zh) * 2008-07-03 2010-01-06 联想(北京)有限公司 拦截弹出窗口的方法和系统
US20100194764A1 (en) * 2009-01-30 2010-08-05 Canon Kabushiki Kaisha Information processing apparatus and information processing method
CN102965890A (zh) * 2012-11-21 2013-03-13 包宏基 一种折叠型晾衣架折叠锁扣结构

Also Published As

Publication number Publication date
CN105912309A (zh) 2016-08-31
US20170123615A1 (en) 2017-05-04

Similar Documents

Publication Publication Date Title
US9973729B2 (en) Display and service adjustments to enable multi-tasking during a video call
US9749282B2 (en) Electronic device and methods of updating and managing application status information in the electronic device
CA2851549C (en) Method and system for automatically deleting instant messaging information
US20130132573A1 (en) Delivery Of A Communication Event
US20080200220A1 (en) Methods and devices for limiting battery power consumption in a wireless communication device
US11579946B2 (en) Method for managing multiple operating systems in a terminal
WO2016029706A1 (zh) 终端的业务处理方法及装置
CN105979067B (zh) 控制方法和电子设备
US20140325385A1 (en) Methods and instant messaging client devices for performing im using menu option
US9723121B2 (en) Multiple devices ringing coordination
WO2017071242A1 (zh) 一种在应用程序窗口禁止通知的方法及装置
CN106792892B (zh) 应用程序的访问控制方法和装置
CN107911831B (zh) 提醒用户更换路由器的方法、装置、设备和存储介质
US20180213027A1 (en) Receiving a communication event
WO2022247781A1 (zh) 通话处理方法、通话处理装置、电子设备及介质
CN104333666A (zh) 处理同时相互呼叫的方法及设备
US20200213899A1 (en) Network connection management method, device and system
US9716796B2 (en) Managing communication events
CN108401511B (zh) 保护用户设备的方法、装置、用户设备及基站
US20230371088A1 (en) Communication establishment method and apparatus and storage medium
US20100015959A1 (en) Call graph processing system and method
CN106060104B (zh) 应用管理方法及装置
JP6491892B2 (ja) 携帯端末
US11240346B2 (en) Method, device, and system for communicating a changeability attribute
US20150177943A1 (en) User terminal and control method thereof

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: 16858685

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: 16858685

Country of ref document: EP

Kind code of ref document: A1