Patent ID: 10820273

Abstract:
Embodiments of the present invention provide a method for interaction between a terminal and a network device, including: sending, by a terminal, a first heartbeat to a network device; receiving, by the terminal, a first heartbeat response returned by the network device; if a screen of the terminal is in an off state, and optionally, the off state lasts for a preset period of time, releasing network link resources of a connection between the terminal and the network device, and/or prohibiting a background application of the terminal from accessing the network device, and/or disabling a data service of the terminal; before the terminal sends a second heartbeat to the network device, restoring, by the terminal, a status of network connection to a normal connection state; sending, by the terminal, the second heartbeat to the network device; and receiving, by the terminal, a second heartbeat response returned by the network device.