Detailed Description
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings and specific embodiments.
As shown in fig. 1, an embodiment of the present invention provides a method for pushing an offline notification, including the following steps:
and step S101, judging whether the target RCS communication account is in an off-line state.
In this step, when the RCS service platform sends an instant message or a voice call to the user, the RCS service platform sends a service request message to the RCS client registered with the RCS communication account of the user through the user access network. When the RCS service platform receives the failure response, the target RCS communication account is in an offline state, and the service request is cached; when the RCS service platform receives a successful response, it indicates that the target RCS communication account is in an online state, and the process may be ended, and the mobile terminal may access the RCS service platform through a wireless local area network or a 2G, 3G, 4G, or 5G data channel, to complete user registration authentication, and use an instant messaging service. The RCS service platform may be an Instant Messaging-Application Server (IM-AS) or a Voice Over Internet Protocol-Application Server (VOIP-AS).
And step S102, if the target RCS communication account is in an off-line state, sending a prompt message to a related communication account related to the target RCS communication account.
In this step, due to various abnormal causes, such as: and when the RCS client is not started or the current data network is unavailable and the like, the RCS communication account of the user is in an off-line state, the RCS service platform generates a prompt message and sends the prompt message to the associated communication account associated with the target RCS communication account through the communication network of the operator. In this embodiment, the associated communication account is preferably a mobile phone number, and multimedia services such as voice, message, status presentation and the like are implemented by using the mobile phone number as a user identifier, so that a user can log in and memorize the associated communication account more conveniently, and the mobile phone number is used as the user identifier, which is also beneficial to finding back the communication account of the user in time when the user forgets the account or the account is stolen. In this embodiment, the prompt message is used to prompt that the target RCS communication account is in an offline state.
Preferably, the prompt message may further include a message that the network sends to the target RCS communication account when the target RCS communication account is in an offline state.
By the method, the user can know the message sent to the RCS communication account by the network under the condition of an off-line state, so that the user can process related services in time.
In this embodiment, the method may be applied to an RCS service platform.
In this embodiment, by the above method, when the target RCS communication account is in an offline state, the user terminal can still receive the related prompt message, and the method further has the characteristics of saving power and traffic for the user.
As shown in fig. 2, another method for pushing an offline notification according to an embodiment of the present invention includes the following steps:
step S201, receiving port information used by an RCS client on the mobile terminal sent by the mobile terminal, wherein the mobile terminal is the mobile terminal for logging in the associated communication account.
In this step, since there is no fixed push message port defined in the RCS service in the current specification, each mobile phone manufacturer may allocate different push message ports to the RCS client, so that the user cannot accurately and timely receive the related prompt message due to different models of the mobile phone manufacturer. Therefore, the port information used by the RCS client on the mobile terminal can be synchronized to the RCS service platform by expanding the registration request information of the RCS client, wherein the mobile terminal is the mobile terminal for logging in the associated communication account.
And step S202, judging whether the target RCS communication account is in an off-line state or not.
And step S203, sending a prompt message to the associated communication account related to the target RCS communication account by using the port corresponding to the port information.
In this step, when the target RCS communication account is in an offline state, a prompt message is sent to a related communication account associated with the RCS communication account using a port corresponding to the port information. In this embodiment, the associated communication account is preferably a mobile phone number. And the prompt message is used for prompting that the target RCS communication account is in an offline state.
In the embodiment, the prompt message can be quickly and accurately sent to the target communication account by the method.
As shown in fig. 3, another method for pushing an offline notification according to an embodiment of the present invention includes the following steps:
step S301, a prompt message sent by the RCS service platform is received through the communication account related to the target RCS communication account.
In this step, a prompt message sent by an RCS service platform is received through a related communication account associated with a target RCS communication account, where the prompt message is used to prompt that the target RCS communication account is in an offline state, and the prompt message is sent when the RCS service platform determines that the target RCS communication account is in the offline state.
In this embodiment, the associated communication account is preferably a mobile phone number, and multimedia services such as voice, message, status presentation and the like are implemented by using the mobile phone number as a user identifier, so that a user can log in and memorize the associated communication account more conveniently, and the mobile phone number is used as the user identifier, which is also beneficial to finding back the communication account of the user in time when the user forgets the account or the account is stolen.
And step S302, logging in the target RCS communication account according to the prompt message.
In this step, the user may log in the target RCS communication account according to the prompt message, and process a related service request, such as some service requests, e.g., an instant message or a voice call.
Preferably, the prompt message may further include a message that the network sends to the target RCS communication account when the target RCS communication account is in an offline state.
By the method, the user can know the message sent to the RCS communication account by the network under the condition of being in an off-line state, so that the user can process related services in time.
In this embodiment, the method may be applied to a mobile terminal.
In this embodiment, by the above method, when the target RCS communication account is in an offline state, the user terminal can still receive the related prompt message, and the method further has the characteristics of saving power and traffic for the user.
As shown in fig. 4, another method for pushing an offline notification according to an embodiment of the present invention includes the following steps:
step S401, sending port information used by the RCS client on the mobile terminal to the RCS service platform, wherein the mobile terminal is the mobile terminal for logging in the associated communication account.
In this step, since there is no fixed port for push message defined by the RCS service in the current specification, each mobile phone manufacturer may allocate different ports for push message to the RCS client, so that the user may not receive the related prompt message accurately and timely due to different models of the mobile phone manufacturer. Therefore, the port information used by the RCS client on the mobile terminal can be synchronized to the RCS service platform by expanding the registration request information of the RCS client, wherein the mobile terminal is the mobile terminal for logging in the associated communication account.
And step S402, receiving a prompt message sent by the RCS service platform through a port corresponding to the port information.
In this step, when the target RCS communication account is in an offline state, a prompt message sent by the RCS service platform is received through a port corresponding to the port information. In this embodiment, the associated communication account is preferably a mobile phone number. And the prompt message is used for prompting that the target RCS communication account is in an offline state.
And S403, logging in the target RCS communication account according to the prompt message.
In the embodiment, the prompt message can be quickly and accurately sent to the target communication account by the method.
As shown in fig. 5, an embodiment of the present invention provides another method for pushing an offline notification, where an application scenario of the method may include an RCS service platform, a user terminal, a user access network, and an operator communication network, where the user terminal includes a push message processing module and an RCS client, and the RCS service platform includes an offline notification pushing module, where:
the RCS service platform comprises IM-AS, VOIP-AS and other communication services for providing instant messages, voice and the like, and is used for providing the service platform of the instant communication service.
And the RCS client is used for providing the client of the instant messaging service for the user.
The user access network is used for enabling the user terminal to access the RCS service platform through a wireless network or a 2G/3G/4G data channel, completing user registration authentication and using instant messaging service.
The operator communication network is a standard communication network established for operators and used for providing the transmission of push messages.
And the push message processing module is used for presenting the prompt message to a user after receiving the prompt message and starting the RCS client.
And the off-line notification pushing module is used for sending a prompt message to the user terminal.
It should be noted that some of the modules may be virtual modules, and other modules may be virtual and hardware combined modules, or hardware modules, which do not limit the embodiment of the present invention.
The above method may comprise the steps of:
and step S501, registering the RCS client.
In this step, since there is no fixed push message port defined in the RCS service in the current specification, each mobile phone manufacturer may allocate different push message ports to the RCS client, so that the user cannot accurately and timely receive the related prompt message due to different models of the mobile phone manufacturer. Therefore, the port information used by the RCS client on the user terminal can be synchronized to the RCS service platform by expanding the registration request information of the RCS client, wherein the user terminal is the user terminal for logging in the associated communication account.
Step S502, forwarding the instant communication request to the user.
In the step, when the RCS service platform sends an instant message or a voice call to the user, the IM-AS and the VOIP-AS try to send a service request message to the RCS communication account of the user through the user access network.
Step S503, the sending of the instant communication request to the user fails.
In this step, due to various abnormal causes, such as: the RCS client is not started or the current data network is not available, etc., resulting in a failure to send the instant messaging request to the user.
Step S504, receiving the failure response and caching the service request.
And step S505, generating a push offline notification.
In this step, the offline notification pushing module is a logic function module, and may be independently deployed or configured with other modules and devices in the RCS service platform during specific implementation, where the offline notification pushing module generally communicates with each service application server through an internal interface. When the IM-AS/VOIP-AS fails to send the service message and the user communication account is judged to be in an off-line state, sending processing of off-line notification can be triggered.
And S506, pushing the prompting message to the communication network.
In this step, the carrier communication network provides a transmission channel of the push message in various ways, such as: the method comprises the steps that a push message initiated in a mobile phone and a push message are started by a service platform through an extended protocol such as a message conversion protocol; the RCS service platform can select a corresponding interface mode to realize according to the docking requirements of operators.
And step S507, pushing a prompt message to the user terminal.
And step S508, presenting a prompt message to the user and starting to log in the RCS client.
In the step, the user terminal analyzes the prompt message through the push message processing module, presents the prompt message to the user, and the user starts to log in the RCS client according to the prompt message.
And step S509, logging on the RCS client.
And step S510, forwarding the RCS client login online information.
Step S511, resending the service request message.
Step S512, a service request is sent to the user.
In this embodiment, by the above method, when the RCS communication account of the user is in an offline state, the user terminal can still receive the related prompt message, and the method further has the characteristics of saving power and traffic for the user.
As shown in fig. 6, an embodiment of the present invention provides an apparatus for pushing an offline notification, where theapparatus 60 includes:
the judgingmodule 61 is used for judging whether the target RCS communication account is in an offline state;
afirst sending module 62, configured to send a prompt message to a related communication account associated with the target RCS communication account if the target RCS communication account is in an offline state, where the prompt message is used to prompt that the target RCS communication account is in the offline state.
Optionally, the prompt message includes a message sent by the network to the target RCS communication account when the target RCS communication account is in an offline state.
Optionally, as shown in fig. 7, theapparatus 60 further includes:
afirst receiving module 63, configured to receive port information, which is sent by a mobile terminal and used by an RCS client on the mobile terminal, where the mobile terminal is a mobile terminal that logs in the associated communication account;
thefirst sending module 62 is further configured to send a prompt message to the associated communication account associated with the target RCS communication account using the port corresponding to the port information.
In this embodiment, theapparatus 60 may implement the methods provided in the embodiments shown in fig. 1, fig. 2, and fig. 5, that is, the methods provided in the embodiments shown in fig. 1, fig. 2, and fig. 5 may all be implemented by theapparatus 60, and the same beneficial effects can be achieved, and in order to avoid repetition, details are not described here again.
As shown in fig. 8, an embodiment of the present invention provides an apparatus for pushing an offline notification, where theapparatus 80 includes:
asecond receiving module 81, configured to receive, through a related communication account associated with a target RCS communication account, a prompt message sent by an RCS service platform, where the prompt message is used to prompt that the target RCS communication account is in an offline state, and the prompt message is sent when the RCS service platform determines that the target RCS communication account is in the offline state;
and thelogin module 82 is used for logging in the target RCS communication account according to the prompt message.
Optionally, the prompt message includes a message sent by the network to the target RCS communication account when the target RCS communication account is in an offline state.
Optionally, as shown in fig. 9, the method further includes:
asecond sending module 83, configured to send, to the RCS service platform, port information used by an RCS client on a mobile terminal, where the mobile terminal is a mobile terminal that logs in the associated communication account;
thesecond receiving module 81 is configured to receive a prompt message sent by the RCS service platform through the port corresponding to the port information.
In this embodiment, theapparatus 80 may implement the methods provided in the embodiments shown in fig. 3, fig. 4, and fig. 5, that is, the methods provided in the embodiments shown in fig. 3, fig. 4, and fig. 5 may all be implemented by theapparatus 80, and the same beneficial effects can be achieved, and in order to avoid repetition, details are not described here again.
It will be understood by those skilled in the art that all or part of the steps of the method for implementing the above embodiments may be implemented by hardware associated with program instructions, and the program may be stored in a computer readable medium, and when executed, the program includes the following steps:
judging whether the target RCS communication account is in an off-line state or not;
and if the target RCS communication account is in an offline state, sending a prompt message to a related communication account related to the target RCS communication account, wherein the prompt message is used for prompting that the target RCS communication account is in the offline state.
Optionally, the prompt message includes a message sent by the network to the target RCS communication account when the target RCS communication account is in an offline state.
Optionally, before determining whether the target RCS communication account is in an offline state, the method includes:
receiving port information which is sent by a mobile terminal and used by an RCS client on the mobile terminal, wherein the mobile terminal is the mobile terminal for logging in the associated communication account;
the sending of the prompt message to the associated communication account associated with the target RCS communication account includes:
and sending a prompt message to the associated communication account related to the target RCS communication account by using the port corresponding to the port information.
Optionally, the associated communication account is a mobile phone number.
The program, when executed, further comprises the steps of:
receiving a prompt message sent by an RCS service platform through a related communication account related to a target RCS communication account, wherein the prompt message is used for prompting that the target RCS communication account is in an off-line state, and the prompt message is sent when the RCS service platform judges that the target RCS communication account is in the off-line state;
and logging in the target RCS communication account according to the prompt message.
Optionally, the prompt message includes a message sent by the network to the target RCS communication account when the target RCS communication account is in an offline state.
Optionally, before the receiving, by the associated communication account associated with the target RCS communication account, the prompt message sent by the RCS service platform, the method includes:
sending port information used by an RCS client on a mobile terminal to the RCS service platform, wherein the mobile terminal is the mobile terminal for logging in the associated communication account;
the receiving of the prompt message sent by the RCS service platform through the associated communication account associated with the target RCS communication account includes:
and receiving a prompt message sent by the RCS service platform through a port corresponding to the port information.
Optionally, the associated communication account is a mobile phone number.
The storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.