How to handle a TCP connection in background? for Poker app server-client app
问题 I am working on Poker app based on server-client based app. When Poker App goes to the background after some time TCP/IP connection lost because app unable to send/recieve any packet to/from the server. Sever ends socket connection. how can i able to establish connection for long time and update my game UI 回答1: The topic you asked for, is called "Background Execution". First: You can't update the UI while the app enters the background. But you will be able to finish your API-Requests to the