@Pendrush posted this question about The new API 33 notification permission
https://developer.android.com/develop/ui/views/notifications/notification-permission https://yggr.medium.com/exploring-android-13-notification-runtime-permission-6e198bb5ae3b
At the time I didn't have a phone which was on Android 13, but I now do.
I thought I would try to add the permission string to see what happens
I created a little program which can call Check or CheckandRequest
I have added
AddPermission(android.permission.POST_NOTIFICATIONS)
in the manifest
with Manifest android:targetSdkVersion="33"
Results:
(Google Pixel 2xl) Android Version 30 - check = false, checkandrequest = false (dialog does not appear)
(Google Pixel 5 running CalyxOS) Android version 33 - Check = false, checkandrequest (dialog appears)
However if I set the Manifest android:targetSdkVersion to "31"
Results:
(Google Pixel 2xl) Android Version 30 - check = false, checkandrequest = false (dialog does not appear)
(Google Pixel 5 running CalyxOS) Android version 33 - Check =
no result, checkandrequest (dialog does
NOT appear)
Conclusion:
I will need to release new versions of any app which has notifications to ensure that the user can choose to accept Notifications/
the code will need to check for API 33 and only checkandRequest if this is the case.
I'd be interested to know the thoughts of other developers