I have a scenario in my React Native app where I have to store notifcations into my local storage. I am using react-native-storage library. When I receive the notification when app is in foreground I receive a callback. When the app is in background I receive the notification on the status bar but no callback is called. How can I manage to register a callback when there is a notification for my application in background? After that I will be able to store into the device local storage.
I am using react-native-onesignal for push notifications