Google says that all apps targeting Android 13 (API level 33) in order to be able to work with notifications must ask for Manifest.permission.POST_NOTIFICATIONS permission.
My question is: which is a proper way to check if that permission is already granted?
- using
NotificationManagerCompat.areNotificationsEnabled() - using somthing like
ContextCompat.checkSelfPermission(this, Manifest.permission.POST_NOTIFICATIONS)
Are there any differences between them? It seems like these two options depend on each other: for example, if I go to the device app settings and disable Notifications then I see that Notification permission is also automatically revoked from the app:
and vice versa.

