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.
The app would work as follows:
- Once installed the user would open the app and login
- 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
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.
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:
- 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).
If none of the approaches are possible, does anyone has a suggestion/solution?