Need to enable app specific notification permission in appium automation testing

Hi people,

I need to enable allow access for the application specific notification. So I generally used
capabilities.setCapability("autoGrantPermissions", "true"); this capability, since it enables all the permissions like location, camera, microphone and everything, it affects other things while automating the application. So is there any way to enable only the notification permission in setCapability for android devices?
Or any other approaches will also work.
@Aleksei

there is no other way to control permissions via capabilities in UIA2 driver.
It is possible to change permissions mid-session using https://github.com/appium/appium-uiautomator2-driver#mobile-changepermissions API

1 Like

@mykola-mokhnach Is there any programmatically example of implementing it ?? So that it would be better for me for move with