Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 28460

How to react all android notifications in react native similar to onNotificationPosted method in android

$
0
0

I'm looking for a solution where I can read all the android notification on the phone of different apps only after read notifications permission is given by the user with react-native.

I've achieved this easily using the native android method

public void onNotificationPosted(StatusBarNotification sbn) {
   // Do whatever I want once the new notification is posted
}

What is the appropriate method in react-native to achieve the same behavior or how can I use the same native android method in the react-native app?

Thank you for any kind of help in advance. I really appreciate it.


Viewing all articles
Browse latest Browse all 28460

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>