I am using 3rd party screen recording library which has foreground service and when screen recording is started new post-notification permission dialog is shown by the system automatically on Android 13. Is there any way to register a listener to get data on whether that permission is granted or not?
I've tried to request post notification permission manually before the screen record starts, but the permission dialog is not shown after the request.
requestPermissionLauncher.launch(Manifest.permission.POST_NOTIFICATIONS)
Its all happening only on Android 13.