title: Sync Mobile App and Web App without third party services
body: <p>Currently building a <strong>hybrid app.</strong> using <strong>Ionic Framework</strong> with <code>PHP</code> for backend services</p>
  
  <p>I am having a case where a user has got his profile in Web app and Mobile App as well. </p>
  
  <p>If the user adds two stories as favourites <strong>(Its kind of a reading app)</strong> from his mobile app or Web app,how do I sync that?</p>
  
  <p><strong>Here are the scenarios:</strong></p>
  
  <p><strong>1)</strong> User marks the stories favourites from web app and when I come online through mobile app, display it.</p>
  
  <p><strong>2)</strong> User marks the stories favourites from mobile app when he is <strong>offline</strong>(Now this will be stored in <strong>LocalDB</strong>). So again when he comes online sync with the server?</p>
  
  <p>I know there are services like <strong>Firebase</strong> which provides <code>syncing service</code>.</p>
  
  <p>But What If I would want to develop a <strong>Custom Syncing service</strong> on my own for my application? Is that an extremely complicated process?</p>
  
  <p>If yes and it can be developed ,then how should I proceed ? A basic idea? What are the best practices that I should consider?</p>
  
  <p>Any links would be appreciated?</p>