# Android 12 - app notifications fire and immediately leave the tray for this app. Other apps work OK

**URL:** <https://forum.devtalk.com/t/android-12-app-notifications-fire-and-immediately-leave-the-tray-for-this-app-other-apps-work-ok/158448>\
**Category:** Android Questions/Help\
**Tags:** android\
**Created:** [9 June 2024 14:53 UTC](https://forum.devtalk.com/t/android-12-app-notifications-fire-and-immediately-leave-the-tray-for-this-app-other-apps-work-ok/158448 "2024-06-09T14:53:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![freerefills](https://forum.devtalk.com/letter_avatar_proxy/v4/letter/f/34f0e0/32.png) [@freerefills](https://forum.devtalk.com/u/freerefills)\
**Post date:** [9 June 2024 14:53 UTC](https://forum.devtalk.com/t/android-12-app-notifications-fire-and-immediately-leave-the-tray-for-this-app-other-apps-work-ok/158448/1 "2024-06-09T14:53:51Z")

</div>

I have an android app whereby notifications will fire and immediately leave the tray. This doesn’t always happen, it’s unpredictable they do sometimes stick around. It happens on android 12 but not 13. I don’t think it’s about the battery manager as I’ve read elsewhere as other apps than the one I’m trying to debug work fine.

Has anyone seen this? Any suggestions in terms of the app config / manifest / permissions that might cause this issue?

---

<div class="post-metadata">

**Author:** ![Daniel](https://forum.devtalk.com/user_avatar/forum.devtalk.com/daniel/32/6145_2.png) [@Daniel](https://forum.devtalk.com/u/Daniel)\
**Post date:** [13 June 2024 00:12 UTC](https://forum.devtalk.com/t/android-12-app-notifications-fire-and-immediately-leave-the-tray-for-this-app-other-apps-work-ok/158448/2 "2024-06-13T00:12:07Z")

</div>

hi.  
please config permission on manifest file.  
And android 12 and 13 is so different in secure policy.

---

<div class="post-metadata">

**Author:** ![johnfisher](https://forum.devtalk.com/letter_avatar_proxy/v4/letter/j/779978/32.png) [@johnfisher](https://forum.devtalk.com/u/johnfisher)\
**Post date:** [23 January 2025 06:50 UTC](https://forum.devtalk.com/t/android-12-app-notifications-fire-and-immediately-leave-the-tray-for-this-app-other-apps-work-ok/158448/3 "2025-01-23T06:50:02Z")

</div>

**Notification Issue on Android 12?**  
Notifications disappearing unpredictably? It works fine on Android 13 but not 12. Could it be a config, manifest, or permissions glitch? Any insights?

---

<div class="post-metadata">

**Author:** ![Scarlet](https://forum.devtalk.com/user_avatar/forum.devtalk.com/scarlet/32/7198_2.png) [@Scarlet](https://forum.devtalk.com/u/Scarlet)\
**Post date:** [22 March 2025 07:18 UTC](https://forum.devtalk.com/t/android-12-app-notifications-fire-and-immediately-leave-the-tray-for-this-app-other-apps-work-ok/158448/4 "2025-03-22T07:18:47Z")

</div>

An issue with how your app handles notifications in Android 12. Check if your notification uses `setAutoCancel(true)`, which can cause it to disappear when tapped. Also, ensure you’re not unintentionally calling `cancel()` on the notification. Differences in behavior between Android 12 and 13 could be due to changes in **notification permissions, foreground service handling, or OEM-specific quirks**. Try logging notification events to see when and why they are dismissed.
