Reputation: 241
i'm learning how to devellop in React-Native a little app forAndroid and i would like to know if it was possible to "link" the app to a server so when the server create an event, the app receive it as a notification. I was thinking to use RxJS but i don't know where to begin. Is somebody can help me? Thx a lot, Alexandre
EDIT: So in the use, my app would have a "listener" on a website, and then when the site make an alert, the app would react imediatly (if the app is closed, a notification, if it is open, a message is shown. Also , i have to use RxJS or something that is asynchronous , because if not the app would consume a lot of data i suppose.
I you have a way to do it, then i'll take it
Upvotes: 1
Views: 4636
Reputation: 222
You can use react-native-fcm. I'm using im my applications to notify the user by chat messages and scheduled notifications from server as well. I think this will help you.
Upvotes: 1