主权项 |
1. A method comprising:
by an instant messaging (IM) server running on a server computing device, receiving an instruction to put an IM client-side application of an IM user into an IM hibernation mode, wherein the IM client-side application is installed on a mobile computing device of the user, wherein the IM user has an active IM status on the IM server, and wherein a communication-protocol session has been established between the IM server and the IM client-side application; by the IM server, in response to the instruction, terminating the communication-protocol session to put the IM client-side application into the IM hibernation mode, wherein the mobile computing device remains active, and wherein the IM server maintains an active IM status for the IM user; by the IM server, while the IM client-side application is in the IM hibernation mode:
receiving an instant message for the IM user;generating, for the instant message, a token comprising a pointer to the instant message within a stream of instant messages maintained by the IM server for the IM user;sending, to the mobile computing device, a push notification comprising the token when the instant message is received by the IM server, the bush notification being sent without re-establishing the communication-protocol session with the IM server; and by the IM server, when a timeout period associated with the IM hibernation mode is exceeded, terminating the active IM status of the IM user on the IM server. |