title: How can i perform task even if the app is closed in React Native
body: <p>I want to perform some task if the device is back online. I have tried with Broadcast receiver but its working perfectly when the app is running and the app is moved to background. but its not working when the app is closed :(.</p>
  <p>please find the below code which i have tried..</p>
  <pre><code>import {DeviceEventEmitter,Platform} from 'react-native';
  const func=(map)=&gt;{
    console.log(&quot;connection changed&quot;)
  }
  DeviceEventEmitter.addListener('GReferrerBroadcastReceiver', func);
  </code></pre>
  <p>Can anyone propose a solution for how to perform some task if the app is closed. I found Job scheduler in native android but how can i connect to React Native???</p>
  <p>a help will be really appreciable :) ......</p>