CN107241432B - Message receiving method and device, electronic equipment and computer storage medium - Google Patents

Message receiving method and device, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN107241432B
CN107241432B CN201710553194.1A CN201710553194A CN107241432B CN 107241432 B CN107241432 B CN 107241432B CN 201710553194 A CN201710553194 A CN 201710553194A CN 107241432 B CN107241432 B CN 107241432B
Authority
CN
China
Prior art keywords
platform
push message
message
target application
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
CN201710553194.1A
Other languages
Chinese (zh)
Other versions
CN107241432A (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 CN201710553194.1A priority Critical patent/CN107241432B/en
Publication of CN107241432A publication Critical patent/CN107241432A/en
Application granted granted Critical
Publication of CN107241432B publication Critical patent/CN107241432B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/23Reliability checks, e.g. acknowledgments or fault reporting

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure relates to a message receiving method and device, and a message pushing method and device, wherein the message receiving method comprises the following steps: receiving a push message sent by a server in a transparent transmission mode, wherein the push message is associated with an application identifier of a target application; determining the target application according to the application identifier; and setting a mode for displaying the push message according to the target application. According to the embodiment of the disclosure, the push message is transmitted to the platform in a transparent transmission mode, so that the platform can set the display mode of the push message as required. For example, the method for displaying the push message can be set according to the target application, so that when the user sees the push message, the application corresponding to the message can be determined according to the display method, and the readability of the push message is improved.

Description

Message receiving method and device, electronic equipment and computer storage medium
Technical Field
The present disclosure relates to the field of terminal technologies, and in particular, to a message receiving method, a message receiving apparatus, a message pushing method, a message pushing apparatus, an electronic device, and a computer-readable storage medium.
Background
For an application running on a platform, when a server corresponding to the application needs a corresponding message, the pushed message can be transmitted to the platform due to the limitation of a system where the platform is located, and cannot be directly transmitted to the application running on the platform.
This results in that the server sending the push message sets the manner of presenting the push message according to the manner of presenting the platform, so that when the user sees the push message, the user cannot determine which application on the platform the push message corresponds to, which may cause a decrease in readability of the push message.
Disclosure of Invention
The present disclosure provides a message receiving method, a message receiving apparatus, a message pushing method, a message pushing apparatus, an electronic device, and a computer-readable storage medium to solve the disadvantages of the related art.
According to a first aspect of the embodiments of the present disclosure, there is provided a message receiving method, including:
receiving a push message sent by a server in a transparent transmission mode, wherein the push message is associated with an application identifier of a target application;
determining the target application according to the application identifier;
and setting a mode for displaying the push message according to the target application.
Optionally, the method further comprises:
and displaying the push message in a platform running by the target application according to the mode, and/or displaying the message in the target application.
Optionally, the push message includes a notification bar message and/or a pass-through message.
Optionally, in a case that the push message includes a pass-through message, the method further includes:
determining whether the target application is running;
and if the target application runs, sending receipt information to the server.
And if the target application is not running, sending receipt information to the server when waiting for the target application to run.
According to a second aspect of the embodiments of the present disclosure, there is provided a message pushing method, including:
receiving a push message sent by a server of an application;
and sending the push message to the platform running the application in a transparent transmission mode.
Optionally, before sending the push message to the platform on which the application runs in a transparent transmission manner, the method further includes:
determining an identity of the platform, associating the identity of the platform with the push message.
According to a third aspect of the embodiments of the present disclosure, there is provided a message receiving apparatus including:
the message receiving module is configured to receive a push message sent by a server in a transparent transmission mode, and the push message is associated with an application identifier of a target application;
an application determination module configured to determine the target application according to the application identification;
and the display setting module is configured to set a mode of displaying the push message according to the target application.
Optionally, the apparatus further comprises:
a message presentation module configured to present the push message in a platform on which the target application runs and/or present the message in the target application according to the manner.
Optionally, the push message includes a notification bar message and/or a pass-through message.
Optionally, in a case that the push message includes a pass-through message, the apparatus further includes:
a run determination module configured to determine whether the target application is running;
an information receipt module configured to send receipt information to the server if the operation determination module determines that the target application is operating; and sending receipt information to the server when the operation determining module determines that the target application is not in operation and waits for the target application to operate.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a message pushing apparatus, including:
a message receiving module configured to receive a push message sent by a server of an application;
and the message sending module is configured to send the push message to the platform running the application in a transparent transmission mode.
Optionally, the apparatus further comprises:
an identity association module configured to determine an identity of the platform, associate the identity of the platform with the push message.
According to a fifth aspect of embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a push message sent by a server in a transparent transmission mode, wherein the push message is associated with an application identifier of a target application;
determining the target application according to the application identifier;
and setting a mode for displaying the push message according to the target application.
According to a sixth 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, performs the steps of:
receiving a push message sent by a server in a transparent transmission mode, wherein the push message is associated with an application identifier of a target application;
determining the target application according to the application identifier;
and setting a mode for displaying the push message according to the target application.
According to a seventh aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a push message sent by a server of an application;
and sending the push message to the platform running the application in a transparent transmission mode.
According to an eighth 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, performs the steps of:
receiving a push message sent by a server of an application;
and sending the push message to the platform running the application in a transparent transmission mode.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
according to the embodiment, the push message is transmitted to the platform in a transparent transmission mode, so that the platform can set the display mode of the push message according to the requirement. For example, the method for displaying the push message can be set according to the target application, so that when the user sees the push message, the application corresponding to the message can be determined according to the display method, and the readability of the push message is improved.
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 schematic flow chart illustrating a message receiving method according to an exemplary embodiment.
Fig. 2 is a schematic flow chart diagram illustrating another message reception method in accordance with an example embodiment.
Fig. 3 is a schematic flow chart illustrating yet another message receiving method according to an exemplary embodiment.
Fig. 4 is a schematic flow chart diagram illustrating a message pushing method in accordance with an exemplary embodiment.
Fig. 5 is a schematic flow chart diagram illustrating another message pushing method in accordance with an example embodiment.
Fig. 6 is a schematic block diagram illustrating a message receiving apparatus according to an example embodiment.
Fig. 7 is a schematic block diagram illustrating another message receiving apparatus in accordance with an example embodiment.
Fig. 8 is a schematic block diagram illustrating another message receiving apparatus in accordance with an example embodiment.
Fig. 9 is a schematic block diagram illustrating a message pushing apparatus according to an example embodiment.
Fig. 10 is a schematic block diagram illustrating another message pushing device in accordance with an example embodiment.
Fig. 11 is a schematic block diagram illustrating an apparatus for message reception in accordance with an example embodiment.
Fig. 12 is a schematic block diagram illustrating an apparatus for message push according to an example embodiment.
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.
Fig. 1 is a schematic flowchart of a message receiving method according to an exemplary embodiment, where the embodiment may be applied to a platform, the platform may run in a system, the system may be an operating system of a terminal, the terminal may be an electronic device such as a mobile phone and a tablet computer, the platform may provide a running environment for an application, and the application may run on the platform. As in the embodiment shown in fig. 1, the message receiving method may include the following steps.
In step S11, receiving a push message sent by the server in a transparent transmission manner, where the push message is associated with an application identifier of the target application;
in one embodiment, the server may be a server of the platform, and when the server of the application needs to send the push message, since the application needs to run on the platform, the push message may be sent to the server of the platform first, and then the server of the platform transmits the push message to the platform in a transparent transmission manner.
In an embodiment, the server of the platform sends the push message in a transparent transmission manner, that is, the server of the platform does not process the push message in the process of sending the push message, for example, the display manner and the format of the push message are not set, but the platform receiving the push message processes the push message.
In step S12, the target application is determined according to the application identifier.
In one embodiment, the target application may run on the platform, and since the push message is associated with the application identifier of the target application, when the push message is received, the application identifier associated with the push message or the association information of the application identifier may be received together, so that the application identifier associated with the push message may be determined, and the target application corresponding to the application identifier may be determined according to the application identifier.
In step S13, the push message is displayed according to the target application setting.
In one embodiment, the push message is transmitted to the platform in a transparent transmission manner, so that the platform can set a display manner of the push message as required. For example, the method for displaying the push message can be set according to the target application, so that when the user sees the push message, the application corresponding to the message can be determined according to the display method, and the readability of the push message is improved.
In one embodiment, the platform may set a manner of presenting the push message according to the target application, for example, a message presentation interface of the target application may be generated, and then the push message may be presented in the presentation interface, so that the user may quickly and accurately determine the application corresponding to the push message.
In one embodiment, in addition to generating a message presentation interface of the target application and then presenting the push message in the presentation interface, a manner of presenting the push message may be set according to a type of the target application, for example, if the target application is a communication application, a conversation bubble may be generated, and the push message may be presented in the conversation bubble, for example, if the target application is an information application, the push message may be composed according to a predetermined format (for example, a news format, including a title, a text, and the like), and the composed push message may be presented.
Fig. 2 is a schematic flow chart diagram illustrating another message reception method in accordance with an example embodiment. As shown in fig. 2, on the basis of the embodiment shown in fig. 1, the method further includes:
in step S14, the push message is presented in the platform where the target application runs according to the manner, and/or the message is presented in the target application.
In one embodiment, the push message may be exposed directly in the platform, for example, a message exposure interface of the target application is generated in the platform, and the push message is exposed in the exposure interface. Or the push message can be called back to the target application, and the target application displays the push message in a display interface of the target application. The push message can also be presented in the platform and presented in the target application at the same time.
Optionally, the push message includes a notification bar message and/or a pass-through message.
In one embodiment, the push message sent by the server of the application to the application may be a notification bar message, that is, a display mode of the push message is predetermined, and for the push message, when the platform sets the display mode of the push message, the platform may directly display the push message according to the predetermined display mode; for the push message, when the platform sets the manner of displaying the push message, the display manner may be set according to the embodiment shown in fig. 2; notification bar messages and pass-through messages may also be included simultaneously.
Fig. 3 is a schematic flow chart illustrating yet another message receiving method according to an exemplary embodiment. As shown in fig. 3, on the basis of the embodiment shown in fig. 1, in the case that the push message includes a pass-through message, the method further includes:
in step S15, determining whether the target application is running, if the target application is running, performing step S16, and if the target application is not running, performing step S17;
in step S16, response piece information is sent to the server.
In step S17, when waiting for the target application to run, receipt information is sent to the server.
In one embodiment, because the server of the platform does not process the push message in the process of sending the push message in a transparent transmission manner, in order to enable the server of the platform to determine that the push message has been transmitted to the platform, the platform needs to send a receipt to the server of the platform when receiving the push message, and when not receiving the receipt, the server of the platform may store the push message in a database (an online database or an offline database), so that the push message is sent to the platform where the target application is located according to a request of the target application (the target application may directly request the server of the platform, or may request the server of the target application, and then the server of the target application requests the server of the platform) when the subsequent target application runs; and the server of the platform deletes the push message from the database once receiving the receipt.
Based on the embodiment shown in fig. 1, the push message received by the platform eventually needs to be processed, e.g., stored, by the target application. If the platform sends a receipt to the server of the platform when receiving the push message, but the target application is not running, the server of the platform deletes the push message in the database when receiving the receipt, which will cause the server of the platform to be unable to send the push message to the platform in the following, and further cause the push message to be unable to be processed by the target application.
Therefore, the platform can be set to determine whether the target application is running or not when receiving the push message, and if the push message is running, the push message can be determined to be effectively processed, so that the receipt information can be sent to the server of the platform, and if the push message is not running, the push message can be determined to be temporarily incapable of being effectively processed, so that the receipt information is not sent first until the target application runs (the target application requests the server of the platform to send the push information corresponding to the target application), and then the receipt information is sent to the platform. Thereby ensuring that the push message can be processed effectively.
Fig. 4 is a schematic flow chart diagram illustrating a message pushing method in accordance with an exemplary embodiment. The present embodiment may be applied to a server of a platform, and the platform may be the platform described in any one of fig. 1 to 3. As shown in fig. 4, the message pushing method includes:
in step S41, a push message sent by the server of the application is received.
In one embodiment, when the server of the application needs to send the push message, the application needs to run on the platform, so the push message can be sent to the server of the platform first.
In step S42, the push message is sent to the platform where the application operates in a transparent transmission manner.
In one embodiment, the push message is transmitted to the platform in a transparent transmission manner, that is, the server of the platform does not process the push message in the process of sending the push message, but the platform receiving the push message processes the push message, so that the platform can set a display manner of the push message as required. For example, the method for displaying the push message can be set according to the target application, so that when the user sees the push message, the application corresponding to the message can be determined according to the display method, and the readability of the push message is improved.
Fig. 5 is a schematic flow chart diagram illustrating another message pushing method according to an exemplary embodiment, as shown in fig. 5, based on the embodiment shown in fig. 4. Before sending the push message to the platform where the application runs in a transparent transmission manner, the method further includes:
in step S43, an identity of the platform is determined, which is associated with the push message.
In one embodiment, a system in which a platform is located instead of a platform directly receiving a push message sent by a server of the platform is limited by the current system, and the system can only transmit the push message to an application running in the system, but cannot transmit the push message to the application running in the application, and the platform can be classified as an application per se, so that the system can only transmit the push message to the platform, but cannot transmit the push message to the application in the platform.
In order to ensure that the push message can be transmitted to the corresponding target application, the server of the target application establishes an association relationship between the push message and the application identifier of the target application before sending the push message. However, since the system can only transmit the push message to the platform, the target application cannot be found according to the application identification, which may cause the message to be detained in the system.
Therefore, before sending the push message to the platform, the server capable of setting the platform determines the identifier of the platform, and then associates the identifier of the platform with the push message, and when the system receives the push message, the server capable of setting the platform associated with the push message can receive the identifier of the platform associated with the push message together, so that the platform capable of setting the display mode of the push message is determined according to the identifier of the platform, thereby transmitting the push message to the platform, ensuring that the platform can set the display mode of the push message, determining the target application according to the application identifier associated with the push message, and transmitting the push message to the target application for processing.
Corresponding to the foregoing message pushing method, the present disclosure also provides an embodiment of a message pushing apparatus.
Fig. 6 is a schematic block diagram illustrating a message receiving apparatus according to an example embodiment. As shown in fig. 6, the message receiving apparatus includes:
a message receiving module 61 configured to receive a push message sent by a server in a transparent transmission manner, where the push message is associated with an application identifier of a target application;
an application determination module 62 configured to determine the target application according to the application identification;
a display setting module 63 configured to set a manner of displaying the push message according to the target application.
Fig. 7 is a schematic block diagram illustrating another message receiving apparatus in accordance with an example embodiment. As shown in fig. 7, on the basis of the embodiment shown in fig. 6, the apparatus further includes:
a message presentation module 64 configured to present the push message in a platform on which the target application runs and/or present the message in the target application according to the manner.
Optionally, the push message includes a notification bar message and/or a pass-through message.
Fig. 8 is a schematic block diagram illustrating another message receiving apparatus in accordance with an example embodiment. As shown in fig. 8, on the basis of the embodiment shown in fig. 6, in the case that the push message includes a pass-through message, the apparatus further includes:
a run determination module 65 configured to determine whether the target application is running;
an information receipt module 66 configured to send receipt information to the server in the event that the run determination module 65 determines that the target application is running; and in the case where the operation determination module 65 determines that the target application is not operating, wait for the target application to operate, and send response piece information to the server.
Corresponding to the foregoing message pushing method, the present disclosure also provides an embodiment of a message pushing apparatus.
Fig. 9 is a schematic block diagram illustrating a message pushing apparatus according to an example embodiment. As shown in fig. 9, the message push apparatus includes:
a message receiving module 91 configured to receive a push message sent by a server of an application;
and the message sending module 92 is configured to send the push message to the platform on which the application runs in a transparent transmission mode.
Fig. 10 is a schematic block diagram illustrating another message pushing device in accordance with an example embodiment. As shown in fig. 10, on the basis of the embodiment shown in fig. 9, the apparatus further includes:
an identity association module 93 configured to determine an identity of the platform, associate the identity of the platform with the push message.
With regard to the apparatus in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments of the related method, and will not be described in detail here.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, wherein the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. One of ordinary skill in the art can understand and implement it without inventive effort.
Correspondingly, the present disclosure also provides a message receiving apparatus, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: receiving a push message sent by a server in a transparent transmission mode, wherein the push message is associated with an application identifier of a target application; determining the target application according to the application identifier; and setting a mode for displaying the push message according to the target application.
Accordingly, the present disclosure also provides a terminal comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured for execution by the one or more processors to include instructions for: receiving a push message sent by a server in a transparent transmission mode, wherein the push message is associated with an application identifier of a target application; determining the target application according to the application identifier; and setting a mode for displaying the push message according to the target application.
Fig. 11 is a schematic block diagram illustrating an apparatus 1100 for message reception in accordance with an example embodiment. For example, the apparatus 1100 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 11, apparatus 1100 may include one or more of the following components: processing component 1102, memory 1104, power component 1106, multimedia component 1108, audio component 1110, input/output (I/O) interface 1112, sensor component 1114, and communications component 1116.
The processing component 1102 generally controls the overall operation of the device 1100, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 1102 may include one or more processors 1120 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 1102 may include one or more modules that facilitate interaction between the processing component 1102 and other components. For example, the processing component 1102 may include a multimedia module to facilitate interaction between the multimedia component 1108 and the processing component 1102.
The memory 1104 is configured to store various types of data to support operations at the apparatus 1100. Examples of such data include instructions for any application or method operating on device 1100, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1104 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.
A power component 1106 provides power to the various components of the device 1100. The power components 1106 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 1100.
The multimedia component 1108 includes a screen that provides an output interface between the device 1100 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. 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 1108 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 device 1100 is in an operating mode, such as a shooting 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.
The audio component 1110 is configured to output and/or input audio signals. For example, the audio component 1110 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 1100 is in operating modes, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1104 or transmitted via the communication component 1116. In some embodiments, the audio assembly 1110 further includes a speaker for outputting audio signals.
The I/O interface 1112 provides an interface between the processing component 1102 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 1114 includes one or more sensors for providing various aspects of state assessment for the apparatus 1100. For example, the sensor assembly 1114 may detect an open/closed state of the apparatus 1100, the relative positioning of components, such as a display and keypad of the apparatus 1100, the sensor assembly 1114 may also detect a change in position of the apparatus 1100 or a component of the apparatus 1100, the presence or absence of user contact with the apparatus 1100, orientation or acceleration/deceleration of the apparatus 1100, and a change in temperature of the apparatus 1100. The sensor assembly 1114 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1114 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 1114 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1116 is configured to facilitate wired or wireless communication between the apparatus 1100 and other devices. The apparatus 1100 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 1116 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1116 also 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 apparatus 1100 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 methods illustrated in any of the embodiments of fig. 1-3 described above.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 1104 comprising instructions, executable by the processor 1120 of the apparatus 1100 to perform the method described above 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.
Correspondingly, the present disclosure also provides a message pushing apparatus, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: receiving a push message sent by a server of an application; and sending the push message to the platform running the application in a transparent transmission mode.
Accordingly, the present disclosure also provides a terminal comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured for execution by the one or more processors to include instructions for: receiving a push message sent by a server of an application; and sending the push message to the platform running the application in a transparent transmission mode.
Fig. 12 is a schematic block diagram illustrating an apparatus 1200 for message pushing according to an example embodiment. For example, the apparatus 1200 may be provided as a server. Referring to fig. 12, apparatus 1200 includes a processing component 1222 that further includes one or more processors, and memory resources, represented by memory 1232, for storing instructions, such as applications, that are executable by processing component 1222. The application programs stored in memory 1232 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1222 is configured to execute instructions to perform the methods of the embodiments illustrated in fig. 4 or fig. 5 described above.
The apparatus 1200 may also include a power supply component 1226 configured to perform power management of the apparatus 1200, a wired or wireless network interface 1250 configured to connect the apparatus 1200 to a network, and an input output (I/O) interface 1258. The apparatus 1200 may operate based on an operating system stored in the memory 1232, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
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 (8)

1. A message receiving method, adapted to a platform, the method comprising:
receiving a push message sent by a server in a transparent transmission mode, wherein the push message is associated with an application identifier of a target application, the target application runs on a platform, the push message can be transmitted to the platform by a system and cannot be directly transmitted to the application running on the platform, the server determines the identifier of the platform before sending the push message to the platform, and then associates the identifier of the platform with the push message, and when the system receives the push message, the system receives the identifier of the platform associated with the push message together to determine the platform capable of setting a push message display mode according to the identifier of the platform, so that the push message is transmitted to the platform;
determining the target application according to the application identifier;
setting a mode for displaying the push message according to the target application;
and displaying the push message in a platform running by the target application according to the mode, wherein a message display interface of the target application is generated in the platform, and the push message is directly displayed in the display interface.
2. The method of claim 1, wherein the push message comprises a pass-through message.
3. The method of claim 2, wherein in the case that the push message comprises a pass-through message, the method further comprises:
determining whether the target application is running;
if the target application runs, sending receipt information to the server;
and if the target application is not running, sending receipt information to the server when waiting for the target application to run.
4. A message receiving apparatus adapted for use with a platform, the apparatus comprising:
the system comprises a message receiving module, a message display module and a message sending module, wherein the message receiving module is configured to receive a push message sent by a server in a transparent transmission mode, the push message is associated with an application identifier of a target application, the target application runs on a platform, the push message can be transmitted to the platform by a system and cannot be directly transmitted to the application running on the platform, the server determines the identifier of the platform before sending the push message to the platform, then associates the identifier of the platform with the push message, and when receiving the push message, the system receives the identifier of the platform associated with the push message together to determine the platform capable of setting a push message display mode according to the identifier of the platform, so that the push message is transmitted to the platform;
an application determination module configured to determine the target application according to the application identification;
the display setting module is configured to set a mode of displaying the push message according to the target application;
and the message display module is configured to display the push message in a platform where the target application runs according to the mode, wherein a message display interface of the target application is generated in the platform, and the push message is directly displayed in the display interface.
5. The apparatus of claim 4, wherein the push message comprises a pass-through message.
6. The apparatus of claim 5, wherein in a case that the push message comprises a pass-through message, the apparatus further comprises:
a run determination module configured to determine whether the target application is running;
an information receipt module configured to send receipt information to the server if the operation determination module determines that the target application is operating; and sending receipt information to the server when the operation determining module determines that the target application is not in operation and waits for the target application to operate.
7. An electronic device adapted for use with a platform, the electronic device comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a push message sent by a server in a transparent transmission mode, wherein the push message is associated with an application identifier of a target application, the target application runs on a platform, the push message can be transmitted to the platform by a system and cannot be directly transmitted to the application running on the platform, the server determines the identifier of the platform before sending the push message to the platform, and then associates the identifier of the platform with the push message, and when the system receives the push message, the system receives the identifier of the platform associated with the push message together to determine the platform capable of setting a push message display mode according to the identifier of the platform, so that the push message is transmitted to the platform;
determining the target application according to the application identifier;
setting a mode for displaying the push message according to the target application;
and displaying the push message in a platform running by the target application according to the mode, wherein a message display interface of the target application is generated in the platform, and the push message is directly displayed in the display interface.
8. A computer-readable storage medium, on which a computer program is stored, adapted to a platform, which program, when executed by a processor, performs the steps of:
receiving a push message sent by a server in a transparent transmission mode, wherein the push message is associated with an application identifier of a target application, the target application runs on a platform, the push message can be transmitted to the platform by a system and cannot be directly transmitted to the application running on the platform, the server determines the identifier of the platform before sending the push message to the platform, and then associates the identifier of the platform with the push message, and when the system receives the push message, the system receives the identifier of the platform associated with the push message together to determine the platform capable of setting a push message display mode according to the identifier of the platform, so that the push message is transmitted to the platform;
determining the target application according to the application identifier;
setting a mode for displaying the push message according to the target application;
and displaying the push message in a platform running by the target application according to the mode, wherein a message display interface of the target application is generated in the platform, and the push message is directly displayed in the display interface.
CN201710553194.1A 2017-07-07 2017-07-07 Message receiving method and device, electronic equipment and computer storage medium Active CN107241432B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710553194.1A CN107241432B (en) 2017-07-07 2017-07-07 Message receiving method and device, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710553194.1A CN107241432B (en) 2017-07-07 2017-07-07 Message receiving method and device, electronic equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN107241432A CN107241432A (en) 2017-10-10
CN107241432B true CN107241432B (en) 2021-08-17

Family

ID=59990868

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710553194.1A Active CN107241432B (en) 2017-07-07 2017-07-07 Message receiving method and device, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN107241432B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117492608A (en) * 2023-12-28 2024-02-02 荣耀终端有限公司 Message processing method, electronic equipment, server and communication system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104967683A (en) * 2015-06-18 2015-10-07 广州华多网络科技有限公司 Message pushing method, terminal and server
CN105718568A (en) * 2016-01-20 2016-06-29 努比亚技术有限公司 Uniform interaction device and method of multiple applications
CN106034069A (en) * 2016-08-15 2016-10-19 努比亚技术有限公司 Method for controlling push message display and mobile terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104158722B (en) * 2014-07-21 2016-11-09 小米科技有限责任公司 For light information push method, device, terminal and the server applied
CN104572942A (en) * 2014-12-30 2015-04-29 小米科技有限责任公司 Push message display method and push message display device
CN106020784B (en) * 2015-03-18 2020-09-08 小米科技有限责任公司 Application message display method and device and terminal
CN105094549B (en) * 2015-07-20 2019-03-15 小米科技有限责任公司 Show the method and device of message
CN106775626A (en) * 2016-11-14 2017-05-31 北京小米移动软件有限公司 Notification message processing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104967683A (en) * 2015-06-18 2015-10-07 广州华多网络科技有限公司 Message pushing method, terminal and server
CN105718568A (en) * 2016-01-20 2016-06-29 努比亚技术有限公司 Uniform interaction device and method of multiple applications
CN106034069A (en) * 2016-08-15 2016-10-19 努比亚技术有限公司 Method for controlling push message display and mobile terminal

Also Published As

Publication number Publication date
CN107241432A (en) 2017-10-10

Similar Documents

Publication Publication Date Title
US9667774B2 (en) Methods and devices for sending virtual information card
CN106790043B (en) Method and device for sending message in live broadcast application
EP2978234A1 (en) Method and apparatus for sharing video information
US9648152B2 (en) Methods and devices for labeling a number
CN109274510B (en) Message processing method, device, client, server and storage medium
EP3136699A1 (en) Method and device for connecting external equipment
CN109669730B (en) Process keep-alive method, device, electronic equipment and medium
CN107454204B (en) User information labeling method and device
US20180035154A1 (en) Method, Apparatus, and Storage Medium for Sharing Video
US20220391446A1 (en) Method and device for data sharing
CN112291631A (en) Information acquisition method, device, terminal and storage medium
CN109302341B (en) Instant messaging method, instant messaging device, electronic equipment and storage medium
CN105912204B (en) Method and device for starting application interface
CN106506808B (en) Method and device for prompting communication message
CN105656639B (en) Group message display method and device
CN110162366B (en) Information display method and device, electronic equipment and storage medium
CN109885360B (en) Data processing method, device and storage medium
CN109521923B (en) Floating window control method and device and storage medium
CN109150901B (en) Information source prompting method and device, electronic equipment and storage medium
CN107241439B (en) Message pushing method and device for H5 page
CN107241432B (en) Message receiving method and device, electronic equipment and computer storage medium
CN106708930B (en) Method and device for refreshing application page
CN112291581B (en) Server, terminal equipment, information processing method and device
CN111049732B (en) Push message display method and device, electronic equipment and medium
CN106791200B (en) Information display method and device

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