Skip to content
Advertisement

Android Toast doesn’t show up

I am using a Samsung Galaxy Note 8 with Android 8.0.

My Toast message (which was working) does not show up

JavaScript

getApplicationContext(), getBaseContext() are not helping instead of this. Using this in an activity.

Advertisement

Answer

Go to your app settings -> Notifications and check if notifications are turned on. This action is possible in newer android versions

Even though a Toast is not a notification, it seems that NotificationManagerService.java will not show Toast if Notifications are disabled.

I’m posting a link with the issue: https://issuetracker.google.com/issues/36951147

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement