`
雨打蕉叶
  • 浏览: 233241 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

Notifications的使用建议

阅读更多

The notification system allows your app to keep the user informed about important events, such as new messages in a chat app or a calendar event.

To create an app that feels streamlined, pleasant, and respectful, it is important to design your notifications carefully. Notifications embody your app's voice, and contribute to your app's personality. Unwanted or unimportant notifications can annoy the user, so use them judiciously.

什么时候显示一个通知?

To create an application that people love, it's important to recognize that the user's attention and focus is a resource that must be protected. To use an analogy that might resonate with software developers, the user is not a method that can be invoked to return a value. The user's focus is a resource more akin to a thread, and creating a notification momentarily blocks the user thread as they process and then dismiss the interruptive notification.

Android's notification system has been designed to quickly inform users of events while they focus on a task, but it is nonetheless still important to be conscientious when deciding to create a notification.

While well behaved apps generally only speak when spoken to, there are some limited cases where an app actually should interrupt the user with an unprompted notification.

Notifications should be used primarily for time sensitive events, and especially if these synchronous events involve other people. For instance, an incoming chat is a real time and synchronous form of communication: there is another user actively waiting on you to respond. Calendar events are another good example of when to use a notification and grab the user's attention, because the event is imminent, and calendar events often involve other people.

 

什么时候不显示通知?

There are however many other cases where notifications should not be used:

  • Don't notify the user of information that is not directed specifically at them, or information that is not truly time sensitive. For instance the asynchronous and undirected updates flowing through a social network do not warrant a real time interruption.

  • Don't create a notification if the relevant new information is currently on screen. Instead, use the UI of the application itself to notify the user of new information directly in context. For instance, a chat application should not create system notifications while the user is actively chatting with another user.

  • Don't interrupt the user for low level technical operations, like saving or syncing information, or updating an application, if it is possible for the system to simply take care of itself without involving the user.

  • Don't interrupt the user to inform them of an error if it is possible for the application to quickly recover from the error on its own without the user taking any action.

  • Don't use notifications for services that the user cannot manually start or stop.

  • Don't create superfluous notifications just to get your brand in front of users. Such notifications will only frustrate and likely alienate your audience. The best way to provide the user with a small amount of updated information and to keep them engaged with your application is to develop a widget that they can choose to place on their home screen.

设计指南


让通知更专业

For notifications of items sent by another user (such as a message or status update), include that person's image.

Remember to include the app icon as a secondary icon in the notification, so that the user can still identify which app posted it.

导航到正确的地方

When the user touches a notification, be open your app to the place where the user can consume and act upon the data referenced in the notification. In most cases this will be the detail view of a single data item (e.g. a message), but it might also be a summary view if the notification is stacked (see Stacked notifications below) and references multiple items. If in any of those cases the user is taken to a hierarchy level below your app's top-level, insert navigation into your app's back stack to allow them to navigate to your app's top level using the system back key. For more information, see the chapter on System-to-app navigation in the Navigation design pattern.

对时间敏感事件添加时间戳

By default, standard Android notifications include a timestamp in the upper right corner. Consider whether the timestamp is valuable in the context of your notification. If the timestamp is not valuable, consider if the event is important enough to warrant grabbing the user's attention with a notification. If the notification is important enough, decide if you would like to opt out of displaying the timestamp.

Include a timestamp if the user likely needs to know how long ago the notification occurred. Good candidates for timestamps include communication notifications (email, messaging, chat, voicemail) where the user may need the timestamp information to understand the context of a message or to tailor a response.

堆叠您的通知

If your app creates a notification while another of the same type is still pending, avoid creating an altogether new notification object. Instead, stack the notification.

A stacked notification builds a summary description and allows the user to understand how many notifications of a particular kind are pending.

Don't:

Do:

If you keep the summary and detail information on different screens, a stacked notification may need to open to a different place in the app than a single notification.

For example, a single email notification should always open to the content of the email, whereas a stacked email notification opens to the Inbox view.

能够自动清理

Just like calendar events, some notifications alert the user to an event that happens at a particular point in time. After that moment has passed, the notification is likely not important to the user anymore, and you should consider removing it automatically. The same is true for active chat conversations or voicemail messages the user has listened to, users should not have to manually dismiss notifications independently from taking action on them.

 

对通知提供预览

You can provide a short preview of your notification's content by providing optional ticker text. The ticker text is shown for a short amount of time when the notification enters the system and then hides automatically.

用户可以设置是否使用通知

Users should always be in control of notifications. Allow the user to silence the notifications from your app by adding a notification settings item to your application settings.

使用不同的图标

By glancing at the notification area, the user should be able to discern what notification types are currently pending.

Do:

  • Look at the notification icons the Android apps already provide and create notification icons for your app that are sufficiently distinct in appearance.

Don't:

  • Use color to distinguish your app from others. Notification icons should generally be monochrome.

可交互的通知


Notifications are indicated by icons in the notification area and can be accessed by opening the notification drawer.

Inside the drawer, notifications are chronologically sorted with the latest one on top. Touching a notification opens the associated app to detailed content matching the notification. Swiping left or right on a notification removes it from the drawer.

On tablets, the notification area is integrated with the system bar at the bottom of the screen. The notification drawer is opened by touching anywhere inside the notification area.

Ongoing notifications

Ongoing notifications keep users informed about an ongoing process in the background. For example, music players announce the currently playing track in the notification system and continue to do so until the user stops the playback. They can also be used to show the user feedback for longer tasks like downloading a file, or encoding a video. Ongoing notifications cannot be manually removed from the notification drawer.

Dialogs 和toasts是获取反馈,不是通知

Your app should not create a dialog or toast if it is not currently on screen. Dialogs and Toasts should only be displayed as the immediate response to the user taking an action inside of your app. For instance, dialogs can be used to confirm that the user understands the severity of an action, and toasts can echo back that an action has been successfully taken.

 
分享到:
评论

相关推荐

    Notifications:使用Django频道推送通知

    建议创建一个虚拟环境以独立运行此应用程序。 阅读-https: 激活虚拟环境后,只需在Linux的require.txt中安装所有软件包-pip install -r requirements.txt 使用python manage.py runserver命令运行服务器,然后在...

    yii2-notifications:Yii2 模块提供通知管理系统

    要求PHP 7.1以上GMP 字符串卷曲openssl 建议使用 PHP 7.2+ 以获得更好的性能。安装安装此扩展的首选方法是通过 。 要么跑 php composer.phar require --prefer-dist webzop/yii2-notifications "*"或添加 "webzop/...

    solid-client-notifications-js

    实体通知-实体客户端通知@ inrupt / solid-client-notifications是一个用于订阅通知的Javascript库。... 如果需要Internet Explorer的支持,建议将它们通过类的工具传递,并为诸如Map , Set , Promise ,

    Jenkins Build Notifications-crx插件

    如果您使用Jenkins CI进行自动化构建和作业,则需要使用我们的Chrome扩展程序。 每当由于某种原因导致作业失败或失败的作业成功时,您都会在桌面上收到警报(通过Chrome)。 此外,您无需浏览到Jenkins仪表板即可...

    eta-notifications-rails:Ruby on Rails和Twilio的ETA通知实现

    Ruby on Rails和Twilio的ETA通知 使用SMS消息使客户随时了解您的移动员工的状态。 通过工作流中的操作或地理位置更新触发的通知来创建令人愉悦的按需体验。... 如果在Mac上,我建议使用 。 bundle exec

    詹金斯生成通知「Jenkins Build Notifications」-crx插件

    如果您将Jenkins CI用于您的自动构建和作业,那么您将需要使用我们的Chrome扩展。 每当某个作业因任何原因失败或失败的作业成功时,您将在桌面上收到警报(通过Chrome)。另外,您可以轻松查看工作状态,而无需浏览...

    mu4e-notifications

    由于您是 emacs 用户,我建议您将本指南作为 org-mode 文件阅读。 在获取本文档的组织模式版本。假设/依赖亩/亩4e 您可以使用以下命令从自制软件中使用 mu4e 获取 mu: brew install mu --with-emacs 确保将 mu4e ...

    discourse-telegram-notifications:Discourse插件,允许用户通过电报消息接收其通知

    话语电报通知Discourse插件,允许用户通过电报消息接收其通知进行设定按照此处的说明:通过与交谈创建电报(说明将“令牌”粘贴到站点设置“电报访问令牌”中勾选“启用电报通知” 我强烈建议您使用/setjoingroups...

    notifications-of-avabur

    安装TamperMonkey( ),( ) 不建议在FireFox上使用GreaseMonkey,但可以对其进行测试。 安装TamperMonkey之后,请安装Avabur 刷新头像 NoA的设置位于“ Account Management. 特征 的定期通知 可用Harvestron 可...

    fvtt-chat-notifications

    就是说,随时建议功能,如果我发现一些有趣的东西,我可能最终会实现它。 FVTT版本兼容性 我的重点是FVTT的稳定分支。 我既不承诺也不优先考虑FVTT beta或alpha分支的更新! 随时报告一个错误,

    Download Notifications-crx插件

    为此,我建议https://chrome.google.com/webstore/detail/download-notifier/gdekiloeocnfnochnkldpkmllmfiaeke该代码已在GPLV3下获得许可,可在https://github.com/aadfPT/ChromeDownloadNotifications上获得。

    push-notifications-swift:适用于Pusher Beams产品的Swift SDK

    您可以使用以下命令进行安装: $ gem install cocoapods 建议使用CocoaPods 1.3.1或更高版本来构建推杆。 要使用的CocoaPods推梁集成到您的Xcode项目,在您指定它Podfile : source '...

    UnOfficial Fiverr Notifications-crx插件

    节省检查买方请求和关注事项的时间注意:您需要使用Fiverr帐户登录才能接收通知源代码(Github Repo):https://github.com/IliasHad/fiverr_chrome_extension关于此Chrome扩展程序的反馈或建议,您只需填写以下表格...

    BI Datawiz Notifications-crx插件

    语言:English,русский,українськ...•关闭/开放CA的建议;•不完全在商店货架上提供货物。在申请的帮助下,您可以获得机会去个人服务室,并查看商店工作中出现的所有问题时刻,以便他们的快速解决方案。

    BES Nielsen Notifications-crx插件

    语言:English,русский,українська ...•关闭/开放CA的建议;•不完全在商店货架上提供货物。通过应用程序,您可以获得机会前往个人服务室,并查看商店工作中出现的所有问题时刻,以便快速解决它们。

    Gaia Online Notifications-crx插件

    语言:English 从您的Gaia Online获取通知。 只需单击一下,即可查看您的Gaia Online通知! 选项:-您想去哪里? 主页? 到论坛?...-您是否每两分钟更新一次...有什么建议吗? 问题? 通过ext@vanadi.us与开发人员联系。

    桌面通知栈交换「Desktop Notifications for Stack Exchange」-crx插件

    (不建议使用,因为在任何给定时间获取未读计数都需要此令牌)。权限警告:-通知-显示桌面通知-选项卡-单击通知后在新窗口中突出显示还可作为Firefox附加组件使用:...

    下载通知「Download Notifications」-crx插件

    为此我建议https://chrome.google.com/webstore/detail/download-notifier/gdekiloeocnfnochnkldpkmllmfiaeke 该代码是根据GPLV3许可,并可在 https://github.com/aadfPT/ChromeDownloadNotifications 支持语言:...

    firefox-discourse-notifications:Firefox加载项,可帮助显示您登录的Discourse实例的通知

    话语通知 Firefox加载项,可帮助显示您登录的Discourse实例的通知。 安装 从页面下载最新版本。 这是预发行的软件。 请谨慎使用。 你被警告了。 您的浏览器可能会耗尽您的RAM,或者您... 我建议您使用进行开发。 执照

    盖亚在线通知「Gaia Online Notifications」-crx插件

    从Gaia Online获取通知。 只需单击一下,即可查看您的Gaia Online通知! 选项:-您想去哪里? 主页? 到论坛? 直接到zOMG !...有什么建议吗? 问题? 通过ext@vanadi.us与开发人员联系。 支持语言:English

Global site tag (gtag.js) - Google Analytics