title: AppState always returns background as currentState for Android in react-native
body: <p>The <code>react-native</code> <a href="https://facebook.github.io/react-native/docs/appstate.html" rel="nofollow">AppState</a> API tell the current state of the app that can be used while handling local/remote notification. It provides correct application state for iOS but for Android, I always get the <code>AppState.currentState</code> as <code>background</code>.</p>
  
  <p>Is this because of the way the notifications are handled by Android?</p>
  
  <p>Is there another way of figuring out whether the notification is received when the app is in foreground vs background?</p>