title: Is it possible to build a 24/7 running on background APP?
body: <p>I want to build a mobile app that runs 24/7 on the background, despite the app being closed or not.
  This would all be with the user consent.</p>
  
  <p>The app would work as follows:</p>
  
  <ul>
  <li>Once installed the user would open the app and login</li>
  <li>After that, the app would open a websocket connection with my server and handle messages and reply. I would need this to be running 24/7 after user has logged while Internet Connection exists, even if the app is closed</li>
  </ul>
  
  <p>My question is if this is possible in any way?
  And if it is, is it possible to build in a native language to avoid coding both iOS and Android? I was looking into React Native and Flutter but didn't find any specific information.</p>
  
  <p>If it's not possible to maintain the app running on the background 24/7 could it be possible to do with notifications?
  In this case it would work as follow:</p>
  
  <ul>
  <li>After receiving notification, app would handle the notification and respond back to the server (without actually showing a notification to the user to avoid spam).  </li>
  </ul>
  
  <p>If none of the approaches are possible, does anyone has a suggestion/solution?</p>