I have an existing server that allows websocket connections, and publishes certain messages.
I'd like to start some kind of background task that can listen in on these messages and send a push notification to the user (even when the app is in the background).
What's the best way to do this? I've found react-native-push-notification for sending local push notifications; but so far I haven't really found anything that will let me keep a background process running. Looks like https://facebook.github.io/react-native/docs/headless-js-android.html might be promising.