The described technology is directed to the field of visual user interface techniques.
The operating systems that control various kinds of electronic devices, such as desktop computers, laptop computers, tablets, wireless phones, and automobile computers, provide various user interface mechanisms for notifying the user of time-specific events. For example, applications developed to execute on the MICROSOFT WINDOWS family of operating systems can perform notifications via user interface constructs, such as toast notifications, live tiles, and badges displayed in connection with live tiles.
In particular, a toast notification is a notification that is pre-emptively rendered irrespective of the user interface state of the operating system, such as in a rectangle that is displayed on top of whatever visual output was being presented at notification time. For example, a toast notification may announce an incoming voice call. A live tile is a visual representation of an application within a start menu, such as in a rectangle, that can be selected by the user to launch the application, and whose contents change in accordance with the status of the application, in some cases using a badge that is displayed on top of or near the tile. For example, a live tile notification by an email application may visually reflect within the application's tile in the start menu a number of unread email messages received when the start menu is displayed.
When an application for the MICROSOFT WINDOWS family of operating systems is developed, logic is included for defining, using the XML markup language, the notifications that the application will deliver via the operating system. These XML notification definitions utilize tags and their attributes specified by an XML schema for notification definitions.
The use of these constructs in their present form is described in more detail, for example, in the following documents, each of which is hereby incorporated by reference in its entirety: Boschin, Andrea, Windows 8.1: Easily send your notifications to tiles, toasts and badges, Silverlight Show, Feb. 4, 2014, available at www.silverlightshow.net/items/Windows-8.1-Easily-send-your-notifications-to-tiles-toasts-and-badges.aspx; Microsoft Dev Center-Windows-Develop-How to-Creating a UI-Working with tiles, badges, and toast—and the subtree it defines, available at http://msdn.microsoft.com/en-us/library/windows/apps/hh761490.aspx; and Microsoft Dev Center-Windows-Develop-How to-User Interface-Tiles, badges and notifications—and the subtree it defines, available at http://msdn.microsoft.com/en-us/library/windows/apps/hh779725.aspx.
The inventors have recognized a number of shortcomings of the conventional notification mechanisms provided by operating systems. The first relates to the design goal of enabling a user to easily associate a notification with the application that produced it. In particular, conventional notification mechanisms tend to literally incorporate in a notification from an application an “official” textual name registered with the operating system for the application, e.g., “Calendar,” and an “official” graphical icon registered for the application with the operating system for the application, e.g., a stylized drawing of a datebook. The inventors have recognized that literally copying these registered attributes of an application into the application's notifications is in some cases not the best use of the notification's capacity to inform the user.
The inventors have also recognized that, as device types having different kinds and levels of notification rendering capabilities continue to proliferate, it is not feasible to expect devices of all types to implement all aspects of notification definitions. For example, it may not be feasible for a device having a very small display to implement a style aspect of text included in a notification definition.
In view of these and other shortcomings, the inventors have conceived and reduced to practice a software and/or hardware facility for notification (“the facility”) that provides enhanced notifications on electronic devices. The facility operates with respect to various types of notifications, including but not limited to those provided via toasts, tiles, and badges. In some examples, the notifications with respect to which the facility operates are said to be “time-based” or “time sensitive,” referring to some relationship that the notifications have to a particular time, such as a present time, a past time, or a future time.
In some examples, the facility provides a mechanism for an application to specify substitution of other text for the application's registered name in a notification presented on behalf of the application. For example, a calendar application may use the facility to specify that a notification presented on behalf of this application contain text identifying the current date in place of the application's name.
In some examples, the facility provides a mechanism for an application to specify substitution of another image for the application's registered icon in a notification presented on behalf of the application. For example, a video telephony application may use the facility to specify that a notification presented on behalf of this application contain an image of a calling person in place of the application's icon.
In some examples, the facility enables an application to specify aspects of a notification that are optional for rendering the notification. These can include, for example, aspects that are common on more traditional devices and difficult or impossible on devices of newer types (e.g., sophisticated text rendering), as well as aspects that are enabled on newer types of devices (e.g., certain audio aspects).
By performing in some or all of these ways, the facility permits applications to present richer and more useful notifications.
In a homogenization stage 210, the facility transforms a notification definition that is received in any of a number of acceptable forms into a common form. Definition 211 is in Extensible Markup Language (“XML”) and is in accordance with a current notification definition schema. Definition 212 also is in XML, however; because definition 212 is expressed in accordance with a predecessor notification definition schema, the facility applies an old template converter 213 to transform it into XML that is in accordance with the current schema. Definition 214 is in JavaScript Object Notation (“JSON”), therefore; the facility applies a JSON converter 215 to transform it into XML that is in accordance with the current schema. Once in XML and in accordance with the current schema, the facility performs markup to object model conversion 216 on the notification definition to transform it into an Extensible Application Markup Language (“XAML”) object 217.
In a notification management stage 220, the facility manages rendering of the notification from its XAML object, and also manages storage and delivery of the rendered notification. In cases where the XAML object includes a reference to a remote image, the facility submits a remote universal resource identifier 223 of the image to an image download manager. The image download manager uses remoteuniversal resource identifier 223 to retrieve and return the image 225. Once the needed remote images are retrieved, the facility submits the following information to a XAML rendering background task 231: the XAML objects, the retrieved remote images, any needed local images, and relevant configuration information. The XAML rendering background task uses this information to generate one or more bitmaps each constituting a version of the rendered notification.
This rendered notification is added to a tile notification queue 227, which is managed by a Tile Notification Manager 226. The Tile Notification Manager manages the queue, such as by adding new notifications to it, expiring notifications from it, and propagating notifications contained by the display components that will present it. For example, a splash start menu UX component 241 on a mobile device 240 and/or a XAML start menu UX component 251 on a desktop computer 250. For a toast notification (not shown), the rendered notification is propagated to, and/or retrieved by, one or more corresponding components for presenting toast notifications. The facility also propagates the rendered notification to an image cache and lifetime manager 228, which causes the rendered notification to be stored persistently in a file system 229.
In some examples, the facility operates in the response to the use of certain markup tags and attributes in the notification definitions generated by an application. In order to override the use of the registered textual name of the application in a notification presented on behalf of the application, a displayName attribute of the <binding> tag is used. For example, assigning values to this attribute in the <binding> tags, as shown in lines 4 and 10 of the notification definition shown below in Table 1, causes the registered name of a calendar application, “Calendar,” to be overwritten with text corresponding to the current date, “Monday 22” for each of two different versions of the notification defined by the notification definition.
Turning to
In some examples, in order to override the display of an application's registered icon as part of a notification presented on behalf of the application, an <image> tag is used in which an “appLogoOverride” value is specified for a placement attribute, and where a value identifying the image with which to override the application's icon is specified for a src attribute. A sample use of this tag occurs in line 4 of the notification definition shown below in Table 2.
In some examples, an application specifies optional aspects of a notification in its definition by the use of “hint-*” attributes on certain markup tags used in the notification's definition. Particular such “hint-*” attributes provided by the facility in some examples are as follows. Those skilled in the art will appreciate that, in various other examples, various other combinations of “hint-* attributes may be used. In some examples, the facility provides a variety of mechanisms for extending the set of “hint-*” attributes usable by an application.
An example of a notification definition that uses “hint-*” attributes to specify an optional aspect of a notification is shown below in Table 7. In particular, the hint-align attribute of the <text> tag on line 4 specifies that the text string continued by this <text> tag is optionally to be centered horizontally.
In step 607, if the tag read in step 602 is an image tag, then the facility continues in step 608, else the facility continues in step 611. In step 608, if the image tag specifies the value “appLogoOverride” for its placement attribute as in line 4 of Table 2, then the facility continues in step 609, else the facility continues in step 610. In step 609, the facility substitutes an image specified by the value of a src attribute for the application's registered icon in the rendered notification as shown, for example, in
In step 611, if the tag read in step 602 contains a hint attribute, then the facility continues in step 612, else the facility performs conventional processing for the tag (not shown) and continues in step 615. In step 612, if the hint attribute contained by the tag is supported on the target platform, then the facility continues in step 613, else the facility continues in step 614. In step 613, the facility processes the tag in accordance with the hint attribute as shown, for example, in
Those skilled in the art will appreciate that the steps shown in
In step 615, if additional tags of the definition remain for processing, then the facility continues in step 602 to process the next tag, else these steps conclude.
In some examples, a method in a computing system for rendering a notification is performed. The method comprises: accessing a representation of a notification definition submitted by an application program, the application program being installed on the computing system and registered with an operating system installed on the computing system; identifying in the notification definition representation a direction that identifying information specified in the application program's registration with the operating system be overridden in rendering a notification based on the notification definition representation; and, in response to the identifying, rendering a notification based on the notification definition representation in which the selected identifying information is overridden.
In some examples, one or more instances of computer-readable media are provided that collectively store a notification definition data structure. The data structure comprises: time-sensitive information to be rendered on behalf of a program; and a direction to, in rendering the time-sensitive information, override certain information identifying the program,
such that, when rendering the time-sensitive information, such rendering can be performed subject to the directed overriding.
In some examples, one or more instances of computer-readable media are provided that collectively have contents configured to cause a computing system to perform a method for rendering a time-sensitive notification. The method comprises: accessing a representation of a notification definition submitted on behalf of an application program; identifying in the notification definition representation, among a plurality of aspects specified for a notification defined by the notification definition representation, an aspect specified to be optional; in response to the identifying, making a determination about whether to give effect to the identified aspect; where it is determined to give effect to the identified aspect, rendering a notification based on the notification definition representation that is in accordance with the identified aspect; and where it is determined to not give effect to the identified aspect, rendering a notification based on the notification definition representation that is not in accordance with the identified aspect.
It will be appreciated by those skilled in the art that the above-described facility may be straightforwardly adapted or extended in various ways. While the foregoing description makes reference to particular examples, the scope of the invention is defined solely by the claims that follow and the elements recited therein.
This application claims the benefit of U.S. Provisional Application No. 62/083,139, filed Nov. 21, 2014, and entitled “ENHANCED NOTIFICATIONS,” which is incorporated herein in its entirety by reference.
Number | Date | Country | |
---|---|---|---|
62083139 | Nov 2014 | US |