CN109194639B - Message receiving and processing method, device, terminal and readable storage medium - Google Patents

Message receiving and processing method, device, terminal and readable storage medium Download PDF

Info

Publication number
CN109194639B
CN109194639B CN201810974235.9A CN201810974235A CN109194639B CN 109194639 B CN109194639 B CN 109194639B CN 201810974235 A CN201810974235 A CN 201810974235A CN 109194639 B CN109194639 B CN 109194639B
Authority
CN
China
Prior art keywords
application
space
terminal
message
identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810974235.9A
Other languages
Chinese (zh)
Other versions
CN109194639A (en
Inventor
秦碧
李丙立
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201810974235.9A priority Critical patent/CN109194639B/en
Publication of CN109194639A publication Critical patent/CN109194639A/en
Application granted granted Critical
Publication of CN109194639B publication Critical patent/CN109194639B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to a message receiving and processing method, a device, a terminal and a readable storage medium, wherein the method comprises the following steps: receiving a first message sent to a target application, wherein the target application is a first application or a second application, the first message includes an identifier of the target application, and the identifier of the target application includes: the space identifier corresponding to the target application or the login account of the target application; and distributing the first message to the target application according to the identification of the target application. According to the method, the sent message carries the space identifier of the application or the login account number of the application, so that the terminal can determine the application for receiving the message, and the message can be correctly distributed in the scene of system differentiation or multiple applications.

Description

Message receiving and processing method, device, terminal and readable storage medium
Technical Field
The present disclosure relates to the field of computers, and in particular, to a method, an apparatus, a terminal and a readable storage medium for receiving and processing a message.
Background
The traditional terminal generally adopts a one-to-one functional mode, namely, aiming at an application, only one account can be used for logging in the application at the same time at one terminal. For some users, it may be desirable to be able to use multiple accounts of an application on one terminal at the same time. The system is divided into two ways to meet the above requirements of users. In the system-based or application multi-open technology, one terminal is divided into a plurality of spaces, and a plurality of accounts of the same application can be managed and maintained in different spaces respectively. When multiple accounts of one application are used on one terminal based on system differentiation or application multiple-open technology, how to send information received from an external network to a correct account is a problem to be solved.
Disclosure of Invention
The embodiment of the disclosure provides a message receiving and processing method, a message receiving and processing device, a terminal and a readable storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a message receiving and processing method, applied to a terminal, where a first application and a second application are installed in the terminal, the first application and the second application are the same application, and a login account of the first application is different from a login account of the second application, the method including:
receiving a first message sent to a target application, wherein the target application is a first application or a second application, the first message includes an identifier of the target application, and the identifier of the target application includes: the space identifier corresponding to the target application or the login account of the target application;
and distributing the first message to the target application according to the identification of the target application.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the sent message carries the space identifier of the application or the login account of the application, so that the terminal can determine the application for receiving the message, and the message can be correctly distributed under the scene that the system is different or the application is too open.
Further, the distributing the first message to the target application according to the identifier of the target application includes:
and if the first message comprises the space identifier corresponding to the target application, distributing the first message to the target application installed in the space corresponding to the space identifier.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
when one application of the same application is allowed to be installed in one space of the terminal, the terminal can directly distribute the first message to the target application installed in the space corresponding to the space identifier after judging that the first message comprises the space identifier corresponding to the target application, so that the message can be correctly distributed, and meanwhile, the distribution efficiency is high.
Further, the distributing the first message to the target application according to the identifier of the target application includes:
if the first message comprises the login account of the target application, determining the installation space of the target application according to the login account, and distributing the first message to the target application in the installation space.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
when a plurality of applications of the same application are allowed to be installed in one space of the terminal, after the terminal judges that the first message comprises the login account corresponding to the target application, the installation space of the target application can be determined according to the login account, and the message is distributed to the target application in the installation space, so that the message can be correctly distributed.
Further, before receiving the first message sent to the target application, the method further includes:
after receiving the installation file of the first application, allocating installation space for the first application, and installing the first application in the allocated installation space;
registering a login account of the first application to an application server of the first application according to registration information input by a user;
and sending the corresponding relation between the login account of the first application and the identifier of the installation space of the first application to an application server of the first application.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
by sending the corresponding relation between the registered login account and the application installation space to the server during application registration, the server can carry correct space identification during message sending, and then the terminal can carry out correct message distribution according to the space identification.
Further, the allocating an installation space for the first application includes:
and allocating installation space for the first application according to the sequence of the priority of the space in the terminal from high to low.
Further, the allocating installation space for the first application according to the order of the priority of the space in the terminal from high to low includes:
determining whether a first space of the terminal can be provided with the first application according to the application identifier of the first application, if not, determining whether a second space of the terminal can be provided with the first application according to the application identifier of the first application, and if so, taking the second space as the installation space of the first application;
wherein the priority of the first space is higher than the priority of the second space.
Further, the determining whether the first application can be installed in the first space of the terminal according to the application identifier of the first application includes:
and judging whether the first space is provided with the application same as the first application or not according to the application identifier of the first application, and if not, determining that the first space of the terminal can be provided with the first application.
Further, the determining whether the first application can be installed in the first space of the terminal according to the application identifier of the first application includes:
and judging whether the number of the applications which are installed in the first space and are the same as the first application is smaller than a preset threshold value or not according to the application identification of the first application, and if so, determining that the first application can be installed in the first space of the terminal.
According to a second aspect of the embodiments of the present disclosure, there is provided a message receiving and processing apparatus, applied to a terminal, where a first application and a second application are installed in the terminal, the first application and the second application are the same application, and a login account of the first application is different from a login account of the second application, including:
a receiving module configured to receive a first message sent to a target application, where the target application is a first application or a second application, the first message includes an identifier of the target application, and the identifier of the target application includes: the space identifier corresponding to the target application or the login account of the target application;
a processing module configured to distribute the first message to the target application according to the identification of the target application.
Further, the processing module includes:
the first processing submodule is configured to distribute the first message to the target application installed in a space corresponding to the space identifier when the first message includes the space identifier corresponding to the target application.
Further, the processing module includes:
and the second processing sub-module is configured to determine an installation space of the target application according to the login account when the first message includes the login account of the target application, and distribute the first message to the target application in the installation space.
Further, the method also comprises the following steps:
the allocation module is configured to allocate installation space for the first application after receiving the installation file of the first application, and install the first application in the allocated installation space;
the registration module is configured to register a login account of the first application with an application server of the first application according to registration information input by a user;
a sending module configured to send, to an application server of the first application, a correspondence between a login account of the first application and an identifier of an installation space of the first application.
Further, the assignment module is configured to:
and allocating installation space for the first application according to the sequence of the priority of the space in the terminal from high to low.
Further, the assignment module is configured to:
determining whether a first space of the terminal can be provided with the first application according to the application identifier of the first application, if not, determining whether a second space of the terminal can be provided with the first application according to the application identifier of the first application, and if so, taking the second space as the installation space of the first application;
wherein the priority of the first space is higher than the priority of the second space.
Further, the assignment module is configured to:
and judging whether the first space is provided with the application same as the first application or not according to the application identifier of the first application, and if not, determining that the first space of the terminal can be provided with the first application.
Further, the assignment module is configured to:
and judging whether the number of the applications which are installed in the first space and are the same as the first application is smaller than a preset threshold value or not according to the application identification of the first application, and if so, determining that the first application can be installed in the first space of the terminal.
According to a third aspect of the embodiments of the present disclosure, there is provided a terminal, including:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of the first aspect.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a terminal, including:
a memory, a processor and a computer program, the processor running the computer program to perform the method of the first aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of the first aspect described above.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a system architecture diagram of a message reception processing method provided by the present disclosure;
FIG. 2 is a diagram illustrating a message reception processing method in accordance with an exemplary embodiment;
FIG. 3 is a diagram illustrating a message reception processing method in accordance with an exemplary embodiment;
FIG. 4 is a diagram illustrating a message reception processing method in accordance with an exemplary embodiment;
FIG. 5 is a diagram illustrating a message reception processing method in accordance with an exemplary embodiment;
FIG. 6 is a diagram illustrating a message reception processing method in accordance with an exemplary embodiment;
FIG. 7 is a block diagram illustrating a message reception processing apparatus in accordance with an exemplary embodiment;
fig. 8 is a block diagram illustrating a message reception processing apparatus according to an exemplary embodiment;
fig. 9 is a block diagram illustrating a message reception processing apparatus according to an exemplary embodiment;
fig. 10 is a block diagram illustrating a message reception processing apparatus according to an exemplary embodiment;
FIG. 11 is a block diagram illustrating entities of a terminal in accordance with an exemplary embodiment;
fig. 12 is a block diagram illustrating a terminal 1200 according to an example embodiment.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
For a traditional terminal using a "one-to-one" function mode, when an application server sends a message to an application installed on the terminal, the application server only needs to specify a hardware identifier of the terminal, for example, an International Mobile Equipment Identity (IMEI). Because only one account can be used for logging in one application at the same time by one terminal, namely only one application can be installed on the terminal, the terminal can correctly distribute the message to the application after the message is sent to the terminal according to the IMEI. In a system-based or application-based scenario, a plurality of accounts of an application can be used on one terminal, that is, a plurality of applications can be installed on one terminal, and when a message is sent to the terminal according to an IMEI, the terminal cannot determine to which application the message needs to be distributed, which may cause an error in message distribution.
Based on the above problem, the present disclosure provides a message receiving and processing method, where a sent message carries an application space identifier or an application login account, so that a terminal can determine an application for receiving the message, and thus the message can be correctly distributed in a scenario where the system is different or the application is too many.
Fig. 1 is a system architecture diagram of a message receiving and processing method provided by the present disclosure, as shown in fig. 1, the method relates to a terminal and a server. Wherein the server may be an application server of an application installed on the terminal. In the system split or application multi-open scene related by the present disclosure, the terminal is divided into a plurality of spaces. For each space, if the application of the application server is installed in the space, a long connection needs to be established with the application server for the space. I.e. the terminal needs to maintain different long connections for different spaces.
Fig. 2 is a schematic diagram illustrating a message reception processing method according to an exemplary embodiment, where an execution subject of the method is the terminal, that is, the method is applied to the terminal, a first application and a second application are installed in the terminal, the first application and the second application are the same application, and a login account of the first application is different from a login account of the second application. As shown in fig. 2, the method includes:
in step S201, a first message sent to a target application is received, where the target application is a first application or a second application, the first message includes an identifier of the target application, and the identifier of the target application includes: and the space identifier corresponding to the target application or the login account of the target application.
It should be noted that, in the implementation process, the inside of the mobile terminal may be divided into two spaces, or may be divided into more than two spaces. Each space may allow one application of the same application to be installed or may allow two or more applications of the same application to be installed. Therefore, the number of applications belonging to the same application that are allowed to be installed in the terminal may be two or more. When the number of applications belonging to the same application allowed to be installed in the terminal is two, the first application and the second application may be referred to as one of the two applications, respectively. When the number of applications belonging to the same application allowed to be installed in the terminal is plural, the first application and the second application may be referred to as any two applications of the plural applications, respectively.
Optionally, the first message received by the terminal from the server includes an identifier of the target application, where the identifier of the target application may include a space identifier corresponding to the target application, and may also include a login account of the target application.
In step S202, the first message is distributed to the target application according to the identifier of the target application.
If a certain space only allows installation of one application of the same application, the identifier of the target application may include a space identifier corresponding to the target application, and accordingly, the first message may carry the hardware identifier and the space identifier of the terminal. Furthermore, the first message can be sent to the terminal through the hardware identifier of the terminal, and then the terminal distributes the first message to the correct application through the space identifier.
For example, assuming that the application to which the server is to send the message is installed in space 1 of the terminal, and the hardware identifier of the terminal is 123, the first message may be carried in the first message (123, space 1), and through these two pieces of information, the terminal may determine to which application the first message is distributed.
If a certain space only allows two or more applications of the same application to be installed, the identifier of the target application may include a login account of the target application, and correspondingly, the first message may carry the hardware identifier of the terminal and the login account of the target application. Furthermore, the first message can be sent to the terminal through the hardware identifier of the terminal, and then the terminal distributes the first message to the correct application through the login account.
For example, assuming that the account number of the message to be sent by the server is abc, and the hardware identifier of the application terminal is 123, the first message may carry (123, abc), and through these two pieces of information, the terminal may determine to which application the first message is distributed.
In this embodiment, the terminal can determine the application for receiving the message by carrying the space identifier of the application or the login account of the application in the sent message, so that the message can be correctly distributed in a scene where the system is divided or the application is widely opened.
On the basis of the above embodiment, the present embodiment relates to an optional procedure for distributing the above first message to a target application.
Fig. 3 is a schematic diagram illustrating a message reception processing method according to an exemplary embodiment, where, as shown in fig. 3, the step S202 includes:
in step S301, it is determined whether the first message includes a space identifier corresponding to the target application, and if so, step S302 is executed.
Optionally, the terminal may store a corresponding relationship between the space and the applications installed in the space, where the corresponding relationship is a one-to-one corresponding relationship, that is, one application of the same application may be installed in one space. After receiving the first message, the terminal may determine, according to the correspondence and the space identifier carried in the first message, which application corresponds to the space identifier carried in the first message, and the application is the target application.
In step S302, the first message is distributed to the target application installed in the space corresponding to the space identifier.
And when the space identifier carried in the first message is judged to be the space identifier corresponding to a specific application, namely the application is a target application, the terminal directly distributes the first message to the application in the space corresponding to the space identifier.
In this embodiment, when one application of the same application is allowed to be installed in one space of the terminal, after the terminal determines that the first message includes the space identifier corresponding to the target application, the terminal may directly distribute the first message to the target application installed in the space corresponding to the space identifier, so that the message may be correctly distributed, and the distribution efficiency is high.
On the basis of the above embodiment, the present embodiment relates to another optional procedure for distributing the first message to the target application.
Fig. 4 is a schematic diagram illustrating a message reception processing method according to an exemplary embodiment, where, as shown in fig. 4, the step S202 includes:
in step S401, it is determined whether the first message includes the login account of the target application, and if yes, step S402 is executed.
When a plurality of applications of the same application are allowed to be installed in the space of the terminal, the correspondence relationship of the space and the application is a one-to-many relationship. Thus, the first message may be distributed to the target application through the login account of the target application.
In step S402, an installation space of the target application is determined based on the login account, and the first message is distributed to the target application in the installation space.
Optionally, if the login account of the target application is carried in the first message, the terminal may first determine, according to a relationship between the space and the application, which space the target application is installed in, and then distribute the first message to the target application whose login account in the corresponding space is the account in the first message.
In this embodiment, when multiple applications of the same application are allowed to be installed in one space of the terminal, after the terminal determines that the first message includes the login account corresponding to the target application, the terminal may determine the installation space of the target application according to the login account, and distribute the message to the target application in the installation space, so that the message may be correctly distributed.
On the basis of the above-described embodiment, the present embodiment relates to a process of same application registration.
Fig. 5 is a schematic diagram illustrating a message reception processing method according to an exemplary embodiment, and as shown in fig. 5, before the step S201, the method further includes:
in step S501, after receiving the installation file of the first application, an installation space is allocated for the first application, and the first application is installed in the allocated installation space.
It should be noted that the first application is the first application of the foregoing embodiment, that is, any application of the same applications.
Optionally, the terminal may allocate the installation space for the first application according to the size of the remaining storage amount of the space. Alternatively, the installation space may be allocated to the first application according to the priority of the space.
After the user selects to download the installation file of the first application, the terminal receives the installation file of the first application from the corresponding server, and then the installation space of the first application is selected through the step, and the installation of the application in the installation space is completed.
In step S502, a login account of the first application is registered with an application server of the first application according to registration information input by a user.
After the application is installed, the application may prompt the user to register a login account after the application is first started. After the user inputs the registration information according to the prompt message, the terminal sends the registration information of the user to the application server, and the application server confirms the registration information, so that the login account registration is completed.
In step S503, the correspondence between the login account of the first application and the identifier of the installation space of the first application is transmitted to the application server of the first application.
After the login account registration is completed, the terminal can store the corresponding relationship between the login account and the first application installation space, and send the corresponding relationship to the server, and the server stores the corresponding relationship. When the server needs to send a message to the login account in the following process, the server can carry the space identifier corresponding to the login account, so that the terminal can distribute the message to a correct application according to the space identifier.
In addition, when the terminal sends the corresponding relationship to the server, the hardware identifier of the terminal can be sent to the server, and the server can store the corresponding relationship among the hardware identifier, the space identifier and the login account. When the server needs to send a message to the login account in the following process, the message can be sent to the correct terminal according to the hardware identifier, and the terminal distributes the message to the correct application according to the space identifier.
In this embodiment, by sending the corresponding relationship between the registered login account and the application installation space to the server when the application is registered, the server can carry a correct space identifier when sending a message, and thus the terminal can perform correct message distribution according to the space identifier.
On the basis of the above embodiments, the present embodiment relates to an optional process in which the terminal allocates the installation space for the first application.
Optionally, the terminal may allocate the installation space to the first application in order from a high priority to a low priority of the space in the terminal.
The specific process is as follows.
Fig. 6 is a schematic diagram illustrating a message reception processing method according to an exemplary embodiment, where as shown in fig. 6, a terminal allocates an installation space for the first application in order of priority of space in the terminal from high to low in the following procedure:
in step S601, it is determined whether the first application can be installed in the first space of the terminal according to the application identifier of the first application, if so, the first application is installed in the first space, and if not, step S602 is executed.
In step S602, it is determined whether the second space of the terminal can install the first application according to the application identifier of the first application, if so, step S603 is executed, and if not, the user is prompted that the first application cannot be installed any more.
In step S603, the second space is used as an installation space of the first application.
Wherein the priority of the first space is higher than the priority of the second space.
Optionally, the terminal includes the first space and the second space, and the priority of the first space is higher than that of the second space, so the first space may be referred to as a primary space. After receiving the installation file of the first application, the terminal first obtains an application identifier of the first application, where the application identifier may be an application name, for example. The application names of the same applications are the same. The terminal can judge whether the first application can be installed in the first space according to the application identifier, if so, the first application can be directly installed, and if not, the terminal can continuously judge whether the first application can be installed in the second space. If the second space can be used for installing the first application, the second application is directly installed in the second space, otherwise, the user is prompted that the first application cannot be installed any more, and the prompt information can be, for example, "the installation number of the application reaches the upper limit and cannot be installed any more" and the like.
In another embodiment, the method by which the terminal determines whether a space can install the first application is different for a difference in the number of identical applications that one space can allow to install.
In an alternative manner, the terminal may first determine, according to the application identifier of the first application, whether an application that is the same as the first application is installed in the first space, and if not, determine that the first application may be installed in the first space of the terminal.
In this way, only one application of the same application is allowed to be installed in the first space, and therefore, the terminal may determine whether the same application is already installed in the first space according to the application identifier of the first application, and if the same application is not installed, the terminal may determine that the first application may be installed in the first space.
In another alternative, the terminal may first determine, according to the application identifier of the first application, whether the number of applications installed in the first space and identical to the first application is smaller than a preset threshold, and if so, determine that the first application may be installed in the first space of the terminal.
In this manner, if multiple applications of the same application are allowed to be installed in the first space, for example, two applications may be allowed to be installed at most, the preset threshold may be 2. For example, after the terminal acquires the application identifier S of the first application, it is determined whether the number of applications with the application identifier S in the applications installed in the first space is less than 2, if so, it is determined that the number of applications installed in the first space and identical to the number of applications installed in the first space does not reach the upper limit, the terminal may install the first application in the first space, otherwise, it is determined that the number of applications allowed to be installed in the first space and identical to the number of applications installed in the first space reaches the upper limit, and it is necessary to continue determining the next space.
It should be noted that, the above embodiment only takes the first space as an example for description, and the processing manner of the processing manner in the second space may also be any one of the above manners for processing, which is not described in detail again.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
Fig. 7 is a block diagram of a message receiving and processing apparatus according to an exemplary embodiment, where the apparatus is applied to a terminal, a first application and a second application are installed in the terminal, the first application and the second application are the same application, and a login account of the first application is different from a login account of the second application, as shown in fig. 7, the apparatus includes:
a receiving module 701, configured to receive a first message sent to a target application, where the target application is a first application or a second application, and the first message includes an identifier of the target application, where the identifier of the target application includes: and the space identifier corresponding to the target application or the login account of the target application.
A processing module 702 configured to distribute the first message to the target application according to the identity of the target application.
Fig. 8 is a block diagram illustrating a message reception processing apparatus according to an exemplary embodiment, and as shown in fig. 8, a processing block 702 includes:
the first processing sub-module 7021 is configured to, when the first message includes a space identifier corresponding to the target application, distribute the first message to the target application installed in a space corresponding to the space identifier.
Fig. 9 is a block diagram illustrating a message reception processing apparatus according to an exemplary embodiment, and as shown in fig. 9, the processing block 702 includes:
a second processing sub-module 7022, configured to, when the first message includes the login account of the target application, determine an installation space of the target application according to the login account, and distribute the first message to the target application in the installation space.
Fig. 10 is a block diagram illustrating a message reception processing apparatus according to an exemplary embodiment, and as shown in fig. 10, further includes:
an allocating module 703 configured to, after receiving the installation file of the first application, allocate an installation space for the first application, and install the first application in the allocated installation space.
A registration module 704 configured to register a login account of the first application with an application server of the first application according to registration information input by a user.
A sending module 705 configured to send, to an application server of the first application, a correspondence between a login account of the first application and an identifier of an installation space of the first application.
In another embodiment, the assignment module 703 is configured to:
and allocating installation space for the first application according to the sequence of the priority of the space in the terminal from high to low.
In another embodiment, the assignment module 703 is configured to:
and determining whether a first space of the terminal can be provided with the first application according to the application identifier of the first application, if not, determining whether a second space of the terminal can be provided with the first application according to the application identifier of the first application, and if so, taking the second space as the installation space of the first application.
Wherein the priority of the first space is higher than the priority of the second space.
In another embodiment, the assignment module 703 is configured to:
and judging whether the first space is provided with the application same as the first application or not according to the application identifier of the first application, and if not, determining that the first space of the terminal can be provided with the first application.
In another embodiment, the assignment module 703 is configured to:
and judging whether the number of the applications which are installed in the first space and are the same as the first application is smaller than a preset threshold value or not according to the application identification of the first application, and if so, determining that the first application can be installed in the first space of the terminal.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 11 is a block diagram illustrating an entity of a terminal according to an exemplary embodiment, as shown in fig. 11, the terminal includes:
a memory 1102 and a processor 1101.
The memory 1102 is used to store executable instructions for the processor 1101.
The processor 1101 is configured to perform the method in the above-described method embodiments.
In the above terminal embodiments, it should be understood that the Processor 92 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor, and the aforementioned memory may be a read-only memory (ROM), a Random Access Memory (RAM), a flash memory, a hard disk, or a solid state disk. SIM cards, also known as subscriber identity cards, smart cards, must be installed in a digital mobile phone for use. That is, the information of the digital mobile phone client, the encrypted key and the contents of the user's phone book are stored on the computer chip. The steps of a method disclosed in connection with the embodiments of the present disclosure may be embodied directly in a hardware processor, or in a combination of hardware and software modules.
Fig. 12 is a block diagram illustrating a terminal 1200 according to an example embodiment. The terminal 1200 may be, for example, a mobile phone, a computer, a tablet device, a personal digital assistant, or the like.
Referring to fig. 12, terminal 1200 may include one or more of the following components: processing component 1202, memory 1204, power component 1206, multimedia component 1208, audio component 1210, input/output (I/O) interface 1212, sensor component 1214, and communications component 1216.
The processing component 1202 generally controls overall operation of the terminal 1200, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 1202 may include one or more processors 1220 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 1202 can include one or more modules that facilitate interaction between the processing component 1202 and other components. For example, the processing component 1202 can include a multimedia module to facilitate interaction between the multimedia component 1208 and the processing component 1202.
The memory 1204 is configured to store various types of data to support operation at the terminal 1200. Examples of such data include instructions for any application or method operating on terminal 1200, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1204 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power supply components 1206 provide power to the various components of terminal 1200. Power components 1206 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for terminal 1200.
The multimedia components 1208 include a touch-sensitive display screen providing an output interface between the terminal 1200 and a user. In some embodiments, the touch display screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1208 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the terminal 1300 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
Audio component 1210 is configured to output and/or input audio signals. For example, the audio assembly 1210 includes a Microphone (MIC) configured to receive external audio signals when the terminal 1200 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1204 or transmitted via the communication component 1216. In some embodiments, audio assembly 1210 further includes a speaker for outputting audio signals.
The I/O interface 1212 provides an interface between the processing component 1202 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 1214 includes one or more sensors for providing various aspects of state assessment for the terminal 1200. For example, sensor assembly 1214 can detect an open/closed state of terminal 1200, the relative positioning of components, such as a display and keypad of terminal 1200, sensor assembly 1214 can also detect a change in position of terminal 1200 or a component of terminal 1200, the presence or absence of user contact with terminal 1200, orientation or acceleration/deceleration of terminal 1200, and a change in temperature of terminal 1200. The sensor assembly 1214 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 1214 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1214 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
Communications component 1216 is configured to facilitate communications between terminal 1200 and other devices, either wired or wirelessly. The terminal 1200 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1216 receives the broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 1216 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the terminal 1200 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described binocular camera-based ranging method in the terminal.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as memory 1204 comprising instructions, executable by processor 1220 of terminal 1200 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer-readable storage medium, wherein instructions, when executed by a processor of a terminal 1200, enable the terminal 1200 to perform the message reception processing method described above
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (15)

1. A message receiving and processing method is applied to a terminal, and is characterized in that a first application and a second application are installed in the terminal, the first application and the second application are the same application, and a login account of the first application is different from a login account of the second application, and the method comprises the following steps:
receiving a first message sent to a target application, wherein the target application is a first application or a second application, the first message includes an identifier of the target application, and the identifier of the target application includes: the space identifier corresponding to the target application or the login account of the target application; according to the identification of the target application, the first message is distributed to the target application;
the distributing the first message to the target application according to the identifier of the target application comprises:
if the first message comprises the space identifier corresponding to the target application, distributing the first message to the target application in the space corresponding to the space identifier according to the space identifier; or;
if the first message comprises the login account of the target application, determining the installation space of the target application according to the corresponding relation between the preset space and the application, and distributing the first message to the target application corresponding to the login account in the installation space.
2. The method of claim 1, wherein prior to receiving the first message sent to the target application, further comprising:
after receiving the installation file of the first application, allocating installation space for the first application, and installing the first application in the allocated installation space;
registering a login account of the first application to an application server of the first application according to registration information input by a user;
and sending the corresponding relation between the login account of the first application and the identifier of the installation space of the first application to an application server of the first application.
3. The method of claim 2, wherein the allocating installation space for the first application comprises:
and allocating installation space for the first application according to the sequence of the priority of the space in the terminal from high to low.
4. The method according to claim 3, wherein said allocating installation space for the first application in order of priority of space in the terminal from high to low comprises:
determining whether a first space of the terminal can be provided with the first application according to the application identifier of the first application, if not, determining whether a second space of the terminal can be provided with the first application according to the application identifier of the first application, and if so, taking the second space as the installation space of the first application;
wherein the priority of the first space is higher than the priority of the second space.
5. The method according to claim 4, wherein the determining whether the first application can be installed in the first space of the terminal according to the application identifier of the first application comprises:
and judging whether the first space is provided with the application same as the first application or not according to the application identifier of the first application, and if not, determining that the first space of the terminal can be provided with the first application.
6. The method according to claim 4, wherein the determining whether the first application can be installed in the first space of the terminal according to the application identifier of the first application comprises:
and judging whether the number of the applications which are installed in the first space and are the same as the first application is smaller than a preset threshold value or not according to the application identification of the first application, and if so, determining that the first application can be installed in the first space of the terminal.
7. A message receiving and processing device is applied to a terminal, and is characterized in that a first application and a second application are installed in the terminal, the first application and the second application are the same application, and a login account of the first application is different from a login account of the second application, and the message receiving and processing device comprises:
a receiving module configured to receive a first message sent to a target application, where the target application is a first application or a second application, the first message includes an identifier of the target application, and the identifier of the target application includes: the space identifier corresponding to the target application or the login account of the target application;
a processing module configured to distribute the first message to the target application according to the identification of the target application; the method specifically comprises the following steps: if the first message comprises the space identifier corresponding to the target application, distributing the first message to the target application in the space corresponding to the space identifier according to the space identifier; or; if the first message comprises the login account of the target application, determining the installation space of the target application according to the corresponding relation between the preset space and the application, and distributing the first message to the target application corresponding to the login account in the installation space.
8. The apparatus of claim 7, further comprising:
the allocation module is configured to allocate installation space for the first application after receiving the installation file of the first application, and install the first application in the allocated installation space;
the registration module is configured to register a login account of the first application with an application server of the first application according to registration information input by a user;
a sending module configured to send, to an application server of the first application, a correspondence between a login account of the first application and an identifier of an installation space of the first application.
9. The apparatus of claim 8, wherein the assignment module is configured to:
and allocating installation space for the first application according to the sequence of the priority of the space in the terminal from high to low.
10. The apparatus of claim 9, wherein the assignment module is configured to:
determining whether a first space of the terminal can be provided with the first application according to the application identifier of the first application, if not, determining whether a second space of the terminal can be provided with the first application according to the application identifier of the first application, and if so, taking the second space as the installation space of the first application;
wherein the priority of the first space is higher than the priority of the second space.
11. The apparatus of claim 10, wherein the assignment module is configured to:
and judging whether the first space is provided with the application same as the first application or not according to the application identifier of the first application, and if not, determining that the first space of the terminal can be provided with the first application.
12. The apparatus of claim 10, wherein the assignment module is configured to:
and judging whether the number of the applications which are installed in the first space and are the same as the first application is smaller than a preset threshold value or not according to the application identification of the first application, and if so, determining that the first application can be installed in the first space of the terminal.
13. A terminal, characterized in that the terminal comprises:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of any one of claims 1-6.
14. A terminal, characterized in that the terminal comprises:
memory, a processor and a computer program, the processor running the computer program to perform the method of any of claims 1-6.
15. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of any one of claims 1-6.
CN201810974235.9A 2018-08-24 2018-08-24 Message receiving and processing method, device, terminal and readable storage medium Active CN109194639B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810974235.9A CN109194639B (en) 2018-08-24 2018-08-24 Message receiving and processing method, device, terminal and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810974235.9A CN109194639B (en) 2018-08-24 2018-08-24 Message receiving and processing method, device, terminal and readable storage medium

Publications (2)

Publication Number Publication Date
CN109194639A CN109194639A (en) 2019-01-11
CN109194639B true CN109194639B (en) 2021-10-08

Family

ID=64919797

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810974235.9A Active CN109194639B (en) 2018-08-24 2018-08-24 Message receiving and processing method, device, terminal and readable storage medium

Country Status (1)

Country Link
CN (1) CN109194639B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115277829B (en) * 2021-04-29 2024-05-24 中国移动通信集团终端有限公司 Message pushing method, device, system, storage medium and electronic equipment

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8688627B2 (en) * 2007-09-28 2014-04-01 Xcerion Aktiebolag Transaction propagation in a networking environment
US10270871B2 (en) * 2014-04-08 2019-04-23 Dropbox, Inc. Browser display of native application presence and interaction data
CN104866342A (en) * 2015-05-07 2015-08-26 北京数字天域科技有限责任公司 Method and device for simultaneously starting multiple same applications on intelligent terminal
CN105138564A (en) * 2015-07-23 2015-12-09 小米科技有限责任公司 Data file reading method and apparatus
CN105653317A (en) * 2015-12-24 2016-06-08 宇龙计算机通信科技(深圳)有限公司 Application downloading and installing method and terminal device
CN106095603B (en) * 2016-06-23 2019-03-29 厦门芯鸽信息科技有限公司 A kind of identical application program of android system can open multiple methods simultaneously
CN106201620A (en) * 2016-07-15 2016-12-07 宇龙计算机通信科技(深圳)有限公司 A kind of application is opened more and is realized device, terminal and apply and open implementation method more
CN106383672B (en) * 2016-10-10 2019-09-24 Oppo广东移动通信有限公司 A kind of data-erasure method, device and mobile terminal for opening application more
CN106650402B (en) * 2016-10-10 2019-07-12 Oppo广东移动通信有限公司 Authority configuring method, device and the mobile terminal of application program
CN106445706B (en) * 2016-10-10 2019-07-12 Oppo广东移动通信有限公司 Open the data transmission method, device and mobile terminal of application more
CN106445647B (en) * 2016-10-10 2019-08-02 Oppo广东移动通信有限公司 Open the data manipulation method, device and mobile terminal of application more
CN106502732B (en) * 2016-10-10 2020-03-10 Oppo广东移动通信有限公司 Application closing method and device and intelligent terminal
CN106484479B (en) * 2016-10-10 2019-08-27 Oppo广东移动通信有限公司 A kind of management method, device and intelligent terminal for opening application more
CN106547451B (en) * 2016-10-27 2022-10-21 宇龙计算机通信科技(深圳)有限公司 Multi-open application program method, multi-open application program device and terminal
CN106980519A (en) * 2017-03-29 2017-07-25 联想(北京)有限公司 A kind of data processing method and electronic equipment

Also Published As

Publication number Publication date
CN109194639A (en) 2019-01-11

Similar Documents

Publication Publication Date Title
US20200205211A1 (en) Unmanned aerial vehicle access method and device
CN104219092B (en) The compatibility method of a kind of router administration application and router firmware and device
US20160381629A1 (en) Virtual sim card for accessing operator network
US10608988B2 (en) Method and apparatus for bluetooth-based identity recognition
EP3226432B1 (en) Method and devices for sharing media data between terminals
US11457479B2 (en) Method and apparatus for configuring random access occasion, method and apparatus for random access
CN109156026B (en) Method, device, equipment and storage medium for sending uplink scheduling request
CN107094094B (en) Application networking method and device and terminal
CN108886789B (en) Method and device for determining uplink and downlink switching points
CN109582400B (en) Program calling method and device
CN107820300A (en) Network search method and device
CN105427161A (en) Monetary exchange rate exchange method and device
US20240063980A1 (en) System information reception method and apparatus, and system information transmission method and apparatus
CN110166564B (en) Information communication method, terminal and storage medium
EP3739952A1 (en) Cell type indication method and apparatus
CN112237036A (en) Problem reporting method and problem reporting device
CN106717102B (en) Method and device for sending control Protocol Data Unit (PDU)
CN104618987B (en) Access the method and device of network
CN107070707B (en) Method and device for determining initialization mode of router
CN109156025B (en) Uplink resource acquisition method, device and computer readable storage medium
CN106792570B (en) Positioning method and device
CN105376318A (en) File transmission method, device and system
CN109885360B (en) Data processing method, device and storage medium
CN109194639B (en) Message receiving and processing method, device, terminal and readable storage medium
CN104780256A (en) Address book management method and device and intelligent terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant