Toast notifications won’t leave my Kiosk screenSolved

Participant
Discussion
3 weeks ago

Hey folks,

We’ve run into a funny yet annoying issue on some of our Android kiosks. Certain toast notifications (those tiny pop-ups at the bottom) just refuse to disappear and stay stuck until we reboot the device. 😐

We can’t disable “Display dialogs/windows” or the status bar options using Hexnode because our kiosk app needs them. So… is there any way to disable only toast notifications?

Replies (3)

Marked SolutionPending Review
Participant
3 weeks ago
Marked SolutionPending Review

Hey @mike_johnson,

Yeah, that’s a tricky one. Those two settings usually take care of most pop-ups, but since your kiosk workflow relies on them, disabling them might cause more issues than it solves.

If you’ve identified that the toasts are coming from com.android.systemui, then the fix probably must target that specific app rather than a global UI restriction.

Marked SolutionPending Review
Participant
3 weeks ago
Marked SolutionPending Review

Exactly!

After checking logs and a bit of trial-and-error, the pop-ups seem to come from com.android.systemui.

So ideally, I just want to block toast notifications from that package only without affecting dialogs or the status bar.
If anyone has managed to do that, would love to hear how!

Marked SolutionPending Review
Participant
3 weeks ago
Marked SolutionPending Review

Hey @mike_johnson , you can actually do this with an ADB command.
Run this from your PC when the device is connected:

adb shell appops set com.android.systemui TOAST_WINDOW deny

That command basically tells Android to deny toast popups from System UI.
If you want to nuke toasts for any app, replace the package name accordingly.

Since setting things like this remotely can be a bit tricky, Hexnode has a help article that explains a workaround for executing ADB commands on Android devices. You can refer to the help doc on executing ADB commands on Android devices remotely.

Save