I have a mobile app implemented in React Native where the user has a status online/offline. I want to implement a persistent notification message that shows up whenever the user status is Online, even if the app in the background.
I know that there is a possibility to do actions within notifications like pause button in the media player apps. How could this be done in react-native?
Use https://github.com/zo0r/react-native-push-notification
If you want to make it sticky you can set :
PushNotification.localNotification({ ongoing:true )} You can use ongoing property of this library to make sticky notification
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With