1

I am building an android app and I want to access notification permission from special app access. I am not getting any way to do it. Is there anyone know about this thing?

enter image description here

Aditya Batra
  • 91
  • 3
  • 9

1 Answers1

-1

As answered here you don't need permissions for push notifications.

Actually the push notification permission lie in the normal category permission like Internet permission, not in dangerous category permission.

You don't have to ask for push notification permissions.

While Contacts/Locations are the dangerous permissions because you are accessing user data. So it is always needed to ask the user to allow it.

https://developer.android.com/guide/topics/security/permissions.html

If want to request and check notification status, then i would recommend you to try this https://github.com/zoontek/react-native-permissions#checknotifications

import {requestNotifications} from 'react-native-permissions';

requestNotifications(['alert', 'sound']).then(({status, settings}) => {
  // …
});
Utonium
  • 474
  • 4
  • 10