Message notification method and device, equipment and storage medium
By creating a message notification component on the desktop operating system to display notification messages for the target application in the emulator, the problem of the target application being unable to communicate notification messages when it is closed is solved, and the efficiency and timeliness of information notification are improved.
Patent Information
- Application Number
- CN202411630576.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-14
- Publication Date
- 2025-02-18
AI Technical Summary
In the simulator, when the target application is in a closed state, the notification message cannot be effectively conveyed, resulting in low information notification efficiency.
By creating a message notification component on the desktop operating system, displaying notification messages for the target application, you can notify users in a timely manner even if the target application is closed in the emulator.
It improves the information notification efficiency and timeliness of notification messages of target applications in the simulator, and avoids the problem of notification messages being unable to be displayed due to the target application closing.
Smart Images

Figure CN119473505A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer software technology, and more specifically, to a message notification method, apparatus, device and storage medium. Background Art
[0002] The mobile simulator used on PC (Personal Computer) devices is a simulation environment implemented through virtualization technology. The core of the simulator is to create a virtual target device environment that is different from the main device in the main device, thereby helping developers test the compatibility of applications in the simulated target device environment and providing users with a way to use applications in the target device environment on the main device without the need for a target device. For example, it allows users to use mobile applications on desktop operating systems such as Windows and macOS.
[0003] Usually, users can download and install a mobile simulator on a desktop operating system. The mobile simulator uses virtualization technology to simulate the hardware configuration of a mobile device, such as the processor, memory, and storage space. This allows users to use input and output devices such as a mouse and keyboard on a personal computer to simulate the interaction of a mobile device. For example, macOS users can use the built-in app store in the Android simulator to search for and download the required Android apps, and install Android apps in the Android simulator.
[0004] After the application is successfully installed, users can use these mobile applications by simulating mobile devices on the desktop operating system, such as using simulation functions such as keyboard mapping and mouse control. However, in the interactive scenario where users use mobile applications, if the mobile application is closed, the notification messages related to the mobile application will not be displayed. In other words, in the target device environment simulated by the simulator, if the mobile application is closed, the notification messages related to the mobile application cannot be conveyed to the user, and the notification efficiency of the information is low. Summary of the invention
[0005] The embodiments of the present application provide a message notification method, apparatus, device and storage medium, which can improve the information notification efficiency and timeliness of notification messages of target applications in a simulator.
[0006] According to one aspect of the present application, a message notification method is provided, which includes: in response to a call trigger to a simulator on a desktop of a first terminal, displaying a simulator interface, wherein the simulator interface includes at least a shortcut to a target application; displaying a notification message of the target application on the desktop; wherein the target application is an application adapted to a second operating system of a second terminal, the second operating system is different from a first operating system of the first terminal, and the application state of the target application is an application closed state.
[0007] According to another aspect of the present application, a message notification device is provided, which includes: an interface display module, which is used to display a simulator interface in response to a call trigger of a simulator on the desktop of a first terminal, and the simulator interface includes at least a shortcut to a target application; a message notification module, which is used to display a notification message of the target application on the desktop; wherein the target application is an application adapted to a second operating system of a second terminal, the second operating system is different from the first operating system of the first terminal, and the application state of the target application is an application closed state.
[0008] Optionally, the message notification module may include a first component creation unit, configured to display a notification message corresponding to the target application on the desktop based on the message notification component created by the simulator.
[0009] Optionally, the first component creation component can be specifically used to: obtain the remaining computing resources corresponding to the simulator in response to a notification message for the target application; when it is detected that the remaining computing resources corresponding to the simulator are greater than a resource threshold, call a message notification interface based on the simulator; create a message notification component for the simulator corresponding to the notification message of the target application according to the message notification interface; and display the notification message on the desktop using the message notification component created by the simulator.
[0010] Optionally, the message notification module may also include a second component creation unit, which is used to display the notification message corresponding to the target application on the desktop based on the message notification component created by the target local application; wherein the target local application is a local application that has generated a shortcut combination component with the target application on the first operating system of the first terminal and is running.
[0011] Optionally, the second component creation unit may include: a resource acquisition subunit, a resource detection subunit, a component creation subunit, and a component display subunit. The resource acquisition subunit is used to obtain the remaining computing resources corresponding to the simulator in response to the notification message for the target application; the resource detection subunit is used to determine the target local application associated with the first operating system of the first terminal when it is detected that the remaining computing resources corresponding to the simulator are not greater than the resource threshold; the component creation subunit is used to create a message notification component corresponding to the notification message of the target application through the target local application; the component display subunit is used to display the notification message on the desktop using the message notification component created by the target local application.
[0012] Optionally, the resource detection subunit may include an analysis subunit, a generation subunit, and a determination subunit. The analysis subunit is used to analyze the notification message to obtain target application information corresponding to the target application; the generation subunit is used to determine the candidate local application corresponding to the target application according to the target application information, the candidate local application being a local application that has generated a shortcut combination component with the target application on the first operating system of the first terminal; the determination subunit is used to use any local application whose current application state is an application running state among the candidate local applications as the target local application associated with the target application.
[0013] Optionally, the generating sub-subunit may be specifically configured to: search for a shortcut combination component associated with the target application information in a configuration file of the first operating system of the first terminal; and determine a local application corresponding to the shortcut combination component as a candidate local application corresponding to the target application.
[0014] Optionally, the component creation subunit can be specifically used to: obtain the simulator address corresponding to the simulator; generate application startup information based on the simulator address and the target application information corresponding to the target application; call the message notification interface according to the target local application; and create a message notification component based on the application startup information and the notification message through the message notification interface.
[0015] Optionally, the second component creation unit may also include a message extraction subunit, an application startup subunit, and an interface display subunit. The message extraction subunit is used to extract the application startup information and the notification message from the message notification component in response to the startup trigger of the startup control on the message notification component; the application startup subunit is used to transmit the target application information in the application startup information to the simulator according to the simulator address in the application startup information, and the simulator starts the target application according to the target application information and the notification message; the interface display subunit is used to display the target message interface of the target application corresponding to the notification message on the desktop.
[0016] Optionally, the message notification component includes a startup control; the message notification device may also include an interface display module for displaying a target message interface of the target application corresponding to the notification message on the desktop in response to a startup trigger of the startup control on the message notification component that displays the notification message.
[0017] Optionally, the interface display module may further include a startup information acquisition unit, a target application startup unit, and a notification message display unit. The startup information acquisition unit is used to acquire application startup information corresponding to the target application; the target application startup unit is used to start the target application based on the target application information in the application startup information and the notification message through the simulator; and the notification message display unit is used to display a target message interface of the target application corresponding to the notification message on the desktop.
[0018] Optionally, the target application startup unit can also be specifically used to: analyze the target application information in the application startup information to obtain an application resource identifier corresponding to the target application; obtain an application installation package corresponding to the target application according to the application resource identifier, and create an application running container; run the application installation package in the application running container based on the notification message to start the target application and display the target message interface corresponding to the notification message.
[0019] Optionally, the message notification component includes a close control; the message notification device may also include a quantity acquisition module and a component update module. The quantity acquisition module is used to obtain the number of messages corresponding to the notification message in response to the close trigger of the close control on the message notification component that displays the notification message, and when it is detected that the target application has a quick launch component on the desktop; the component update module is used to update the display style of the quick launch component based on the message number, so as to display the updated quick launch component with the message number on the desktop.
[0020] Optionally, the message notification device may further include: a status acquisition module, a periodic stop module, and a return execution module. The status acquisition module is used to acquire the application status corresponding to the target application in a preset time period when it is detected that there is no quick launch component for the target application on the desktop; the periodic stop module is used to stop in a preset time period when the application status is the application running status and acquire the application status corresponding to the target application; the return execution module is used to redisplay the message notification component on the desktop when the preset time period ends and the application status is always the application closed status, and return to execution in a preset time period to acquire the application status corresponding to the target application.
[0021] Optionally, the simulator includes a host end and a simulation end, and the message notification device may further include: a call trigger module, an exit trigger module, an information transmission module, and a desktop display module. The call trigger module is used to respond to the call trigger of the shortcut of the target application on the simulator interface, and display the target application interface corresponding to the target application on the desktop based on the simulation end; the exit trigger module is used to respond to the exit trigger of the target application interface, close the target application interface based on the simulation end, and run the target application in the background on the simulation end; the information transmission module is used to respond to the notification message for the target application, and transmit the notification message to the host end based on the simulation end; the desktop display module is used to create a message notification component based on the notification message through the host end, and display the message notification component corresponding to the notification message on the desktop.
[0022] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, wherein the above-mentioned message notification method is executed when the computer program is executed by a processor.
[0023] According to another aspect of the present application, a computer device is provided. The computer device includes a processor and a memory. The memory stores a computer program. When the computer program is called by the processor, the above-mentioned message notification method is executed.
[0024] According to another aspect of the present application, a computer program product is provided, which includes a computer program stored in a storage medium; a processor of a computer device reads the computer program from the storage medium, and the processor executes the computer program, so that the computer device executes the above-mentioned message notification method.
[0025] The present application can respond to a call trigger to the simulator on the desktop of the first terminal, display a simulator interface, the simulator interface at least including a shortcut of the target application, and further display a notification message of the target application on the desktop, wherein the target application is an application adapted to the second operating system of the second terminal, the second operating system is different from the first operating system of the first terminal, and the application state of the target application is an application closed state. In this way, when the target application in the simulator is closed, the notification message of the target application can still be displayed on the desktop of the first operating system running on the first terminal, thereby avoiding the problem that the notification message corresponding to the target application cannot be displayed due to the closure of the target application, thereby improving the information notification efficiency and timeliness of the notification message of the target application in the simulator, and effectively reducing the delay time for the target object to obtain the notification message of the target application.
[0026] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0028] Figure 1 A schematic diagram of a system architecture provided by an embodiment of the present application is shown.
[0029] Figure 2 A schematic diagram of system deployment provided in an embodiment of the present application is shown.
[0030] Figure 3 A schematic diagram of the main interface of a simulator provided in an embodiment of the present application is shown.
[0031] Figure 4 A schematic diagram showing a shortcut to a mobile application provided in an embodiment of the present application.
[0032] Figure 5 A schematic diagram of combined operations of a mobile terminal shortcut provided in an embodiment of the present application is shown.
[0033] Figure 6 A schematic diagram of an interactive desktop combination of a mobile terminal shortcut provided in an embodiment of the present application is shown.
[0034] Figure 7A flow chart of a message notification method provided in an embodiment of the present application is shown.
[0035] FIG. 8A to FIG. 8C An interface schematic diagram of a display simulator interface provided in an embodiment of the present application is shown.
[0036] 9A to 9C An interface schematic diagram showing another display simulator interface provided in an embodiment of the present application is shown.
[0037] Fig.10 A schematic diagram of an interface of a simulator provided in an embodiment of the present application is shown.
[0038] Fig.11 An installation sequence diagram of an Android application provided in an embodiment of the present application is shown.
[0039] Fig.12 A display schematic diagram of a message notification component provided in an embodiment of the present application is shown.
[0040] Fig.13 A component schematic diagram of a desktop shortcut combination component provided in an embodiment of the present application is shown.
[0041] Fig.14 A display schematic diagram of a message notification component provided in an embodiment of the present application is shown.
[0042] Fig.15 A flow chart showing another message notification method provided in an embodiment of the present application is shown.
[0043] Fig.16 A component schematic diagram of a message notification component provided in an example of the present application is shown.
[0044] FIG. 17A to FIG. 17B An interface schematic diagram of a target message interface provided in an embodiment of the present application is shown.
[0045] FIG. 18A to FIG. 18B An interface schematic diagram of another target message interface provided in an embodiment of the present application is shown.
[0046] Fig.19 A flowchart of a notification message display provided by an embodiment of the present application is shown.
[0047] FIG. 20A to FIG. 20B A component schematic diagram of a quick start component provided in an embodiment of the present application is shown.
[0048] Fig.21 A flow chart showing another message notification method provided in an embodiment of the present application is shown.
[0049] Figures 22A to 22BAn interface schematic diagram of a target application interface provided in an embodiment of the present application is shown.
[0050] Fig.23 A timing diagram of a target application obtaining a PUSH message provided by an embodiment of the present application is shown.
[0051] Fig.24 A timing diagram showing a simulation end sending a PUSH message to a master end provided in an embodiment of the present application.
[0052] Fig.25 A schematic diagram of a PUSH message display process provided in an embodiment of the present application is shown.
[0053] Fig.26 A schematic diagram of a process for displaying an application interface of an APP provided in an embodiment of the present application is shown.
[0054] Fig. 27 It is a module block diagram of a message notification device provided in an embodiment of the present application.
[0055] Fig.28 It is a module block diagram of a computer device provided in an embodiment of the present application.
[0056] Fig.29 It is a module block diagram of a computer-readable storage medium provided in an embodiment of the present application. DETAILED DESCRIPTION
[0057] In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The implementation methods described with reference to the drawings are exemplary and are only used to explain the present application, and cannot be understood as limitations on the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.
[0058] In some processes described in the specification, claims and the above drawings, multiple steps appearing in a specific order are included, but it should be clearly understood that these steps may not be executed in the order in which they appear in this document or may be executed in parallel. The step numbers are only used to distinguish different steps, and the numbers themselves do not represent any execution order. In addition, the descriptions such as "first", "second" or "target" in this document are used to distinguish similar objects, and are not necessarily used to describe a specific order, sequence or quantity.
[0059] It is worth noting that in the specific implementation of the present application, related data such as notification messages are involved. When the above embodiments of the present application are applied to specific products or technologies, it is necessary to obtain the permission or consent of the object, and the collection, use and processing of the relevant data need to comply with relevant laws, regulations and standards. For example, when the embodiment of the present application needs to obtain a notification message, a separate permission or separate consent for the notification message can be obtained through a pop-up window or by jumping to a confirmation page. After clearly obtaining a separate permission or separate consent, the necessary related data for the normal operation of the embodiment of the present application can be obtained.
[0060] The simulator (Emulator) running on the desktop operating system involved in this application, that is, the simulator application, is a software tool designed to simulate the hardware and operating system environment of the target device so that users can experience and test mobile applications on computers, for example, simulating the operating system of the mobile device on the PC side. In addition to developers, ordinary users can also use simulators to run target applications and experience the functions of target applications without actually owning the target device. For example, install mobile applications in the mobile simulator on the PC side, and then users can use mobile applications on the PC side through the mobile simulator. Among them, the target device may refer to a device that can be operated portablely without relying on a fixed power supply or connection, such as a laptop, a smart phone, a tablet computer, a car terminal, etc.
[0061] Target applications are software applications that can run on target devices. Target applications are usually developed according to the operating systems of different target devices. For example, users can use simulators in desktop operating systems to try out newly released applications, games, or services to understand their operations and interfaces. This provides a convenient solution for users who do not have access to real mobile devices for the time being, or who want to test the functions of mobile applications on a large screen. This simulator can simulate various device configurations, screen sizes, and resolutions, providing a close-to-real mobile experience, while enabling seamless application trials, functional verification, and user experience evaluation.
[0062] At present, in the relevant technical framework, the mobile simulator installed on the PC device is usually designed to provide an operating environment close to the native mobile device, so that users can use it on a daily basis or develop and test mobile applications on the PC device. Users can start the mobile simulator on the desktop operating system of the PC device, and then open the mobile application they want to use in the mobile simulator. Taking Android applications as an example, the simulator of the PC device first creates a virtualized operating environment, such as the Android Virtual Device, which simulates the complete operating environment of the Android operating system, including CPU architecture, memory, storage, screen resolution, etc. After installing the Android application installation package of the mobile application, the mobile simulator will call the virtual CPU to execute the application's instructions, thereby completing the use of the Android application.
[0063] However, when the mobile application is closed in the mobile simulator, the process corresponding to the mobile application is terminated in the operating system of the mobile simulator, resulting in the user not receiving the notification message sent to the mobile application. This is because the notification message relies on the background process of the mobile application to maintain the connection with the message server. Once the mobile simulator closes the background process of the mobile application, the mobile application can no longer maintain the connection with the message server and therefore cannot receive new notification messages. In addition, the mobile simulator in the related technology does not have an interface for receiving notification messages. In order to solve the above problems, the inventor has proposed a message notification method provided in an embodiment of the present application after research. The following is a description of the system implementation environment of the above method involved in the present application and related application scenarios.
[0064] See also Figure 1 , Figure 1 A schematic diagram of a system architecture is shown. The message notification method provided in this application can be applied in the system 100. Figure 1 As shown, the system 100 includes a server 110 and a personal computer 120, the server 110 and the personal computer 120 are connected to each other through a network, and the personal computer 120 also includes a simulator 121 installed thereon. The simulator 121 simulates the operating environment of the mobile device on the personal computer 120 by simulating the hardware and operating system of the mobile device, allowing the user to use the mobile application without actually owning the mobile device. The simulator 121 can be a Host-Guest architecture to create a virtual mobile operating environment in a collaborative manner.
[0065] Exemplarily, the simulator 121 may include a host and a guest. The host refers to the software of the simulator 121 running on the personal computer 120, as well as the hardware abstraction layer, operating system, and user interface components that are matched therewith. The host is responsible for creating and managing the virtual simulation end, and provides a series of tools and interfaces so that the user can interact with the simulation end. It can be understood that in the embodiment of the present application, the host is a personal computer software implemented based on the operating system of the personal computer 120. The guest is the operating environment of the virtual mobile device created by the host on the personal computer 120. Users can install and run mobile applications in this virtual environment and perform various mobile operations and experiences.
[0066] Among them, personal computer 120 is an entity that requests services or resources from server 110. The entity has a desktop operating system, such as Windows, macOS or Linux, etc. These desktop operating systems provide an environment that supports the operation of simulators, are compatible with various simulator software, and can directly perform human-computer interaction. Server 110 refers to an entity that provides services or resources, is responsible for processing requests from personal computer 120, and returns corresponding data or services. The server usually includes business logic, database management and other background processing functions. Server 110 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks (Content Delivery Network, CDN), blockchains, and big data and artificial intelligence platforms.
[0067] It should be noted that Figure 1 It is only a schematic diagram of a system architecture provided in the embodiment of the present application. The system architecture and application scenarios described in the embodiment of the present application are intended to more clearly illustrate the technical solution of the embodiment of the present application, and do not constitute a limitation on the technical solution provided in the embodiment of the present application. Figure 1 Only one personal computer is shown in the figure, but in different embodiments, more personal computers may be present to access the server. For example, Figure 1 The simulator in the example simulates a mobile operating system, but in other application scenarios, it can also be used to simulate other desktop operating systems that are different from the desktop operating system where the simulator is located.
[0068] See also Figure 2 , Figure 2 Schematic diagram of a system deployment is shown. For example, the message notification method provided in the embodiment of the present application can also be deployed in Figure 2In the system of C / S (Client / Server) architecture shown in FIG. , the system may include a server, a gateway, the Internet, and computer equipment.
[0069] A server is a computer system that can provide certain services to the server side. Compared with ordinary computer equipment, servers have higher requirements in terms of stability, security, and performance. Figure 2 As shown, the server 210 can be a high-performance computer in a network platform, a cluster of multiple high-performance computers, a portion of a high-performance computer (e.g., a virtual machine), a combination of portions of multiple high-performance computers (e.g., virtual machines), etc.
[0070] A gateway is also called an internetwork connector or a protocol converter. Figure 2 As shown, gateway 220 realizes network interconnection at the transport layer through Internet 230, and is a computer system or device that acts as a conversion. The gateway is a translator between two systems that use different communication protocols, data formats or languages, or even completely different architectures. At the same time, the gateway can also provide filtering and security functions.
[0071] Computer devices can send requests to servers to access or use resources, data or services on the server. Figure 2 As shown, the computer device may include a notebook computer 240a, a desktop computer 240b, a vehicle terminal 240c, a tablet computer (not shown), etc. In addition, it may be a single computer device or a collection of multiple computer devices.
[0072] Computer devices can communicate with the Internet in wired or wireless ways to exchange data. Figure 2 As shown, the laptop computer 240a can communicate with the Internet 230 through the wireless router 250. For another example, the message sent by the desktop computer 240b to the server 210 can be transmitted to the corresponding server 210 through the gateway 220. The message sent by the server 210 to the computer device can also be transmitted to the corresponding desktop computer 240b through the gateway 220.
[0073] As an implementation method, the message notification method provided in the present application can be implemented in part on a server and in part on a computer device. For example, an application service provider provides a mobile simulator and a mobile application download service. Among them, the mobile simulator installed on the PC device can be a PC application for simulating the hardware and operating system environment of the mobile device, so that users can experience and test mobile applications on the PC device. Among them, the mobile device may refer to a device that can be operated portable without relying on a fixed power supply or connection, such as a smart phone, a tablet computer, a car terminal, etc. The mobile application refers to a software application that can run on a mobile device. The mobile application is usually developed according to the operating system of different mobile devices (such as iOS, Windows Phone and Android, etc.), and can be downloaded and installed through the application store in the mobile device.
[0074] For example, Figure 2 As shown, the user can download the installation package of the mobile terminal simulator from the server 210 of the application service provider through the Internet 230 on the desktop computer 240b (i.e., the computer device), and then install the mobile terminal simulator on the desktop computer 240b. The user can open the mobile terminal simulator and download and install the required mobile terminal application in the application store of the mobile terminal simulator. In this way, the user can use the installed mobile terminal application through the mobile terminal simulator on the desktop operating system of the desktop computer 240b.
[0075] It should be noted that Figure 2 This is only a schematic diagram of a system deployment provided by the embodiment of the present application. The system deployment scheme described in the embodiment of the present application is only to more clearly illustrate the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided by the embodiment of the present application. For example, a computer device can generally refer to one of multiple devices. This embodiment only refers to Figure 2 The three computer devices (laptop computer 240a, desktop computer 240b, vehicle terminal 240c) shown in the figure are used as examples. A person skilled in the art will appreciate that, with the evolution of system deployment solutions, the technical solutions provided by the embodiments of the present invention are also applicable to similar technical problems.
[0076] The message notification method provided in this application can be applied in various scenarios, for example, Figure 3 to Figure 4 The shortcut creation scenario shown, Figures 5 and 6 The application interface shown displays scenes, etc.
[0077] (1) Notification message display scenario.
[0078] In network communication, the real-time notification mechanism is used to remind users about new notification messages. These notification messages can still be received when the application is running in the background. However, the mobile application in the mobile simulator is limited by the control process of the mobile simulator. Therefore, when the window of the mobile application is closed, the mobile simulator will close the process running the mobile application. After that, the mobile application will not be able to receive notification messages, which makes it impossible for users to learn about new messages about the mobile application in a timely manner.
[0079] The message notification method provided by the present application can be applied in the notification message display scenario. Even if the mobile application in the mobile simulator is closed, the notification message corresponding to the mobile application can be displayed on the interactive desktop of the desktop operating system. For example, the mobile simulator developed according to the message notification method of the present application can be used to simulate the running of mobile game programs on the PC. For example, the user can open the mobile simulator on the desktop of the PC by clicking the shortcut of the mobile simulator, thereby starting the mobile game program on the mobile simulator, such as Figure 3 In the application interface of the XX mobile game shown in the figure, when the user closes the XX mobile game, if the server of the XX mobile game sends a notification message to the XX mobile game, the mobile terminal simulator where the XX mobile game is located can create a message notification component for the notification message, such as Figure 4 As shown, the message notification component is displayed on the desktop.
[0080] (2) Application interface display scene.
[0081] For example, the mobile terminal simulator developed according to the message notification method of the present application can be used to simulate the running of the mobile terminal instant messaging application on the PC. For example, the user can open the mobile terminal simulator by clicking the shortcut of the mobile terminal simulator on the desktop of the PC, thereby starting the instant messaging application on the mobile terminal simulator. Figure 5 The chat interface of the instant messaging application shown in the figure can be minimized by the user to facilitate viewing other application interfaces. However, since the mobile terminal simulator does not have a mobile phone notification bar, when the instant messaging application receives a new instant messaging message, the user cannot receive the new message through the mobile phone notification bar like on a real mobile phone. To this end, the mobile terminal simulator can create a message notification component for the notification message sent by the instant messaging application to notify the user of a new message, for example, Figure 6 The notification pop-up window shown, then the user can click the "View Now" control of the notification pop-up window to enter the chat interface of the instant messaging application to view the new instant messaging information.
[0082] It should be noted that Figures 3 to 6These are only two schematic diagrams of application scenarios provided by the embodiments of the present application. The application scenarios described in the embodiments of the present application are only for more clearly illustrating the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. The message notification method proposed in the present application can also be used in other interactive scenarios in which a simulator is used to create a message notification component for an application installed in the simulator. A person of ordinary skill in the art will appreciate that, as application scenarios evolve, the technical solutions provided by the embodiments of the present invention are equally applicable to similar technical problems.
[0083] According to an embodiment of the present application, a message notification method is provided. The message notification method can be executed by a computer device (such as a desktop computer, a laptop computer or other terminal device with certain processing capabilities, etc.), and the computer device has at least storage, calculation and communication functions. Figure 7 FIG. 2 shows a flow chart of the message notification method provided in this embodiment. Figure 7 As shown, the message notification method may specifically include:
[0084] Step 110: In response to a call triggering the simulator on the desktop of the first terminal, displaying a simulator interface.
[0085] The first terminal refers to a computer device with an operating system (i.e., the first operating system) installed with an emulator, such as a desktop computer, a laptop computer, etc. The desktop refers to the main interface displayed by the first terminal, and the desktop can display shortcuts to multiple applications installed in the first operating system, and can also include quick entries to multiple applications installed in the first operating system. For example, refer to Fig. 8A , the desktop includes shortcuts "My Computer", "Recycle Bin" and "Simulator". For another example, refer to Fig.9A The program dock on the desktop includes quick entries for multiple applications such as the "Simulator", and these quick entries are displayed in the program dock with corresponding application icons.
[0086] The simulator refers to an application used in the first terminal to simulate other types of operating systems (i.e., the second operating system) that are different from the first operating system. For example, an Android simulator is installed on the Windows operating system of a desktop computer as the first terminal, which is used to simulate the Android operating system of a mobile terminal on the Windows operating system of the first terminal. The simulator interface includes at least a shortcut to the target application, where the target application refers to an application installed in the second operating system of the simulator, such as an Android application that a desktop computer can run on the Android operating system of a mobile phone or tablet through the simulator, i.e., the target application.
[0087] As an implementation mode, the first terminal can start the simulator and display the simulator interface in response to the user's calling trigger of the simulator. The calling trigger of the simulator can be implemented in a variety of ways. For example, taking the Windows operating system as the first operating system, refer to Figure 8B , the user can right-click the shortcut "Simulator" on the desktop to open the context menu corresponding to the shortcut "Simulator", and click the option "Open" in the context menu, and then Figure 8C As shown, the first terminal displays the simulator interface corresponding to the simulator on the desktop. For another example, taking the macOS operating system as the first operating system, refer to Fig. 9B , users can click on the quick entry of the simulator in the program dock on the desktop, and then Fig. 9C As shown, the first terminal displays the simulator interface on the desktop. As another implementation, the simulator can also be called and triggered by clicking the control corresponding to the simulator in the start menu bar to start the simulator and display the corresponding simulator interface. In addition, when the simulator is minimized, the simulator can be called and triggered by the mouse, keyboard, etc.
[0088] In some embodiments, the simulator interface may display shortcuts to the target application installed in the simulator, such as Fig.10 The interface diagram of the simulator interface is shown. The simulator interface displays shortcuts corresponding to mobile application E and mobile application F. Optionally, the user can click the application store icon on the simulator interface to download and install the required mobile application in the simulator. Exemplarily, taking the Android simulator with the Android operating system as the second operating system as an example, the user can download and install the Android application he needs according to the application store in the Android simulator. When the user clicks the download icon of the Android application in the application store of the Android simulator, the Android simulator can generate an address request instruction in response to the click trigger of the download icon.
[0089] Furthermore, if Fig.11As shown in the installation sequence diagram of the Android application, the Android simulator can send the request instruction to the simulator background to request the simulator background to return the installation package address of the Android application. When the simulator background receives the request instruction, it can query the installation package (Android Application Package, APK) address corresponding to the Android application based on the application identifier of the Android application in the request instruction, and return the installation package address to the Android simulator. Furthermore, when the Android simulator receives the installation package address, it can download the installation package corresponding to the Android application based on the installation package address, and after completing the installation package download, run the installation package to complete the installation of the Android application. Furthermore, in order to facilitate the user to quickly start the Android application directly on the desktop, the Android simulator can create a desktop shortcut of the Android application on the desktop in response to a shortcut generation trigger for the Android simulator.
[0090] Considering that when a user uses an emulator to run an application installed in the emulator on a terminal, if the application window corresponding to the application is closed, the notification message about the application cannot be delivered to the user in time. Therefore, the present application proposes to display the notification message through the emulator, so that even if the application in the emulator is closed, the user can receive the notification message of the application in time.
[0091] Step 120: Display a notification message of the target application on the desktop.
[0092] The target application in the simulator is an application adapted to the second operating system, and the system type of the second operating system is different from the system type of the first operating system of the first terminal. For example, the first operating system may include desktop operating systems such as Windows, Linux, and macOS, and correspondingly, the second operating system may include mobile terminal operating systems such as BlackBerry OS, Android, and iOS. For example, the desktop computer as the first terminal is installed with the Windows operating system, and the simulator installed on the Windows operating system is used to simulate the smartphone as the second terminal running the iOS operating system.
[0093] Optionally, the first operating system and the second operating system may be different types of desktop operating systems, or different types of mobile operating systems. For example, the first operating system may be Windows, and the second operating system may be Linux. The application state of the target application is the application closed state. It should be noted that the application closed state means that the second operating system simulated by the simulator terminates the program execution of the application, which means that all relevant resources of the application (such as memory, file descriptors, network connections, etc.) will be released, all threads will stop, and the application will no longer continue to execute tasks or respond to user requests.
[0094] Notification messages refer to the message types that provide important information to users. Notification messages may include PUSH messages sent by the target application's server to the target application. The PUSH message is an instant notification method used to convey new messages, event updates, important reminders, and other information. Its characteristic is that the message is pushed ("PUSH") by the server to the target application, so the user can be notified of the latest information in a timely manner. For example, in an instant messaging application, if the user does not actively open the application, the communication platform can promptly remind the user of new instant messaging messages through PUSH messages. In e-commerce applications, the e-commerce platform can use PUSH messages to notify users of promotional activities, order status (such as shipment, delivery, and receipt, etc.), and other information.
[0095] As an implementation, the notification message of the target application can be displayed on the desktop. For example, the simulator can call the message notification component corresponding to the notification message created by the application programming interface of the first operating system, so that the first operating system displays the message notification component on the desktop.
[0096] Among them, the message notification component is implemented based on computer programming technology, and is a virtual component (also understood as a control) with visual application functions, which facilitates human-computer interaction between users and computer devices. The display form and interaction mode of the virtual component can be personalized according to the interaction scene to adapt to different scene requirements, which is not limited here. For example, the message notification component can be displayed in the style of a desktop widget on the desktop, or in the style of a pop-up notification window, or in the style of a flashing icon on the status bar at the top or side of the desktop, etc.
[0097] Considering that the simulator is essentially a virtual environment running in the first operating system. Although the simulator simulates the second operating system, it actually relies on the underlying capabilities of the first operating system. Based on this motivation, this application proposes that the notification interface of the first operating system can be called by the simulator to create a message notification component. Since the simulator is essentially a local application running on the first operating system of the first terminal, it can have the ability and authority to call the application programming interface (Application Programming Interface, API) of the first operating system as a local application. In this way, the notification function of the first operating system can be effectively utilized, overcoming the limitation that the target application in the simulator cannot receive messages because it is in the application closed state.
[0098] In the actual scenario where the simulator creates a message notification component, when the simulator receives a notification message, it may be unable to do so because there are too many tasks currently being processed, resulting in a lack of sufficient computing resources to call the application programming interface of the first operating system to create a message notification component corresponding to the notification message, and then display the notification message through the message notification component. For example, taking Windows as the first operating system, the main thread of the simulator is being occupied by other tasks (such as intensive calculations, file operations, network requests, etc.). At this time, since other tasks occupy a large amount of computing resources of the simulator, the simulator cannot return the message processing event in time, that is, it cannot call the Windows API to create a notification bar to display the notification message.
[0099] To this end, the present application proposes to determine the object of creating a message notification component based on the remaining computing resources of the simulator. Specifically, the remaining computing resources corresponding to the simulator can be detected, and then, based on the resource threshold, it is determined whether the remaining computing resources are sufficient for the simulator to call the message notification interface to create a message notification component corresponding to the notification message. If the remaining computing resources are sufficient, the simulator can directly create the message notification component. Otherwise, the simulator can indirectly create the message notification component with the help of the local application in the first operating system, thereby ensuring that the notification message can be conveyed to the user in a timely manner. In some embodiments, in response to a notification message for a target application in the simulator, if it is detected that the remaining computing resources are greater than the resource threshold, the notification message corresponding to the target application can be displayed on the desktop based on the message notification component created by the simulator. Specifically, the steps may include:
[0100] (1) In response to a notification message for a target application, obtain remaining computing resources corresponding to the simulator.
[0101] As an implementation mode, when the first terminal receives a notification message from the target application, it can respond to the notification message and call an application programming interface in the first operating system that can view the remaining computing resources of the local application to obtain the remaining computing resources corresponding to the simulator. Exemplarily, taking the Linux operating system as an example, the / proc virtual file system provided by the Linux kernel can be used as an API interface to obtain the resource usage of the system and processes. The resource information of each process can be obtained by accessing the files in the / proc / [pid] directory. For example, / proc / [pid] / status: contains the memory usage of the process. The first terminal can query the remaining computing resources corresponding to the simulator by using / proc / [pid] / status of the proc file system.
[0102] (2) When it is detected that the remaining computing resources corresponding to the simulator are greater than the resource threshold, a message notification interface is called based on the simulator.
[0103] The message notification interface refers to an application programming interface used to create a message notification component in the first operating system. By way of example, taking Windows as the first operating system, when the first terminal detects that the remaining computing resources corresponding to the simulator are greater than a resource threshold, the Windows API can be called based on the simulator, for example, the Toast Notification API. The Toast Notification API allows Windows applications to display important information to users in a short pop-up window in the lower right corner of the desktop in the "Toast" style.
[0104] (3) According to the message notification interface, a message notification component is created for the simulator that corresponds to the notification message of the target application.
[0105] Exemplarily, the notification content on the message notification component may include visual elements such as title, text and icon, and interactive controls such as close control and application start control. The simulator may call the message notification interface of the first operating system to create a message notification component based on the notification message to display the notification message.
[0106] For example, taking Windows as the first operating system, the simulator can obtain the application identifier of the corresponding target application based on the notification message, and register the target application in the Windows registry based on the application identifier, so as to start the target application later. Furthermore, the simulator uses the Toast Notification API provided by Windows to generate the notification content of the message notification component based on the content of the notification message, which may include: notification source: "XX simulator"; notification title: "New message"; notification body: "XX anime latest episode, now on air!"; application icon corresponding to the target application and interactive controls: allowing users to interact with notifications, such as clicking to open the application, viewing details, etc.
[0107] (4) On the desktop, the notification message is displayed using the message notification component created by the simulator.
[0108] Exemplarily, after the simulator completes the creation of the message notification component, the message notification component can be displayed on the desktop of the first operating system. For example, continuing to take Windows as the first operating system, the simulator can send the message notification component to the Windows system for display through the ToastNotificationManager method (a method for Windows to generate and manage local notifications). This method is responsible for managing the life cycle of notifications and interacting with the Windows notification center.
[0109] Specifically, the ToastNotificationManager.CreateToastNotifier method (a method for displaying and managing Windows ToastNotification notifications) can create a notification manager and use the Show method to send the message notification component to the Windows Notification Center, which is responsible for displaying the message notification component. The Windows Notification Center will display the notification window in the lower right corner of the desktop (default position). This process is taken over by the Windows operating system, and the specific display method depends on the type and complexity of the notification.
[0110] For example, a notification can appear as a pop-up window. Fig.12 The display diagram of the message notification component shown in the figure, the message notification component can be displayed in the form of a pop-up window on the right side of the Windows desktop, and the message notification component can include a notification source, a notification title, a notification body, an application icon, and an interactive control. The user clicks the interactive control "View Now" to start the target application, or clicks the interactive control "×" to close the message notification component.
[0111] Considering that the message notification component is created by a local application in the first operating system calling the application programming interface of the first operating system, for example, in the Windows system, the message notification window (that is, the message notification component) is created by the Windows application calling the Shell_NotifyIcon function to send a notification to the Windows system tray, or using the ToastNotifications API to create a pop-up message prompt box. To this end, the present application proposes that when the remaining computing resources of the simulator are insufficient to call the application programming interface of the first operating system to create a message notification component, the target local application in the first operating system where the simulator is located can temporarily take over the simulator to create a message notification component for the notification message.
[0112] In other embodiments, in response to a notification message for a target application in the simulator, if it is detected that the remaining computing resources are not greater than a resource threshold, a notification message corresponding to the target application is displayed on the desktop based on a message notification component created based on the target local application.
[0113] The target local application refers to a local application that has generated a shortcut combination component with the target application on the first operating system of the first terminal and is currently running. Since the target application is an application under the second operating system of the simulator, the start of the target application requires the help of the simulator, and because the target local application has generated a shortcut combination component with the target application on the first operating system, the target local application can directly obtain the simulator address to call the simulator to start the target application. This is also the reason why other local applications in the first operating system that have not generated a shortcut combination component with the target application cannot call the simulator. In addition, the application state of the target local application needs to be in the application running state, so that the target local application can receive notification messages and create message notification components in time. Specifically, it can include:
[0114] (1) In response to a notification message for a target application, obtain remaining computing resources corresponding to the simulator.
[0115] As an implementation mode, when the first terminal receives a notification message from the target application, it can respond to the notification message and call an application programming interface in the first operating system that can view the remaining computing resources of the local application to obtain the remaining computing resources corresponding to the simulator. Exemplarily, taking the Windows operating system as an example, the Performance Counter API interface provided by Windows can obtain the remaining computing resources of the simulator. For example, the first terminal uses the Performance Counter API to create or obtain a performance counter instance according to the simulator process, such as querying the "Working Set" to detect the memory usage of the simulator at the current moment, so that the remaining computing resources of the simulator can be dynamically understood.
[0116] (2) When it is detected that the remaining computing resources corresponding to the simulator are not greater than the resource threshold, determining a target local application associated with the first operating system of the first terminal.
[0117] As an implementation method, the notification message can be analyzed to obtain target application information corresponding to the target application, and the alternative local application corresponding to the target application can be determined based on the target application information. Furthermore, among the alternative local applications, any local application whose current application state is the application running state can be used as the target local application associated with the target application.
[0118] Among them, the target application information refers to a set of key information used to identify and describe the target application, which helps the operating system identify the application. The candidate local application is a local application that has generated a shortcut combination component with the target application on the first operating system of the first terminal. Exemplarily, in the configuration file of the first operating system of the first terminal, the shortcut combination component associated with the target application information can be found, and the local application corresponding to the shortcut combination component is determined as the candidate local application corresponding to the target application.
[0119] See also Fig.13, a shortcut combination component, i.e., a shortcut "application ABK", is displayed on the Windows desktop. The shortcut combination component is generated based on the target application K, the local application A and the target local application, i.e., the local application B. When the first terminal receives a PUSH message sent by the server corresponding to the target application A to the target application A, since it is detected that the target application K is in the application closed state, a message notification component can be created for the PUSH message based on the simulator. However, at this time, it is detected that the remaining computing resources of the simulator are not greater than the resource threshold, i.e., the remaining computing resources are insufficient to create the message notification component. Then, the first terminal can search for the target local application corresponding to the target application K. First, the shortcut combination component "application ABK" corresponding to the application A is found in the Windows registry. Then, by querying the lnk file (a file format used to create shortcuts in the Windows system) corresponding to the shortcut combination component, the candidate local applications "local application A and local application B" corresponding to the target application K are determined. Since the local application A is in the application closed state and the local application B is in the application running state, the local application B is determined as the target local application corresponding to the target application K.
[0120] (3) Create a message notification component corresponding to the notification message of the target application through the target local application.
[0121] Since the message notification component can be used to directly start the application corresponding to the notification message, it is necessary to obtain the target application information such as the address or identifier corresponding to the application and the target application information that can start the application when creating the message notification component. In addition, unlike starting a local application, the first terminal needs to call a simulator to start the target application. Therefore, it is necessary to obtain the simulator address and the target application information when creating the message notification component through the target local application.
[0122] As an implementation method, the simulator address corresponding to the simulator is obtained, and based on the simulator address and the target application information corresponding to the target application, the application startup information is generated. Furthermore, the message notification interface is called according to the target local application, and through the message notification interface, a message notification component is created based on the application startup information and the notification message. Taking Windows as the first operating system as an example, the first terminal can obtain the simulator address by querying the Windows registry, and obtain the target application information corresponding to the target application from the notification message, such as the application identifier, and then generate the application startup information based on the simulator address and the application identifier. Furthermore, the first terminal can call the Toast Notifications API to create a pop-up style message prompt box based on the application startup information and the notification message. Specifically, a link corresponding to the startup control in the message prompt box is generated based on the application startup information, and a notification text in the message prompt box is generated based on the notification message.
[0123] (4) On the desktop, a notification message is displayed using a message notification component created by the target local application.
[0124] For example, after the target local application completes the creation of the message notification component, the message notification component can be displayed on the desktop of the first operating system. Fig.14 The display schematic diagram of the message notification component shown in the figure shows that the message notification component can be displayed in the form of a pop-up window on the right side of the Windows desktop, and the notification source on the pop-up window is displayed as the local application B as the target local application.
[0125] The target local application temporarily takes over the simulator to create a message notification component for the notification message. In this way, even when the simulator does not have sufficient remaining computing resources to create the message notification component, the message notification component can be created in time to display the notification message, thereby improving the robustness of creating the message notification component and avoiding the situation where the notification message cannot be delivered to the user in time.
[0126] This embodiment can respond to the triggering of the call to the simulator on the desktop of the first terminal, and can display the simulator interface. Further, when receiving a notification message of the target application, it can respond to the notification message and display the notification message on the desktop using a message notification component, wherein the target application is an application adapted to the second operating system of the second terminal, the second operating system is different from the first operating system of the first terminal, and the application state of the target application is the application closed state. In this way, when the target application in the simulator is closed, a corresponding message notification component is created for the notification message for the target application through the simulator, and the message notification component is displayed on the desktop of the first operating system running on the first terminal, thereby avoiding the problem that the notification message corresponding to the target application cannot be displayed due to the closing of the target application, thereby improving the information notification efficiency and timeliness of the notification message of the target application in the simulator, and effectively reducing the delay time for the target object to obtain the notification message of the target application.
[0127] According to an embodiment of the present application, another message notification method is provided. The message notification method can be executed by a computer device (such as a desktop computer, a laptop computer or other terminal device with certain processing capabilities, etc.), and the computer device has at least storage, calculation and communication functions. Fig.15 , Fig.15 The schematic diagram of the message notification method provided in this embodiment is shown below. Fig.15 The specific steps of the message notification method are described below:
[0128] Step 210: In response to a triggering call to the simulator on the desktop of the first terminal, displaying a simulator interface.
[0129] As an implementation mode, when the user double-clicks the shortcut of the simulator on the desktop of the first terminal, the first terminal can respond to the double-click operation, that is, trigger the call of the simulator, start the simulator and display the simulator interface. Specifically, the execution process of step 210 is the same as the execution process of step 110 in the above embodiment, and will not be repeated here.
[0130] Step 220: Display a notification message of the target application on the desktop.
[0131] In some embodiments, the notification message corresponding to the target application can be displayed on the desktop based on the message notification component created by the simulator, or the notification message corresponding to the target application can be displayed on the desktop based on the message notification component created by the target local application. The message notification component is a virtual component used to display new events or important notifications. The message notification component can be displayed in the style of a desktop widget on the desktop, in the style of a pop-up notification window, or in the style of a flashing icon on the status bar at the top or side of the desktop. Usually, interactive controls with different functions can be set on the message notification component for human-computer interaction.
[0132] For example, Fig.16 The component diagram of the message notification component shown is a pop-up notification window. The message notification component includes two interactive controls: a close control and a start control. The close control "×" is used by the user to click to close the message notification component, so that the message notification component exits the desktop. The start control "View Now" is used by the user to click to start the target application corresponding to the notification message.
[0133] As an implementation mode, the first terminal may detect whether the remaining computing resources of the simulator are greater than a resource threshold in response to a notification message for a target application in the simulator. If it is detected that the remaining computing resources are greater than the resource threshold, a message notification component corresponding to the notification message created based on the simulator may be displayed on the desktop; if it is detected that the remaining computing resources are not greater than the resource threshold, a message notification component corresponding to the notification message created based on the target local application may be displayed on the desktop. Specifically, the execution process of step 220 is the same as the execution process of step 120 in the above embodiment, and will not be repeated here.
[0134] Step 230: In response to the activation trigger of the activation control on the message notification component that displays the notification message, a target message interface of the notification message corresponding to the target application is displayed on the desktop.
[0135] The start trigger can be implemented in a variety of ways. For example, on a message notification component displayed in a pop-up notification window style, the start trigger of the start control can be completed by clicking the start control. The start control on the message notification component is actually a trigger for opening the target application. The start control is usually bound to the application start information corresponding to the target application, and the application start information can be used to start the target application. To this end, in response to the start trigger of the start control, the first terminal can display the main interface or specific function interface of the target application through the application start information corresponding to the target application bound to the start control, so that the user can directly access the target application through the message notification component and view the notification message.
[0136] In some embodiments, the message notification component may be created by a simulator. When the start control on the message notification component is triggered, the simulator may start the target application according to the application start information corresponding to the target application, and display the target message interface of the notification message corresponding to the target application on the desktop, which may specifically include:
[0137] (1) Obtain application startup information corresponding to the target application.
[0138] The application startup information refers to configuration parameters used to describe and instruct the simulator on how to start the target application. The configuration parameters may include target application information such as an application resource identifier (eg, application name and application ID) of the target application in the simulator.
[0139] As an implementation mode, the first terminal responds to the startup trigger of the startup control, and can obtain the application startup information corresponding to the target application bound to the startup control according to the startup control parameters defined when the message notification component is created. For example, taking Windows as the first operating system, when the user clicks the startup control (such as View Now) on the notification window, the Windows system will capture this user operation and read the startup information bound to the startup control, that is, the application startup information corresponding to the target application.
[0140] (2) Using the simulator, the target application is started based on the target application information in the application start information and the notification message.
[0141] As an implementation mode, the simulator may start the target application based on the target application information in the application startup information, and transmit the notification message to the started target application to open the target message interface corresponding to the notification message in the target application, which may specifically include:
[0142] (2.1) Analyze the target application information in the application startup information to obtain the application resource identifier corresponding to the target application;
[0143] (2.2) Obtain the application installation package of the target application according to the application resource identifier and create an application running container;
[0144] (2.3) Running the application installation package in the application running container based on the notification message to start the target application and display the target message interface corresponding to the notification message.
[0145] Among them, the application resource identifier is used to represent the application name or application identifier corresponding to the target application. Through the application resource identifier, the simulator can query the installation package address corresponding to the target application, and then obtain the application installation package corresponding to the target application based on the installation package address. The target message interface refers to the specific functional interface of the corresponding notification message displayed by the target application. For example, if the notification message is about the application version update, the target message interface can be the version update interface corresponding to the target application.
[0146] Exemplarily, after the simulator obtains the application resource identifier corresponding to the target application from the target application information, it can download the application installation package corresponding to the target application based on the installation package address queried by the application resource identifier. For example, taking Android as the second operating system, the Android simulator host Host will start an Android simulation environment, that is, the simulation end Guset. At the same time, the Android simulator host Host finds the storage address of the APK of the Android APP corresponding to the id (that is, the application resource identifier) of the Android APP (that is, the target application) by looking up the table.
[0147] Furthermore, the Android emulator host Host transmits the storage address of the queried Android APP's APK to the simulation end Guset, and then the simulation end Guset obtains the APK corresponding to the storage address through the emulator API, and creates a container to run the APK, completes the startup of the Android APP, and transmits the notification message to the started Android APP, so that the Android APP displays the target message interface corresponding to the notification message.
[0148] (3) On the desktop, a target message interface of the notification message corresponding to the target application is displayed.
[0149] like Fig.17AAs shown, a pop-up window (i.e., a message notification component) created by the XX simulator is displayed on the desktop. When the user sees the pop-up window, he can click (i.e., start triggering) the "View Now" control (i.e., start control) on the pop-up window. Then, the first terminal can obtain application start information corresponding to the target application in response to the click of the "View Now" control, and start the target application through the XX simulator based on the target application information and the notification message in the application start information. The notification message is used to convey the message "The latest episode of XX anime has been updated" to the user. Furthermore, the first terminal can display the target message interface of the notification message corresponding to the target application on the desktop, such as Fig. 17B As shown, the video playback interface corresponding to the target application can be displayed on the desktop, and the interface plays the latest episode of XX anime.
[0150] In other embodiments, the message notification component can be created by a target local application. The target local application serves as a local application that temporarily assists the simulator in creating the message notification component. Since the target local application itself does not have the ability to start the target application, when the start control on the message notification component is triggered, the target local application can transmit the application start information corresponding to the start control to the simulator. The simulator then starts the target application based on the application start information and displays the target message interface of the notification message corresponding to the target application on the desktop.
[0151] As an implementation mode, in response to the start trigger of the start control on the message notification component, the application start information and the notification message can be extracted from the message notification component, and according to the simulator address in the application start information, the target application information in the application start information can be transmitted to the simulator, and the simulator starts the target application according to the target application information and the notification message. Furthermore, the target message interface of the notification message corresponding to the target application is displayed on the desktop.
[0152] like Fig.18A As shown, a notification bar (i.e., a message notification component) created by a game accelerator (i.e., a target local application) is displayed on the desktop. When the user sees the notification bar, he can click (i.e., start triggering) the "Change Now" control (i.e., start control) on the notification bar. Then, the first terminal can obtain the application startup information and notification message corresponding to the GG mobile game (i.e., the target application) in response to the click of the "Change Now" control, and transmit the target application information in the application startup information to the simulator according to the simulator address in the application startup information. Then, the first terminal starts the GG mobile game according to the target application information and the notification message through the simulator. The notification message is used to convey the message "New GG mobile game skin" to the user. Furthermore, the first terminal can display the target message interface of the notification message corresponding to the target application on the desktop, such as Fig.18BAs shown, a skin selection interface corresponding to the target application can be displayed on the desktop.
[0153] See also Fig.19 , Fig.19 A flowchart for displaying a notification message is shown. When the first terminal obtains a notification message for a target application, it can obtain the remaining computing resources of the simulator. When the remaining computing resources corresponding to the simulator are greater than a resource threshold, a message notification component can be created based on the simulator and the message notification component can be displayed. Specifically, exemplarily, a message notification interface is called based on the simulator, and a message notification component corresponding to the notification message is created for the simulator according to the message notification interface. Then, the notification message is displayed on the desktop with the message notification component created by the simulator. Furthermore, in response to a start trigger of a start control on the message notification component corresponding to the simulator, the application start information corresponding to the target application can be obtained, and the target application can be started through the simulator based on the target application information and the notification message in the application start information. Then, the target message interface corresponding to the notification message of the target application is displayed on the desktop.
[0154] When the remaining computing resources corresponding to the simulator are not greater than the resource threshold, the target local application associated with the first operating system of the first terminal can be determined, and then, a message notification component corresponding to the notification message is created through the target local application, and the notification message is displayed on the desktop with the message notification component created by the target local application. Further, in response to the start trigger of the start control on the message notification component corresponding to the target local application, the application start information and the notification message can be extracted from the message notification component. Then, according to the simulator address in the application start information, the target application information in the application start information is transmitted to the simulator, so that the simulator starts the target application based on the application start information.
[0155] In this way, even when the simulator does not have enough remaining computing resources to create a notification component, it can still ensure that the message notification component is created in time to display the notification message, avoiding notification delays or losses due to limited simulator resources. Specifically, through the dynamic resource management mechanism, when it is detected that the simulator computing resources are insufficient, an alternative message notification method is triggered, so that the delivery of notification messages is timely and reliable, and the robustness of message notifications is improved. In addition, the notification message is directly associated with the target application, so that the target object can enter the target application by triggering the start control of the message notification component while receiving the notification message, avoiding interruptions or delays and improving the smoothness of application interaction.
[0156] Step 240: In response to a close trigger of a close control on a message notification component that displays a notification message, and when it is detected that a quick launch component of a target application exists on the desktop, the number of messages corresponding to the notification message is obtained.
[0157] The close control on the message notification component is actually a trigger for closing the message notification component. The close trigger can be implemented in a variety of ways. For example, when the message notification component is displayed in a pop-up notification window, the close trigger of the message notification component can be completed by clicking the close trigger. Considering that closing the message notification component may cause the user to forget to check the notification message, for this reason, the present application proposes to display the number of notification messages in the style of a shortcut "corner mark" to ensure that the notification will not be ignored.
[0158] As an implementation mode, in response to the close trigger of the close control on the message notification component that displays the notification message, it is detected in the registry of the first operating system whether there is a quick launch component corresponding to the target application. If it is detected that there is a quick launch component of the target application, the message quantity corresponding to the notification message can be obtained.
[0159] Step 250: Based on the number of messages, the display style of the quick launch component is updated to display the updated quick launch component with the number of messages on the desktop.
[0160] For example, Fig. 20A As shown, the taskbar icon corresponding to the target application (i.e., the quick launch component) is displayed on the taskbar of the desktop. When the user clicks the close control "×" on the pop-up window (i.e., the message notification component), the computer responds to the close trigger of the close control, and when it detects that the target application has a quick launch component on the desktop, it obtains a notification message. Furthermore, the number of badge messages corresponding to the badge of the quick launch component can be obtained, and the number of badge messages can be added to the number of messages corresponding to the notification message to obtain a new number of badge messages, and then the taskbar icon corresponding to the target application is updated based on the new number of badge messages, such as Fig. 20B As shown, the number of corner message of the taskbar icon of the target application is Fig. 20A The value 3 shown is updated to a value 4. The updating of the number of badge messages of the taskbar icon can be implemented by the taskbar badge (Badge Notifications) function of Windows: the number of badge messages is updated by using Windows Badge API or Toast Notifications.
[0161] In some embodiments, when it is detected that there is no quick launch component for the target application on the desktop, the application status corresponding to the target application is obtained within a preset time period. When the application status is the application running status, the preset time period is stopped to obtain the application status corresponding to the target application. When the preset time period ends and the application status is always the application closed status, the message notification component is redisplayed on the desktop, and execution returns to the preset time period to obtain the application status corresponding to the target application.
[0162] According to an embodiment of the present application, another message notification method is provided. The message notification method can be executed by a computer device (such as a desktop computer, a laptop computer or other terminal device with certain processing capabilities, etc.) after step 110 of the above embodiment. The computer device has at least storage, calculation and communication functions. Fig.21 , Fig.21 A schematic flow chart of the message notification method provided in this embodiment is shown.
[0163] The following will be combined Fig.21 The specific steps of the message notification method are described below:
[0164] Step 310: In response to the invocation trigger of the shortcut of the target application on the simulator interface, the target application interface corresponding to the target application is displayed on the desktop based on the simulation end.
[0165] A call trigger is an interactive operation used to start the target application on the simulator. The call trigger can be implemented in many ways. Fig.22A As shown, the user can click on the shortcut corresponding to the target application "Application E" on the simulator interface, and then in response to the call trigger of the shortcut, the simulator can display the following on the desktop: Fig. 22B The target application "Application E" corresponds to the target application interface shown. The message notification icon at the bottom of the target application interface displays a notification message prompt, and the user can click the message notification icon to view the specific content of the notification message.
[0166] Step 320: In response to the exit trigger of the target application interface, the target application interface is closed based on the simulation end, and the target application is run in the background on the simulation end.
[0167] Exit trigger refers to the interactive operation used to close the target application interface of the target application on the simulator. Exit trigger can be implemented in many ways, such as Fig. 22B As shown, the user can click the interface close control "×" on the target application interface, and then, in response to the click of the interface close control "×", the simulator can close the target application interface, and the target application can run in the background. The user can also click the interface minimize control "-" on the target application interface, and then, in response to the click of the interface minimize control "-", the simulator can close the target application interface.
[0168] Considering that when a user uses an emulator to run an application installed in the emulator on a terminal, if the application window corresponding to the application is closed, the notification message about the application cannot be delivered to the user in time. Therefore, the present application proposes to display the notification message through the emulator, so that even if the application in the emulator is running in the background or the application window is minimized, the user can receive the notification message of the application in time.
[0169] Step 330: In response to the notification message for the target application, transmit the notification message to the main control end based on the simulation end.
[0170] The simulator can include a host and a guest. The host refers to the simulator application running on the first terminal, as well as the hardware abstraction layer, operating system, and user interface components that are compatible with it. The host is responsible for creating and managing the virtual guest and provides a series of tools and interfaces so that users can interact with the guest. For example, Fig. 22B The simulator as a local application on the desktop shown is the main control end, and the simulation end created by the main control end runs the application E in the simulator, and the simulation end displays the target application interface of the application E as the target application.
[0171] As an implementation method, the simulator running the target application in the simulator can receive a notification message sent by the server corresponding to the target application, and forward the notification message to the host, so that the host displays the notification message on the first operating system. Fig.23 The target application obtains the timing diagram of the PUSH message, Fig.23 The target application can be an Android APP installed on the Android simulator on Windows as the first operating system. The target application can pull the PUSH message by sending a request to pull the PUSH message to the server. When the server receives the request, it can return the PUSH message to the target application. When the target application receives the PUSH message sent by the server, it can call the Android API of the simulation end to display the PUSH message. Since the target application interface of the target application is in a closed state and cannot display the message, the simulation end can intercept the PUSH message.
[0172] For example, when the target application receives a PUSH message sent by the server, the target application can obtain the system service NotificationManager by calling the Context.getSystemService method (a method for obtaining system-level services from the Android operating system), where NotificationManager is responsible for managing the release and display of notifications. NotificationManager can send PUSH messages to the status bar and display them in the notification bar. The target application calls the build method of Notification.Builder to create a Notification object, which encapsulates all the contents displayed by the PUSH message. The simulation end of the Android emulator can intercept the PUSH message to be displayed by the Notification object, and send the PUSH message to the main control end of the Android emulator, which then displays the PUSH message on Windows.
[0173] Step 340: Create a message notification component based on the notification message through the main control end, and display the message notification component corresponding to the notification message on the desktop.
[0174] like Fig.24 The timing diagram of the simulation end sending a PUSH message to the main control end is shown. When the target application calls the system service NotificationManager to request the simulator simulation end to display a PUSH message, the simulation end can intercept the PUSH message. Further, the simulation end can send the intercepted PUSH message to the simulator main control end, and then the main control end calls the Windows API to create a message notification component, and displays the PUSH message by displaying the message notification component on the Windows desktop. After the simulator main control end creates the message notification component, it can return the PUSH message display result to the simulation end, and then the simulation end returns the PUSH message display success result to the target application. In this way, the target application completes the entire process of displaying the PUSH message.
[0175] For example, see Fig.25 , Fig.25 A flowchart of PUSH message display is shown. A simulator is run on the Windows operating system of the first terminal, and the main control end of the simulator is a local application that manages the simulated second operating system - the application market. Users can download the required application (Application, APP) in the application market, and the APP is installed on the simulated end and runs on the simulator. The APP can start the process of pulling PUSH messages during operation. When the APP pulls the PUSH message from the server, it can call the simulator's system API to display the PUSH message.
[0176] Specifically, the simulation end intercepts the PUSH message and forwards the PUSH message to the application market, and then the application market can call the Windows API to create a notification bar to display the PUSH message. Optionally, the application market can also wake up the APP whose application interface has been closed according to the PUSH message, such as Fig.26 As shown, the user can click a button on the notification bar for viewing the PUSH message, and then the first terminal can call the simulator program to start the APP and display the application interface of the APP.
[0177] See also Fig. 27 , which shows a structural block diagram of a message notification device 400 provided in an embodiment of the present application. The message notification device 400 may include an interface display module 410 and a message notification module 420.
[0178] An interface display module 410, configured to display a simulator interface in response to a trigger of calling the simulator on the desktop of the first terminal, wherein the simulator interface includes at least a shortcut of a target application;
[0179] A message notification module 420, configured to display a notification message of the target application on the desktop;
[0180] The target application is an application adapted to a second operating system of the second terminal, the second operating system is different from a first operating system of the first terminal, and the application state of the target application is an application closed state.
[0181] In some embodiments, the message notification module 420 may include a first component creation unit, which is used to display a notification message corresponding to the target application on the desktop based on the message notification component created by the simulator.
[0182] In some embodiments, the first component creation component can be specifically used to: obtain the remaining computing resources corresponding to the simulator in response to a notification message for the target application; when it is detected that the remaining computing resources corresponding to the simulator are greater than a resource threshold, call a message notification interface based on the simulator; create a message notification component for the simulator corresponding to the notification message of the target application according to the message notification interface; and display the notification message on the desktop using the message notification component created by the simulator.
[0183] In some embodiments, the message notification module 420 may also include a second component creation unit, which is used to display the notification message corresponding to the target application on the desktop based on the message notification component created by the target local application; wherein the target local application is a local application that has generated a shortcut combination component with the target application on the first operating system of the first terminal and is running.
[0184] In some embodiments, the second component creation unit may include: a resource acquisition subunit, a resource detection subunit, a component creation subunit, and a component display subunit.
[0185] A resource acquisition subunit, configured to acquire remaining computing resources corresponding to the simulator in response to a notification message for the target application;
[0186] a resource detection subunit, configured to determine a target local application associated with the target application in the first operating system of the first terminal when detecting that the remaining computing resources corresponding to the simulator are not greater than a resource threshold;
[0187] A component creation subunit, configured to create a message notification component corresponding to a notification message of the target application through the target local application;
[0188] The component display subunit is used to display the notification message on the desktop using the message notification component created by the target local application.
[0189] In some embodiments, the resource detection sub-unit may include an analysis sub-sub-unit, a generation sub-sub-unit, and a determination sub-sub-unit.
[0190] An analysis sub-sub-unit, used to analyze the notification message to obtain target application information corresponding to the target application;
[0191] a generating sub-sub-unit, configured to determine, according to the target application information, a candidate local application corresponding to the target application, the candidate local application being a local application that has generated a shortcut combination component with the target application on the first operating system of the first terminal;
[0192] The determination sub-sub-unit is used to use any local application whose current application state is an application running state among the candidate local applications as a target local application associated with the target application.
[0193] In some embodiments, the generating sub-sub-unit may be specifically used to: search for a shortcut combination component associated with the target application information in a configuration file of the first operating system of the first terminal; and determine a local application corresponding to the shortcut combination component as a candidate local application corresponding to the target application.
[0194] In some embodiments, the component creation subunit may be specifically used to:
[0195] Obtaining a simulator address corresponding to the simulator;
[0196] Generate application startup information based on the simulator address and target application information corresponding to the target application;
[0197] Calling a message notification interface according to the target local application;
[0198] A message notification component is created based on the application startup information and the notification message through the message notification interface.
[0199] In some embodiments, the second component creation unit may further include a message extraction subunit, an application launch subunit, and an interface display subunit.
[0200] A message extraction subunit, configured to extract the application startup information and the notification message from the message notification component in response to a startup trigger of a startup control on the message notification component;
[0201] An application startup subunit, configured to transmit the target application information in the application startup information to the simulator according to the simulator address in the application startup information, and the simulator starts the target application according to the target application information and the notification message;
[0202] The interface display subunit is used to display a target message interface of the target application corresponding to the notification message on the desktop.
[0203] In some embodiments, the message notification component includes a startup control; the message notification device 400 may also include an interface display module for displaying a target message interface of the target application corresponding to the notification message on the desktop in response to a startup trigger of the startup control on the message notification component that displays the notification message.
[0204] In some embodiments, the interface display module may further include a startup information acquisition unit, a target application startup unit, and a notification message display unit.
[0205] A startup information acquisition unit, used to acquire application startup information corresponding to the target application;
[0206] A target application starting unit, configured to start the target application through the simulator based on the target application information in the application starting information and the notification message;
[0207] The notification message display unit is used to display a target message interface of the target application corresponding to the notification message on the desktop.
[0208] In some embodiments, the target application startup unit can also be specifically used to: analyze the target application information in the application startup information to obtain an application resource identifier corresponding to the target application; obtain an application installation package corresponding to the target application according to the application resource identifier, and create an application running container; run the application installation package in the application running container based on the notification message to start the target application to display the target message interface corresponding to the notification message.
[0209] In some embodiments, the message notification component includes a close control; the message notification device 400 may also include a quantity acquisition module and a component update module.
[0210] A quantity acquisition module, configured to acquire the number of messages corresponding to the notification message in response to a close trigger of a close control on the message notification component displaying the notification message and when it is detected that the target application has a quick launch component on the desktop;
[0211] The component updating module is used to update the display style of the quick launch component based on the number of messages, so as to display the updated quick launch component with the number of messages on the desktop.
[0212] In some embodiments, the message notification device 400 may further include: a state acquisition module, a periodic stop module, and a return execution module.
[0213] A status acquisition module, configured to acquire the application status corresponding to the target application within a preset time period when it is detected that there is no quick launch component for the target application on the desktop;
[0214] A periodic stop module, used to stop at a preset time period when the application state is an application running state, and obtain the application state corresponding to the target application;
[0215] The return execution module is used to redisplay the message notification component on the desktop when the preset time period ends and the application state is always in the application closed state, and return to the preset time period to obtain the application state corresponding to the target application.
[0216] In some embodiments, the simulator includes a host end and a simulation end, and the message notification device 400 may further include: a call trigger module, an exit trigger module, an information transmission module, and a desktop display module.
[0217] A calling trigger module, configured to respond to a calling trigger of a shortcut of a target application on the simulator interface, and display a target application interface corresponding to the target application on the desktop based on the simulation end;
[0218] An exit trigger module, configured to respond to an exit trigger on the target application interface, close the target application interface based on the simulation end, and run the target application in the background on the simulation end;
[0219] an information transmission module, configured to respond to a notification message for the target application and transmit the notification message to the host end based on the simulation end;
[0220] The desktop display module is used to create a message notification component based on the notification message through the host side, and display the message notification component corresponding to the notification message on the desktop.
[0221] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices, modules, etc. can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0222] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.
[0223] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0224] This embodiment can display the simulator interface in response to a call trigger to the simulator on the desktop of the first terminal, and further, in response to a notification message for a target application in the simulator, display a message notification component corresponding to the notification message on the desktop, wherein the target application is an application adapted to the second operating system of the second terminal, the second operating system is different from the first operating system of the first terminal, and the application state of the target application is an application closed state. Thus, in the case of closing the target application in the simulator, a corresponding message notification component is created for the notification message for the target application through the simulator, and the message notification component is displayed on the desktop of the first operating system running on the first terminal, thereby avoiding the problem that the notification message corresponding to the target application cannot be displayed due to the closure of the target application, thereby improving the information notification efficiency and timeliness of the notification message of the target application in the simulator, and effectively reducing the delay time for the target object to obtain the notification message of the target application.
[0225] like Fig.28As shown, the embodiment of the present application also provides a computer device 500, which can be in various forms such as a desktop computer or a laptop computer. The computer device 500 includes a processor 510, a memory 520, a power supply 530 and an input unit 540. The memory 520 stores a computer program. When the computer program is called by the processor 510, the various method steps provided in the above embodiments can be implemented. Those skilled in the art can understand that the structure of the computer device shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:
[0226] The processor 510 may include one or more processing cores. The processor 510 uses various interfaces and lines to connect various parts of the entire battery management system, and by running or executing instructions, programs, instruction sets or program sets stored in the memory 520, calls the data stored in the memory 520, executes various functions of the battery management system and processes data, and executes various functions and processes data of the computer device, thereby controlling the computer device as a whole. Optionally, the processor 510 can be implemented in at least one hardware form of digital signal processing (DSP), field programmable gate array (FPGA), and programmable logic array (PLA). The processor 510 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, object interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 510, but may be implemented separately through a communication chip.
[0227] The memory 520 may include a random access memory (RAM) or a read-only memory (ROM). The memory 520 may be used to store instructions, programs, instruction sets or program sets. The memory 520 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The data storage area may also store data (such as a phone book and audio and video data) created by the computer device during use. Accordingly, the memory 520 may also include a memory controller to provide the processor 510 with access to the memory 520.
[0228] The power supply 530 can be logically connected to the processor 510 through a power management system, so as to manage charging, discharging, power consumption, etc. through the power management system. The power supply 530 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0229] The input unit 540 may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to object setting and function control.
[0230] Although not shown, the computer device 500 may also include an output unit, a display unit, etc., which are not described in detail herein. Specifically, in the embodiment of the present application, the processor 510 of the computer device will load the executable files corresponding to the processes of one or more computer programs into the memory 520 according to the following instructions, and the processor 510 will run the data stored in the memory 520, such as the phone book and audio and video data, so as to implement the various method steps provided in the aforementioned embodiments.
[0231] like Fig.29 As shown, the embodiment of the present application further provides a computer-readable storage medium 600, in which a computer program 610 is stored. The computer program 610 can be called by a processor of a computer device to execute various method steps provided in the embodiment of the present application.
[0232] The computer readable storage medium may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read-Only Memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium includes a non-volatile computer readable storage medium (Non-Transitory Computer-Readable Storage Medium). The computer readable storage medium 600 has storage space for a computer program that executes any of the method steps in the above embodiments. These computer programs can be read from or written to one or more computer program products. The computer program can be compressed in an appropriate form.
[0233] According to one aspect of the present application, a computer program product is provided, the computer program product comprising a computer program, the computer program being stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes various method steps provided in the above embodiments.
[0234] The terms "comprises" and "includes" in the specification of the present application and the above-mentioned drawings and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. The term "module" or "unit" refers to a computer program or a part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.
[0235] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0236] It should be understood that in the description of the embodiments of the present application, the meaning of multiple (or multiple items) is more than two, greater than, less than, exceed, etc. are understood to not include the number, and above, below, within, etc. are understood to include the number.
[0237] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0238] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware or in the form of software functional units.
[0239] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. It should also be understood that the various implementation methods provided in the embodiments of the present application can be arbitrarily combined to achieve different technical effects.
[0240] The above are only preferred embodiments of the present application, and are not intended to limit the present application in any form. Although the present application has been disclosed as above with preferred embodiments, it is not intended to limit the present application. Any technical personnel in the field can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present application. However, any brief modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present application without departing from the content of the technical solution of the present application are still within the scope of the technical solution of the present application.
Claims
1. A message notification method, characterized in that: The method comprises: In response to a triggering call to the simulator on the desktop of the first terminal, displaying a simulator interface, wherein the simulator interface includes at least a shortcut to the target application; Displaying a notification message of the target application on the desktop; The target application is an application adapted to a second operating system of the second terminal, the second operating system is different from a first operating system of the first terminal, and the application state of the target application is an application closed state.
2. The method according to claim 1, characterized in that The step of displaying the notification message of the target application on the desktop includes: On the desktop, a notification message corresponding to the target application is displayed based on the message notification component created by the simulator.
3. The method according to claim 2, characterized in that The step of displaying the notification message corresponding to the target application on the desktop based on the message notification component created by the simulator includes: In response to the notification message for the target application, obtaining remaining computing resources corresponding to the simulator; When it is detected that the remaining computing resources corresponding to the simulator are greater than a resource threshold, a message notification interface is called based on the simulator; According to the message notification interface, creating a message notification component corresponding to the notification message of the target application for the simulator; On the desktop, the notification message is displayed using a message notification component created by the simulator.
4. The method according to claim 1, characterized in that: The step of displaying the notification message of the target application on the desktop includes: On the desktop, based on the message notification component created by the target local application, display the notification message corresponding to the target application; The target local application is a local application that has generated a shortcut combination component with the target application on the first operating system of the first terminal and is currently running.
5. The method according to claim 4, characterized in that The step of displaying a notification message corresponding to the target application on the desktop based on a message notification component created by the target local application includes: In response to the notification message for the target application, obtaining remaining computing resources corresponding to the simulator; When it is detected that the remaining computing resources corresponding to the simulator are not greater than the resource threshold, determining a target local application associated with the first operating system of the first terminal; Creating a message notification component corresponding to the notification message of the target application through the target local application; On the desktop, the notification message is displayed using a message notification component created by the target local application.
6. The method according to claim 5, characterized in that The determining the target local application associated with the first operating system of the first terminal includes: Analyze the notification message to obtain target application information corresponding to the target application; Determine, according to the target application information, a candidate local application corresponding to the target application, the candidate local application being a local application that has generated a shortcut combination component with the target application on the first operating system of the first terminal; Any local application in the candidate local applications whose current application state is an application running state is used as the target local application associated with the target application.
7. The method according to claim 6, characterized in that The determining, according to the target application information, a candidate local application corresponding to the target application includes: In a configuration file of a first operating system of the first terminal, searching for a shortcut combination component associated with the target application information; The local application corresponding to the shortcut combination component is determined as the candidate local application corresponding to the target application.
8. The method according to any one of claims 5 to 7, characterized in that: The message notification component that creates a notification message corresponding to the target application through the target local application includes: Obtaining a simulator address corresponding to the simulator; Generate application startup information based on the simulator address and target application information corresponding to the target application; Calling a message notification interface according to the target local application; A message notification component is created based on the application startup information and the notification message through the message notification interface.
9. The method according to claim 8, characterized in that After displaying the notification message on the desktop using the message notification component created by the target local application, the method further includes: In response to a start trigger of a start control on the message notification component, extracting the application start information and the notification message from the message notification component; According to the simulator address in the application startup information, the target application information in the application startup information is transmitted to the simulator, and the simulator starts the target application according to the target application information and the notification message; On the desktop, a target message interface of the target application corresponding to the notification message is displayed.
10. The method according to claim 1, characterized in that After the notification message of the target application is displayed on the desktop, the method further includes: In response to the start triggering of the start control on the message notification component displaying the notification message, a target message interface of the target application corresponding to the notification message is displayed on the desktop.
11. The method according to claim 10, characterized in that The displaying a target message interface of the target application corresponding to the notification message on the desktop includes: Obtaining application startup information corresponding to the target application; Starting the target application based on the target application information in the application startup information and the notification message through the simulator; On the desktop, a target message interface of the target application corresponding to the notification message is displayed.
12. The method according to claim 11, characterized in that The starting the target application based on the target application information in the application starting information and the notification message includes: Analyze the target application information in the application startup information to obtain an application resource identifier corresponding to the target application; Acquire the application installation package corresponding to the target application according to the application resource identifier, and create an application running container; The application installation package is run in the application running container based on the notification message to start the target application to display the target message interface corresponding to the notification message.
13. The method according to claim 1, characterized in that After the notification message of the target application is displayed on the desktop, the method further includes: In response to a close trigger of a close control on a message notification component displaying the notification message, and when it is detected that a quick launch component of the target application exists on the desktop, obtaining the number of messages corresponding to the notification message; Based on the number of messages, the display style of the quick launch component is updated to display the updated quick launch component with the number of messages on the desktop.
14. The method according to claim 13, characterized in that The method further comprises: When it is detected that there is no quick launch component for the target application on the desktop, obtaining the application state corresponding to the target application within a preset time period; When the application state is an application running state, stop at a preset time period and obtain the application state corresponding to the target application; When the preset time period ends and the application state is always in the application closed state, the message notification component is redisplayed on the desktop, and execution returns to the preset time period to obtain the application state corresponding to the target application.
15. The method according to claim 1, characterized in that The simulator comprises a host end and a simulator end. After the simulator interface is displayed in response to the simulator being called on the desktop of the first terminal, the simulator further comprises: In response to a call trigger of a shortcut of a target application on the simulator interface, displaying a target application interface corresponding to the target application on the desktop based on the simulator end; In response to the exit trigger of the target application interface, closing the target application interface based on the simulation end, and running the target application in the background on the simulation end; In response to a notification message for the target application, transmitting the notification message to the host end based on the simulation end; Through the host side, a message notification component is created based on the notification message, and the message notification component corresponding to the notification message is displayed on the desktop.
16. A message notification device, characterized in that: The device comprises: An interface display module, configured to display a simulator interface in response to a call trigger of the simulator on the desktop of the first terminal, wherein the simulator interface includes at least a shortcut of a target application; A message notification module, used to display a notification message of the target application on the desktop; The target application is an application adapted to a second operating system of the second terminal, the second operating system is different from a first operating system of the first terminal, and the application state of the target application is an application closed state.
17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the message notification method according to any one of claims 1 to 15 is implemented.
18. A computer device, characterized in that: include: Memory; A processor, wherein a computer program is stored on the memory, and when the computer program is executed by the processor, the message notification method according to any one of claims 1 to 15 is implemented.
19. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the message notification method according to any one of claims 1 to 15 is implemented.