# Android app notifications via red number icon on home screen

**URL:** https://meta.discourse.org/t/android-app-notifications-via-red-number-icon-on-home-screen/54223
**Category:** Feature
**Created:** [December 14, 2016, 7:06am UTC](https://meta.discourse.org/t/android-app-notifications-via-red-number-icon-on-home-screen/54223 "2016-12-14T07:06:46Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![edanto](https://avatars.discourse-cdn.com/v4/letter/e/8e8cbc/32.png) [@edanto](https://meta.discourse.org/u/edanto)
#### Post date: [December 14, 2016, 7:06am UTC](https://meta.discourse.org/t/android-app-notifications-via-red-number-icon-on-home-screen/54223/1 "2016-12-14T07:06:46Z")

</div>

I’ve tested both the Android and iOS apps with our self-hosted discourse; and I don’t see the icon on the home screen change to include a number for notifications (mock-up below)

 ![](https://global.discourse-cdn.com/meta/original/3X/a/b/abd9c0b5ab5a53046fb3018d001ba0d3a2bbb551.jpg)

I see that push-notifications are a feature only available to Discourse-hosted sites (and I understand why, no issues).

Also, as far as I can tell, the number on the icon is a push notification (quote from google _On Android devices, when a device receives a push notification, your application’s icon and a message appear in the status bar._)

I also have **this forum** connected in the Android app; which I assume is Discourse-hosted, and there is no number shown on the icon to indicate alerts. When I click into the app I see some ‘new’ and ‘unread’ shown for this forum, but my current status on the forum is that there are no alerts.

 ![](https://global.discourse-cdn.com/meta/original/3X/3/c/3cc44a6ed5cad96d1be7b2d7cede9e8a6a0c36bf.jpg)

 ![](https://global.discourse-cdn.com/meta/original/3X/e/5/e55119031019d76aa01867567e94354f333b13bb.png)

I think that when someone replies to this post, that the Discourse app icon on my home screen will change to have a red number 1; can someone please reply to confirm?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [December 14, 2016, 7:21am UTC](https://meta.discourse.org/t/android-app-notifications-via-red-number-icon-on-home-screen/54223/2 "2016-12-14T07:21:10Z")

</div>

> [@edanto](#):
>
> I think that when someone replies to this post, that the Discourse app icon on my home screen will change to have a red number 1; can someone please reply to confirm?

sort of, it will turn to 1 next time you open the app or a background fetch happens.

“background fetch” is a feature apple have that has non-deterministic behavior. It may happen once every 30 minutes, it may happen once a day.

---

<div class="post-metadata">

### Author: ![edanto](https://avatars.discourse-cdn.com/v4/letter/e/8e8cbc/32.png) [@edanto](https://meta.discourse.org/u/edanto)
#### Post date: [December 14, 2016, 7:23am UTC](https://meta.discourse.org/t/android-app-notifications-via-red-number-icon-on-home-screen/54223/3 "2016-12-14T07:23:50Z")

</div>

Feck, I went and read this reply on the desktop browser and now the notification has cleared! I did check the **Android** icon before that and there was no notification.

In contrast; when someone tags me on Facebook, the app icon instantly shows a number.

Is there a way to achieve the instant app icon change?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [December 14, 2016, 7:30am UTC](https://meta.discourse.org/t/android-app-notifications-via-red-number-icon-on-home-screen/54223/4 "2016-12-14T07:30:21Z")

</div>

> [@edanto](#):
>
> In contrast; when someone tags me on Facebook, the app icon instantly shows a number.
> 
> Is there a way to achieve the instant app icon change?

Yes, this is technically doable, but would require some additional push notification handling. I do want to make it happen.

Basically we would change our push notifications to be “hidden from users” and then handle them in the app re-publishing to users.

---

<div class="post-metadata">

### Author: ![edanto](https://avatars.discourse-cdn.com/v4/letter/e/8e8cbc/32.png) [@edanto](https://meta.discourse.org/u/edanto)
#### Post date: [December 15, 2016, 11:16pm UTC](https://meta.discourse.org/t/android-app-notifications-via-red-number-icon-on-home-screen/54223/5 "2016-12-15T23:16:39Z")

</div>

Thanks for the explanation. I think it would enhance the app to have it; phone users are in the habit of reacting to icons with highlighted red numbers!

Commercially, I can see a value in Discourse keeping push notifications as a premium feature that comes with Discourse hosting; that might help to secure the project long term’s future.

---

<div class="post-metadata">

### Author: ![edanto](https://avatars.discourse-cdn.com/v4/letter/e/8e8cbc/32.png) [@edanto](https://meta.discourse.org/u/edanto)
#### Post date: [January 11, 2017, 9:10am UTC](https://meta.discourse.org/t/android-app-notifications-via-red-number-icon-on-home-screen/54223/6 "2017-01-11T09:10:50Z")

</div>

Could someone make a test reply to this thread please?

It’s a test to see if the Discourse app icon on Android gets a red number to indicate a new notification. I’ve seen one part of the push notification (text in the system tray), but I’ve never seen the icon with a red number as per mockup above.

I think I just need to wait a while longer after someone replies and that’s the reason for asking someone to make a test reply.

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [January 11, 2017, 9:15am UTC](https://meta.discourse.org/t/android-app-notifications-via-red-number-icon-on-home-screen/54223/7 "2017-01-11T09:15:35Z")

</div>

> [@edanto](#):
>
> Could someone make a test reply to this thread please?

Sure! Here is your test reply.  
(For more extensive testing, you might want to use [https://try.discourse.org/](https://try.discourse.org/) 🙂)

---

<div class="post-metadata">

### Author: ![edanto](https://avatars.discourse-cdn.com/v4/letter/e/8e8cbc/32.png) [@edanto](https://meta.discourse.org/u/edanto)
#### Post date: [January 11, 2017, 11:11am UTC](https://meta.discourse.org/t/android-app-notifications-via-red-number-icon-on-home-screen/54223/8 "2017-01-11T11:11:39Z")

</div>

Thanks. Result is that there is NOT a red number on the Discourse icon (Android) after 1h of waiting (may be different on ios as per post above)

The Android system tray (not sure of its correct name) push notification worked fine.

I’ll have a look at try; wasn’t aware it existed. I do have a self-hosted instance but obviously the push notification can’t be tested on my self-hosted.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [January 11, 2017, 2:46pm UTC](https://meta.discourse.org/t/android-app-notifications-via-red-number-icon-on-home-screen/54223/9 "2017-01-11T14:46:43Z")

</div>

> [@edanto](#):
>
> Thanks. Result is that there is NOT a red number on the Discourse icon (Android) after 1h of waiting (may be different on ios as per post above)

There is no red number on pure Android. Google never implemented it.

> [@edanto](#):
>
> The Android system tray (not sure of its correct name) push notification worked fine.

That’s exactly the behavior of push notifications on Android.

---

<div class="post-metadata">

### Author: ![edanto](https://avatars.discourse-cdn.com/v4/letter/e/8e8cbc/32.png) [@edanto](https://meta.discourse.org/u/edanto)
#### Post date: [January 11, 2017, 3:10pm UTC](https://meta.discourse.org/t/android-app-notifications-via-red-number-icon-on-home-screen/54223/10 "2017-01-11T15:10:32Z")

</div>

But other Android apps (Whatsapp; Facebook; Slack) do show a red circle & number on the app icon for notifications.

It’s a small thing but I would have thought it’s a big deal for engaging non-techies.

I’m expecting our forum members to be non technical, mobile users that want to engage mainly by app. I want to notify them as soon as possible and as obviously as possible (red circle) to foster prompt discussion.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [January 11, 2017, 3:14pm UTC](https://meta.discourse.org/t/android-app-notifications-via-red-number-icon-on-home-screen/54223/11 "2017-01-11T15:14:51Z")

</div>

> [@edanto](#):
>
> But other Android apps (Whatsapp; Facebook; Slack) do show a red circle & number on the app icon for notifications.
> 
> It’s a small thing but I would have thought it’s a big deal for engaging non-techies.
> 
> I’m expecting our forum members to be non technical, mobile users that want to engage mainly by app. I want to notify them as soon as possible and as obviously as possible (red circle) to foster prompt discussion.

Whatsapp on my Nexus 6P (Android 7.1.1) doesn’t show with the default launcher a red circle & number on the app icon for notifications.

Neither with Nova Launcher.

---

<div class="post-metadata">

### Author: ![edanto](https://avatars.discourse-cdn.com/v4/letter/e/8e8cbc/32.png) [@edanto](https://meta.discourse.org/u/edanto)
#### Post date: [January 11, 2017, 5:07pm UTC](https://meta.discourse.org/t/android-app-notifications-via-red-number-icon-on-home-screen/54223/12 "2017-01-11T17:07:22Z")

</div>

I don’t know what a launcher is; but on my generic Samsung S4 with Samsung android, Facebook and Whatsapp do show a red circle. Just to ensure we’re talking about the same thing, I’ll add a screenshot.

 ![](https://global.discourse-cdn.com/meta/original/3X/5/f/5f9d0586c6f365f401bd7f6e2ed41fd7c6e67b0c.png)

Ideally (to get approval to purchase Discourse hosting); we’d want that red circle notification for new events.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [January 11, 2017, 5:17pm UTC](https://meta.discourse.org/t/android-app-notifications-via-red-number-icon-on-home-screen/54223/13 "2017-01-11T17:17:24Z")

</div>

Oh it’s a Samsung feature. Long time I have used one of those.

Looks like there is a lib to enable it:

[https://github.com/leolin310148/ShortcutBadger](https://github.com/leolin310148/ShortcutBadger)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [January 11, 2017, 7:49pm UTC](https://meta.discourse.org/t/android-app-notifications-via-red-number-icon-on-home-screen/54223/14 "2017-01-11T19:49:20Z")

</div>

This is not an Android feature, sorry.

---

<div class="post-metadata">

### Author: ![edanto](https://avatars.discourse-cdn.com/v4/letter/e/8e8cbc/32.png) [@edanto](https://meta.discourse.org/u/edanto)
#### Post date: [January 12, 2017, 5:05pm UTC](https://meta.discourse.org/t/android-app-notifications-via-red-number-icon-on-home-screen/54223/15 "2017-01-12T17:05:08Z")

</div>

Fair enough. Thanks all; I’ve learnt a lot on this thread. (not least that if I leave the shallow waters of Samsung I’ll lose my little red circles. First world problems! )
