olofd / react-native-signalr

Use SignalR with React Native
150 stars 61 forks source link

not work in background / app close #44

Open herarya opened 6 years ago

herarya commented 6 years ago

hi, @olofd how to run received push from server when app close ? i try run code on app state "background" signal r not received

j-mendez commented 6 years ago

It should be used only when state is active.

Shhzdmrz commented 6 years ago

@jeffreymendez1993 So you mean even when the app is in background state it will still not work?

utpal-patel commented 6 years ago

So it only works when app in foreground. When app goes background for a period of time (< 2 min observed) it may works but when you get screen lock for a time and unlock it, It will stop working.