# Android notifications not showing in tray after API 26 upgrade

**URL:** <https://forums.fusetools.com/t/android-notifications-not-showing-in-tray-after-api-26-upgrade/7476>\
**Category:** How-to Discussions\
**Created:** [October 26, 2018, 9:08am UTC](https://forums.fusetools.com/t/android-notifications-not-showing-in-tray-after-api-26-upgrade/7476 "2018-10-26T09:08:27Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matti\_Tihverainen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/matti_tihverainen/32/684_2.png) [@Matti\_Tihverainen](https://forums.fusetools.com/u/Matti_Tihverainen)\
**Post date:** [October 26, 2018, 9:08am UTC](https://forums.fusetools.com/t/android-notifications-not-showing-in-tray-after-api-26-upgrade/7476/1 "2018-10-26T09:08:27Z")

</div>

Hello! I compiled my app for Android with API 27 and noticed that notifications are not coming to the tray anymore. API’s older than that work ok. The payload from the notification comes to the app, so the notification itself works, but doesn’t show up in the tray. I then read this from [android.com](http://android.com): “Starting in Android 8.0 (API level 26), all notifications must be assigned to a channel or it will not appear.”

How can I assign a channel in the payload/app to make the notification appear in the tray?

---

<div class="post-metadata">

**Author:** ![Matti\_Tihverainen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/matti_tihverainen/32/684_2.png) [@Matti\_Tihverainen](https://forums.fusetools.com/u/Matti_Tihverainen)\
**Post date:** [October 26, 2018, 12:40pm UTC](https://forums.fusetools.com/t/android-notifications-not-showing-in-tray-after-api-26-upgrade/7476/2 "2018-10-26T12:40:06Z")

</div>

In Impl.uno I added (before notificationManager.notify):

```auto
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {

	String channelId = "app_channel_id";
	CharSequence channelName = "app_channel_name";
	int importance = android.app.NotificationManager.IMPORTANCE_DEFAULT;
	android.app.NotificationChannel notificationChannel = new android.app.NotificationChannel(channelId, channelName, importance);
	notificationManager.createNotificationChannel(notificationChannel);

}

```

But still the notification doesn’t appear in the tray. Any ideas?

---

<div class="post-metadata">

**Author:** ![aeq](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/aeq/32/129_2.png) [@aeq](https://forums.fusetools.com/u/aeq)\
**Post date:** [November 16, 2018, 11:34am UTC](https://forums.fusetools.com/t/android-notifications-not-showing-in-tray-after-api-26-upgrade/7476/3 "2018-11-16T11:34:03Z")

</div>

try with IMPORTANCE\_HIGH, by the way here’s the FCM update (Fuse 1.10): [https://github.com/fuse-open/fuselibs/pull/1220](https://github.com/fuse-open/fuselibs/pull/1220)

---

<div class="post-metadata">

**Author:** ![zoran.gorgioski](https://avatars.discourse-cdn.com/v4/letter/z/50afbb/32.png) [@zoran.gorgioski](https://forums.fusetools.com/u/zoran.gorgioski)\
**Post date:** [February 4, 2019, 8:50am UTC](https://forums.fusetools.com/t/android-notifications-not-showing-in-tray-after-api-26-upgrade/7476/4 "2019-02-04T08:50:39Z")

</div>

@aeq What changes need to be made for the notifications to be shown in Android 8.0 (API level 26) and above ? Just taking last version of fuselibs or something more ?  
I read that notification channel need to to be created for Android 8.0 (API level 26) and above… How to create notification channel in fusetools for my app ?

---

<div class="post-metadata">

**Author:** ![aeq](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/aeq/32/129_2.png) [@aeq](https://forums.fusetools.com/u/aeq)\
**Post date:** [February 4, 2019, 9:19am UTC](https://forums.fusetools.com/t/android-notifications-not-showing-in-tray-after-api-26-upgrade/7476/5 "2019-02-04T09:19:23Z")

</div>

If I remember correctly, its a channel at a minimum that is required, with my latest update to the push notifications, there are already defaults set, so you don’t have to do anything special. I updated the docs with my changes too, so you can read on the available properties/features here: [https://github.com/fuse-open/fuselibs/blob/1792c481f3b7b7758a03060910b50978c6d35929/Source/Fuse.PushNotifications/Docs/Guide.md](https://github.com/fuse-open/fuselibs/blob/1792c481f3b7b7758a03060910b50978c6d35929/Source/Fuse.PushNotifications/Docs/Guide.md)

Unfortunately, my pull request hasn’t been reviewed and accepted into fuselibs yet, so its not available with latest fuse release.

How you can use my version is by pointing your project to use a downloaded version of fuselibs, then override the Fuse.PushNotifications folder in the src with mine. Note, after any changes to that fuselibs, you will need to run `uno doctor` in your project dir. Here’s a tut you can follow: [Oct 2018 - How to update to latest Fuselibs and Uno](https://forums.fusetools.com/t/oct-2018-how-to-update-to-latest-fuselibs-and-uno/7480)

You would just need fuselibs from step 1, step 3, overriding Fuse.PushNotifications with mine and step 5.

---

<div class="post-metadata">

**Author:** ![zoran.gorgioski](https://avatars.discourse-cdn.com/v4/letter/z/50afbb/32.png) [@zoran.gorgioski](https://forums.fusetools.com/u/zoran.gorgioski)\
**Post date:** [February 4, 2019, 12:25pm UTC](https://forums.fusetools.com/t/android-notifications-not-showing-in-tray-after-api-26-upgrade/7476/6 "2019-02-04T12:25:14Z")

</div>

@aeq Great! Where I can find your version of the Fuse.PushNotifications folder to replace the original one ?

---

<div class="post-metadata">

**Author:** ![aeq](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/aeq/32/129_2.png) [@aeq](https://forums.fusetools.com/u/aeq)\
**Post date:** [February 4, 2019, 12:27pm UTC](https://forums.fusetools.com/t/android-notifications-not-showing-in-tray-after-api-26-upgrade/7476/7 "2019-02-04T12:27:22Z")

</div>

PR: [https://github.com/fuse-open/fuselibs/pull/1220](https://github.com/fuse-open/fuselibs/pull/1220)  
PR Files Changed: [https://github.com/fuse-open/fuselibs/pull/1220/files](https://github.com/fuse-open/fuselibs/pull/1220/files)

or via my branch: [https://github.com/rbtech/fuselibs/tree/Push-Notifications/Source/Fuse.PushNotifications](https://github.com/rbtech/fuselibs/tree/Push-Notifications/Source/Fuse.PushNotifications)

---

<div class="post-metadata">

**Author:** ![zoran.gorgioski](https://avatars.discourse-cdn.com/v4/letter/z/50afbb/32.png) [@zoran.gorgioski](https://forums.fusetools.com/u/zoran.gorgioski)\
**Post date:** [February 4, 2019, 1:57pm UTC](https://forums.fusetools.com/t/android-notifications-not-showing-in-tray-after-api-26-upgrade/7476/8 "2019-02-04T13:57:09Z")

</div>

@aeq One last question, did I need last version of fusetools(1.10.0) ? Now I have 1.8.2 Did I need to update it or be cause it is used fuselibs it is doesn’t matter the version of fusetools ?

---

<div class="post-metadata">

**Author:** ![aeq](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/aeq/32/129_2.png) [@aeq](https://forums.fusetools.com/u/aeq)\
**Post date:** [February 4, 2019, 2:24pm UTC](https://forums.fusetools.com/t/android-notifications-not-showing-in-tray-after-api-26-upgrade/7476/9 "2019-02-04T14:24:41Z")

</div>

You need 1.10 because new push requires firebase which requires new gradle.
