title: Cordova / Phonegap receive push data even if app is in background
body: <p>I build an app which receives data from a server. To receive data in realtime, I use socketIO, which works well when the app is currently opened.</p>
  
  <p>Now I want to receive data from the server, even if the app is in background or device is restarted.</p>
  
  <p>So:</p>
  
  <ol>
  <li>Server has new data (object) to send to specific users</li>
  <li>Server sends data to specific users</li>
  <li>Users get data in background and saves it locally</li>
  <li>Notify if data is relevant</li>
  </ol>
  
  <p>I read about this plugin <a href="https://github.com/phonegap-build/PushPlugin" rel="nofollow">https://github.com/phonegap-build/PushPlugin</a> but I want to save the data first and let the app decide then when data ist relevant to notify the user.</p>
  
  <p>Thanks for help!</p>