How can I check if push notifications are allowed or not?
Android versions below 13 do not require permission to show push notifications. However, the user can disable push notifications in the settings.
Is there a method that will return the correct result of push notifications permission status for any version of android?
P.S. I'm using unity mobile notification package
I try check if notifications are enabled use:
bool result = Permission.HasUserAuthorizedPermission("android.permission.POST_NOTIFICATIONS");
but result is always == false;
Build target Api = 33, but it was tested on android 10.
Thanks