0

How I can receive push notification when app was closed? When I roll up app notification received, but when I close - no. I`m using react-native and onesignal.

Vadim
  • 68
  • 6
  • 1
    Possible duplicate of [unable to get notification if app is in closed state using react-native-push-notification](http://stackoverflow.com/questions/38100087/unable-to-get-notification-if-app-is-in-closed-state-using-react-native-push-not) – Alessandro Da Rugna Feb 20 '17 at 16:52
  • I'm looking a same thing, did you succeed to do that? – Manspof May 22 '18 at 19:59

1 Answers1

0

You should look how to intent a service in react-native. A service work apart from the main thread of the app, so when the app is closes the service is steal working.

Alexandre Nicolas
  • 1,851
  • 17
  • 19