A method for acting as a service agent, comprising: receiving, by a modem, heartbeat configuration information corresponding to an application including at least two applications and sent by an application processor, wherein the application processor is in a sleep state after sending the heartbeat configuration information corresponding to the applications; and establishing, by the modem according to the heartbeat configuration information corresponding to the applications, a heartbeat connection with an application server corresponding to the applications, so that the application processor is not woken up when the applications have no updated content, wherein the heartbeat configuration information comprises an initial heartbeat period of the applications, the establishing, by the modem according to the heartbeat configuration information corresponding to the applications, a heartbeat connection with an application server corresponding to the applications comprises: comparing, by the modem, initial heartbeat periods of the at least two applications with a preset time threshold; and when an initial heartbeat period of one application of the at least two applications is not less than the preset time threshold, adjusting the initial heartbeat period of the one application of the at least two applications; and establishing, according to an adjusted initial heartbeat period, a heartbeat connection with an application server corresponding to the one application of the at least two applications. receiving, by a modem, heartbeat configuration information corresponding to an application including at least two applications and sent by an application processor, wherein the application processor is in a sleep state after sending the heartbeat configuration information corresponding to the applications; and establishing, by the modem according to the heartbeat configuration information corresponding to the applications, a heartbeat connection with an application server corresponding to the applications, so that the application processor is not woken up when the applications have no updated content, wherein the heartbeat configuration information comprises an initial heartbeat period of the applications, the establishing, by the modem according to the heartbeat configuration information corresponding to the applications, a heartbeat connection with an application server corresponding to the applications comprises: comparing, by the modem, initial heartbeat periods of the at least two applications with a preset time threshold; and when an initial heartbeat period of one application of the at least two applications is not less than the preset time threshold, adjusting the initial heartbeat period of the one application of the at least two applications; and comparing, by the modem, initial heartbeat periods of the at least two applications with a preset time threshold; and when an initial heartbeat period of one application of the at least two applications is not less than the preset time threshold, adjusting the initial heartbeat period of the one application of the at least two applications; and establishing, according to an adjusted initial heartbeat period, a heartbeat connection with an application server corresponding to the one application of the at least two applications.