Native android notification access control

I have a scenario where after logging into the app it will redirect to the android notification access page. Here I want to allow access to the particular app. How can I achieve this?

What problem? Find your app switcher and tap on it.

I need to enable the notification access permission for Google paly services from the list. How can I do that?
I tried through the xpath locator but couldn’t do it

You need find first what your app in row count. E.g. Ather ia third one. Now find switches by classname and tap on third one.

Thanks for the help @Aleksei. It helped me to get the solution