简体   繁体   English

启动器图标上的Android通知

[英]Android Notification on Launcher Icon

There are some android apps (such as the native email app) that show iPhone like notifications on the launcher icon. 有一些Android应用程序(如本机电子邮件应用程序)在启动器图标上显示类似iPhone的通知。 This is the launcher icon, not the shortcut on the home screen. 这是启动器图标,而不是主屏幕上的快捷方式。

Does anyone know how this is done? 有谁知道这是怎么做的?

I would like to show notifications on the launcher icon as well as in the status bar. 我想在启动器图标和状态栏中显示通知。

I do not find any information how to achieve this. 我没有找到任何有关如何实现这一目标的信息。

Does anyone know how this is done? 有谁知道这是怎么做的?

It is a custom feature of your device's home screen, presumably. 据推测,这是设备主屏幕的自定义功能。 For example, the "native email app" does not "show iPhone like notifications on the launcher icon" on most devices. 例如,“本机电子邮件应用程序”在大多数设备上都不会“在启动器图标上显示类似iPhone的通知”。

I do not know of an API to do this. 我不知道有这样做的API。 Maybe this is a firmware modification of the phone you are using. 也许这是您正在使用的手机的固件修改。 I have never seen Apps that are able to add a badge to their app icon in the launcher. 我从未见过能够在启动器中为其应用图标添加徽章的应用。

On what kind of device have you found this apps? 你在什么样的设备上找到了这个应用程序?

我已经看到了模仿徽章的小部件,并且是标志性的尺寸。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM