Premise:
- Mobile Client uses Xamarin Native as a technology.
- I have a Mobile Client which uses a PCL that performs the socket connection to remote server.
- All communications to the remote server are only thru the PCL’s socket based connection.
Requirement:
The Mobile client needs to maintain the connection to the remote server whether its in the foreground or the background
The reason it needs the connection when it is in background is to update the Remote Server about its geo-position.
Current Problem:
Once the app goes into the background, the app loses the socket connection.
Suggestion Required for :
- What is the best way to keep the connection active to the remote server, even when the Mobile Client is in the background.
- How should I implement this solution for the best performance?
- Any code snippets will help?