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

React Native listen to Websocket to send Push Notifications?

$
0
0

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.


Viewing all articles
Browse latest Browse all 29445

Trending Articles