You may check the amount of unread notifications by looking at the badge that is permanently displayed on the app's icon. It is a simple method that allows you to determine at a glance whether or not you have any unread messages in the Messages or Gmail app. Apps that voluntarily support app icon badges will be able to display them beginning with Android O.