Cross-platform customized notification pushing method, device and system

By determining the notification configuration parameters of each operating system in the cross-platform compatibility layer of the notification system, the problem of inconsistent notification push experience on different platforms is solved, and consistent notification push is achieved across platforms, and the flexibility of notification services is improved. and user experience.

CN119449879APending Publication Date: 2025-02-14SHENZHEN GREEN CONNECTION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411488218.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-23
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

The existing pop-up notification library performs inconsistently on different platforms, resulting in poor notification push experience for cross-platform applications and is difficult to meet the notification form requirements in complex application scenarios.

Method used

Consistent notification push across platforms is achieved by determining the notification configuration parameters for each operating system in the cross-platform compatibility layer of the notification system, including push configuration parameters and visual configuration parameters, and supporting asynchronous loading and event listening mechanisms to improve flexibility Sex and interactivity.

Benefits of technology

It realizes the customization flexibility of notification push configuration while maintaining the consistency of notification push logic, improves users' experience of notification services, and improves the adaptability of notification services to different platforms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119449879A_ABST
    Figure CN119449879A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of message pushing, and discloses a cross-platform customized notification pushing method, device and system, and the method comprises the steps: obtaining a to-be-pushed notification set after a notification task is monitored; based on a cross-platform compatible layer of the notification system, second operating systems needing to push the notification set and notification configuration parameters set by each second operating system are determined from all the first operating systems, and the notification configuration parameters comprise push configuration parameters and / or visual configuration parameters; and for each second operating system, pushing the notification service corresponding to the notification set to the second operating system based on the notification configuration parameters of the second operating system. It can be seen that the same notification information can be flexibly pushed to different platforms according to the customized configuration parameters, the cross-platform consistency of notification pushing logic is kept, meanwhile, the customization flexibility of notification pushing configuration is improved, and the use experience of a user for notification services can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of message push technology, and in particular to a cross-platform customized notification push method, device and system. Background Art

[0002] A pop-up notification is a notification displayed in the form of a pop-up window on the user interface. It is usually used to display instant information to the user to attract the user's attention to the information in the notification and allow the user to make a simple response to the notification.

[0003] In practice, it is found that existing pop-up notification libraries can often only run on specific platforms (such as Android or iOS), or the same notification form is inconsistent on different platforms, resulting in differences in notification push experience in cross-platform applications; and most existing pop-up notification libraries only have fixed notification forms, which are difficult to meet the notification form requirements in complex application scenarios.

[0004] Therefore, it is particularly important to propose a technical solution that can improve the customization flexibility of notification push configuration while maintaining the cross-platform consistency of notification push logic, so as to improve the user experience of notification services. Summary of the invention

[0005] The present invention provides a cross-platform customized notification push method, device and system, which can improve the customization flexibility of notification push configuration while maintaining the cross-platform consistency of notification push logic, which is conducive to improving the user experience of notification services.

[0006] In order to solve the above technical problems, the first aspect of the present invention discloses a cross-platform customized notification push method, the method comprising:

[0007] After the notification task is detected, a notification set to be pushed is obtained; the notification set includes at least one notification information;

[0008] Based on the cross-platform compatibility layer of the notification system, determining at least one second operating system that needs to push the notification set and notification configuration parameters set by each second operating system from all first operating systems; the notification configuration parameters include push configuration parameters and / or visualization configuration parameters;

[0009] For each of the second operating systems, based on the notification configuration parameters of the second operating system, the notification service corresponding to the notification set is pushed to the second operating system.

[0010] As an optional implementation, in the first aspect of the present invention, the notification system is a system built based on the Flutter framework;

[0011] Among them, the cross-platform compatibility layer of the notification system is provided with an abstract notification interface; the abstract notification interface encapsulates the abstract configuration parameters corresponding to the notification system; and the abstract notification interface corresponds to a plurality of implementation notification interfaces corresponding to the first operating system; each of the implementation notification interfaces includes notification configuration parameters of the first operating system that match the abstract configuration parameters; the push configuration parameters include at least one of a notification display mode, a notification hiding mode, and a notification update mode; the visualization configuration parameters include at least one of a notification style parameter, a notification animation parameter, a notification display position parameter, and a visualization resource path;

[0012] Each of the second operating systems is one of the first operating systems.

[0013] As an optional implementation, in the first aspect of the present invention, for each of the platforms, the notification configuration parameters corresponding to the second operating system are set in the following manner:

[0014] Obtaining a notification push requirement corresponding to the second operating system; the notification push requirement includes at least one of a push mode requirement, a visualization requirement, an interaction requirement, a platform customized behavior requirement, and an application scenario requirement; wherein the platform customized behavior requirement includes at least one of a customized gesture control requirement, a customized display position requirement, and a customized display animation requirement;

[0015] According to the notification push requirement, notification configuration parameters corresponding to the second operating system are determined.

[0016] As an optional implementation, in the first aspect of the present invention, for each second operating system, in the process of pushing the notification service corresponding to the notification set to the second operating system based on the notification configuration parameters of the second operating system, the method further includes:

[0017] Setting an event listener for the notification service;

[0018] Based on the event listener, monitoring whether there is an interaction event of the user of the second operating system for the notification service; the interaction event includes at least one of a click event, a slide event and a close event;

[0019] When an interaction event of the user of the second operating system with respect to the notification service is monitored, an event processing function corresponding to the event type is called back according to the event type of the interaction event; wherein the event processing function is used to execute a response operation corresponding to the interaction event.

[0020] As an optional implementation manner, in the first aspect of the present invention, each piece of notification information includes a notification title and / or notification content;

[0021] Wherein, for each of the second operating systems, the method further includes:

[0022] Based on the notification system, obtaining a pre-built notification configuration class corresponding to the second operating system;

[0023] Determine, based on the visualization configuration parameters of the second operating system and the notification set, a notification configuration object of the notification configuration class for each piece of notification information;

[0024] Wherein, for each second operating system, the step of pushing the notification service corresponding to the notification set to the second operating system based on the notification configuration parameters of the second operating system includes:

[0025] Asynchronously loading the notification resource corresponding to each notification information in the notification set; the notification resource includes at least one of a style resource, an animation resource, an image resource, and a sound effect resource;

[0026] Based on the notification resource corresponding to each piece of the notification information, the push configuration parameter and the notification configuration object, each piece of the notification information is pushed to the second operating system and the notification information is rendered on the second operating system.

[0027] As an optional implementation, in the first aspect of the present invention, the notification set further includes notification parameters corresponding to each piece of the notification information; the notification parameters include a receiving order corresponding to the notification information and / or a priority corresponding to the notification information;

[0028] Wherein, the method further comprises:

[0029] When the notification set includes at least two pieces of notification information, determining the notification queue type corresponding to the notification set based on the notification queue management mechanism of the notification system; the notification queue type includes one of a first-in-first-out queue type, a priority queue type, and a time window queue type;

[0030] According to the notification queue type, based on the notification parameters corresponding to each piece of the notification information, a notification queue corresponding to the notification set is generated; the notification queue includes all the notification information and the queue order corresponding to each piece of the notification information;

[0031] Wherein, for each second operating system, based on the notification resource corresponding to each piece of the notification information, the push configuration parameter, and the notification configuration object, each piece of the notification information is pushed to the second operating system and rendered on the second operating system, including:

[0032] When the notification set includes at least two notification messages, based on the notification resource corresponding to each notification message, the push configuration parameters and the notification configuration object, each notification message in the notification queue is pushed to the second operating system according to the queue sorting and each notification message is rendered in sequence on the second operating system.

[0033] As an optional implementation manner, in the first aspect of the present invention, the notification parameter further includes a notification type;

[0034] Wherein, for each second operating system, based on the notification resource corresponding to each piece of the notification information, the push configuration parameter, and the notification configuration object, each piece of the notification information in the notification queue is pushed to the second operating system according to the queue sorting and each piece of the notification information is sequentially rendered on the second operating system, including:

[0035] According to the notification parameters corresponding to each piece of the notification information, determining whether the notification information corresponding to each of the notification types in the notification queue meets a preset notification merging condition;

[0036] When it is determined that there is a notification information corresponding to the notification type in the notification queue that meets the notification merging condition, determining at least one notification information group in the notification queue that meets the notification merging condition; wherein each notification information group includes multiple notification information to be merged;

[0037] Merging the multiple pieces of notification information to be merged contained in each notification information group into one piece of merged notification information corresponding to the notification information group;

[0038] Based on all the merged notification information, adjusting the notification queue to obtain a target notification queue;

[0039] When it is determined that there is no notification information corresponding to any of the notification types in the notification queue that meets the notification merging condition, the notification queue is determined as a target notification queue; the target notification queue includes multiple target notification information; each of the target notification information is the merged notification information or the notification information;

[0040] Determine the scheduling time corresponding to each target notification information in the target notification queue based on the scheduling policy corresponding to the notification queue management mechanism;

[0041] Based on the push configuration parameters and the notification configuration object, the target notification information is pushed to the second operating system at the scheduling time corresponding to each piece of the target notification information and the notification information is rendered on the second operating system.

[0042] A second aspect of the present invention discloses a cross-platform customized notification push device, which is applied to electronic devices with different operating systems, and includes:

[0043] An acquisition module, used to acquire a notification set to be pushed after monitoring a notification task; the notification set includes at least one notification information;

[0044] A determination module, configured to determine, based on a cross-platform compatibility layer of the notification system, at least one second operating system from all first operating systems to which the notification set needs to be pushed and notification configuration parameters set by each second operating system; the notification configuration parameters include push configuration parameters and / or visualization configuration parameters;

[0045] The push module is used to push the notification service corresponding to the notification set to each second operating system based on the notification configuration parameters of the second operating system.

[0046] As an optional implementation, in the second aspect of the present invention, the notification system is a system built based on the Flutter framework;

[0047] Among them, the cross-platform compatibility layer of the notification system is provided with an abstract notification interface; the abstract notification interface encapsulates the abstract configuration parameters corresponding to the notification system; and the abstract notification interface corresponds to a plurality of implementation notification interfaces corresponding to the first operating system; each of the implementation notification interfaces includes notification configuration parameters of the first operating system that match the abstract configuration parameters; the push configuration parameters include at least one of a notification display mode, a notification hiding mode, and a notification update mode; the visualization configuration parameters include at least one of a notification style parameter, a notification animation parameter, a notification display position parameter, and a visualization resource path;

[0048] Each of the second operating systems is one of the first operating systems.

[0049] As an optional implementation, in the second aspect of the present invention, for each of the platforms, the notification configuration parameters corresponding to the second operating system are set in the following manner:

[0050] Obtaining a notification push requirement corresponding to the second operating system; the notification push requirement includes at least one of a push mode requirement, a visualization requirement, an interaction requirement, a platform customized behavior requirement, and an application scenario requirement; wherein the platform customized behavior requirement includes at least one of a customized gesture control requirement, a customized display position requirement, and a customized display animation requirement;

[0051] According to the notification push requirement, notification configuration parameters corresponding to the second operating system are determined.

[0052] As an optional implementation, in the second aspect of the present invention, the device further includes:

[0053] A setting module, configured to set, for each second operating system, an event listener for the notification service in the process in which the push module pushes the notification service corresponding to the notification set to the second operating system based on the notification configuration parameters of the second operating system;

[0054] A monitoring module, configured to monitor, based on the event monitor, whether there is an interaction event of the user of the second operating system with respect to the notification service; the interaction event includes at least one of a click event, a slide event, and a close event;

[0055] A callback module is used to call back an event processing function corresponding to the event type when the monitoring module monitors the existence of an interaction event of the user of the second operating system for the notification service, according to the event type of the interaction event; wherein the event processing function is used to execute a response operation corresponding to the interaction event.

[0056] As an optional implementation manner, in the second aspect of the present invention, each piece of notification information includes a notification title and / or notification content;

[0057] The acquisition module is further used to acquire a pre-built notification configuration class corresponding to the second operating system based on the notification system;

[0058] The determination module is further configured to determine, based on the visualization configuration parameters of the second operating system and the notification set, a notification configuration object of the notification configuration class for each piece of notification information;

[0059] Wherein, for each second operating system, the specific manner in which the push module pushes the notification service corresponding to the notification set to the second operating system based on the notification configuration parameters of the second operating system includes:

[0060] Based on the notification configuration parameters of the second operating system, construct a notification configuration object corresponding to the second operating system;

[0061] Asynchronously loading the notification resource corresponding to each notification information in the notification set; the notification resource includes at least one of a style resource, an animation resource, an image resource, and a sound effect resource;

[0062] Based on the notification resource corresponding to each piece of the notification information, the push configuration parameter and the notification configuration object, each piece of the notification information is pushed to the second operating system and the notification information is rendered on the second operating system.

[0063] As an optional implementation, in the second aspect of the present invention, the notification set further includes notification parameters corresponding to each piece of the notification information; the notification parameters include a receiving order corresponding to the notification information and / or a priority corresponding to the notification information;

[0064] The determination module is further configured to determine, when the notification set includes at least two pieces of notification information, a notification queue type corresponding to the notification set based on a notification queue management mechanism of the notification system; the notification queue type includes one of a first-in-first-out queue type, a priority queue type, and a time window queue type;

[0065] And, the device also includes:

[0066] A generating module, configured to generate a notification queue corresponding to the notification set according to the notification queue type and based on the notification parameters corresponding to each piece of the notification information; the notification queue includes all the notification information and the queue order corresponding to each piece of the notification information;

[0067] Among them, for each second operating system, the push module pushes each notification information to the second operating system based on the notification resource corresponding to each notification information, the push configuration parameter and the notification configuration object, and renders the notification information on the second operating system in a specific manner including:

[0068] When the notification set includes at least two notification messages, based on the notification resource corresponding to each notification message, the push configuration parameters and the notification configuration object, each notification message in the notification queue is pushed to the second operating system according to the queue sorting and each notification message is rendered in sequence on the second operating system.

[0069] As an optional implementation, in the second aspect of the present invention, the notification parameter further includes a notification type;

[0070] Among them, for each second operating system, the push module pushes each notification information in the notification queue to the second operating system according to the queue sorting based on the notification resource corresponding to each notification information, the push configuration parameter and the notification configuration object, and renders each notification information in sequence on the second operating system. The specific method includes:

[0071] According to the notification parameters corresponding to each piece of the notification information, determining whether the notification information corresponding to each of the notification types in the notification queue meets a preset notification merging condition;

[0072] When it is determined that there is a notification information corresponding to the notification type in the notification queue that meets the notification merging condition, determining at least one notification information group in the notification queue that meets the notification merging condition; wherein each notification information group includes multiple notification information to be merged;

[0073] Merging the multiple pieces of notification information to be merged contained in each notification information group into one piece of merged notification information corresponding to the notification information group;

[0074] Based on all the merged notification information, adjusting the notification queue to obtain a target notification queue;

[0075] When it is determined that there is no notification information corresponding to any of the notification types in the notification queue that meets the notification merging condition, the notification queue is determined as a target notification queue; the target notification queue includes multiple target notification information; each of the target notification information is the merged notification information or the notification information;

[0076] Determine the scheduling time corresponding to each target notification information in the target notification queue based on the scheduling policy corresponding to the notification queue management mechanism;

[0077] Based on the push configuration parameters and the notification configuration object, the target notification information is pushed to the second operating system at the scheduling time corresponding to each piece of the target notification information and the notification information is rendered on the second operating system.

[0078] The third aspect of the present invention discloses another cross-platform customized notification push device, the device comprising:

[0079] A memory storing executable program code;

[0080] a processor coupled to the memory;

[0081] The processor calls the executable program code stored in the memory to execute part or all of the steps of the cross-platform customized notification push method disclosed in the first aspect of the present invention.

[0082] The fourth aspect of the present invention discloses a cross-platform customized notification push system, the system includes a network attached storage device and an electronic device, the electronic device is communicatively connected to the network attached storage device, and the electronic device accesses the network attached storage device through a preset application, and the preset application is used to execute part or all of the steps of the cross-platform customized notification push method disclosed in the first aspect of the present invention.

[0083] The fifth aspect of the present invention discloses a computer storage medium, which stores computer instructions. When the computer instructions are called, they are used to execute some or all steps of the cross-platform customized notification push method disclosed in the first aspect of the present invention.

[0084] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0085] The implementation of the present invention can obtain a notification set to be pushed after monitoring a notification task, and based on the cross-platform compatibility layer of the notification system, determine at least one second operating system from all first operating systems to which the notification set needs to be pushed and the corresponding notification configuration parameters of each second operating system, and then based on the notification configuration parameters of each second operating system, push the notification service corresponding to the notification set to each second operating system. The same notification information can be flexibly pushed to different platforms based on customized notification configuration parameters through the cross-platform compatibility layer, and while maintaining the cross-platform consistency of the notification push logic, the customization flexibility of the notification push configuration can be improved, thereby increasing the diversity of the push forms of the notification information, and further increasing the push flexibility of the notification information, which is beneficial to improving the adaptability of the notification service to different platforms, and is beneficial to improving the user experience of the notification service for users of each platform. BRIEF DESCRIPTION OF THE DRAWINGS

[0086] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0087] Figure 1 It is a flowchart of a cross-platform customized notification push method disclosed in an embodiment of the present invention;

[0088] Figure 2 It is a flowchart of another cross-platform customized notification push method disclosed in an embodiment of the present invention;

[0089] Figure 3 It is a structural schematic diagram of a cross-platform customized notification push device disclosed in an embodiment of the present invention;

[0090] Figure 4 It is a structural schematic diagram of another cross-platform customized notification push device disclosed in an embodiment of the present invention;

[0091] Figure 5 It is a structural schematic diagram of another cross-platform customized notification push device disclosed in an embodiment of the present invention;

[0092] Figure 6 It is a structural diagram of a cross-platform customized notification push system disclosed in an embodiment of the present invention. DETAILED DESCRIPTION

[0093] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0094] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, product or end including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units inherent to these processes, methods, products or ends.

[0095] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0096] The present invention discloses a cross-platform customized notification push method, device and system, which can obtain a notification set to be pushed after monitoring a notification task, and determine at least one second operating system and corresponding notification configuration parameters of each second operating system from all first operating systems to which the notification set needs to be pushed based on the cross-platform compatibility layer of the notification system, and then push the notification service corresponding to the notification set to each second operating system based on the notification configuration parameters of each second operating system, and can flexibly push the same notification information to different platforms according to the customized notification configuration parameters through the cross-platform compatibility layer, and can improve the customization flexibility of the notification push configuration while maintaining the cross-platform consistency of the notification push logic, thereby improving the diversity of the push forms of the notification information, and then improving the push flexibility of the notification information, which is conducive to improving the adaptability of the notification service to different platforms, and is conducive to improving the user experience of the notification service for users of each platform. The following are detailed descriptions.

[0097] Embodiment 1

[0098] See also Figure 1 , Figure 1 : is a flow chart of a cross-platform customized notification push method disclosed in an embodiment of the present invention. Figure 1 The described cross-platform customized notification push method can be applied to a cross-platform customized notification push device, which may include a push device, a push terminal, a push system and a server, wherein the server may be a cloud server or a local server, which is not limited in the embodiments of the present invention; the method can also be applied to electronic devices with different operating systems, further, the electronic device can be connected to NAS (Network Attached Storage), and further, the electronic device can access the network attached storage device through a preset application, which is not limited in the embodiments of the present invention. Figure 1 As shown, the cross-platform customized notification push method may include the following operations:

[0099] 101. After the notification task is detected, a notification set to be pushed is obtained.

[0100] In an embodiment of the present invention, a notification set may include at least one notification message; optionally, each notification message may include a notification title and / or notification content, and further optionally, the notification content may include at least one of text content, image content, audio content and video content, which is not limited in the embodiment of the present invention; optionally, the notification set may also include notification parameters corresponding to each notification message, which is not limited in the embodiment of the present invention.

[0101] In the embodiment of the present invention, optionally, the notification system may include a combination of one or more of a cross-platform compatibility layer, a notification rendering engine, an event processing module, and a performance optimization module, which is not limited in the embodiment of the present invention.

[0102] 102. Based on the cross-platform compatibility layer of the notification system, determine at least one second operating system that needs to push a notification set and notification configuration parameters set by each second operating system from all first operating systems.

[0103] In an embodiment of the present invention, the cross-platform compatibility layer of the notification system can be associated with multiple first operating systems, and the notification system can push notifications to each first operating system, and each second operating system is one of the first operating systems; exemplarily, the first operating system associated with the cross-platform compatibility layer can include a combination of one or more of Web, iOS, Android, Windows, macOS and Linux, and may also include other operating systems, which is not limited in the embodiment of the present invention.

[0104] In an embodiment of the present invention, notification configuration parameters may include push configuration parameters and / or visualization configuration parameters, which are not limited in the embodiment of the present invention; wherein, the push configuration parameters are configuration parameters regarding the push method of the notification service, and the visualization configuration parameters are configuration parameters regarding the visualization form of the notification service.

[0105] 103. For each second operating system, based on the notification configuration parameters of the second operating system, push the notification service corresponding to the notification set to the second operating system.

[0106] In an embodiment of the present invention, optionally, the notification service corresponding to the notification set can be pushed to multiple terminals corresponding to each second operating system, which is not limited by the embodiment of the present invention; exemplarily, when the second operating system is Android, the above-mentioned notification service can be pushed to multiple mobile devices corresponding to the Android platform and installed with the Android system, which is not limited by the embodiment of the present invention.

[0107] In the embodiment of the present invention, illustratively, the same notification message may be pushed to multiple second operating systems respectively at the same time, and the notification message may be rendered on different second operating systems based on notification configuration parameters corresponding to the second operating systems.

[0108] It can be seen that the method described in the embodiment of the present invention can obtain the notification set to be pushed after monitoring the notification task, and based on the cross-platform compatibility layer of the notification system, determine at least one second operating system that needs to push the notification set and the corresponding notification configuration parameters of each second operating system from all first operating systems, and then push the notification service corresponding to the notification set to each second operating system based on the notification configuration parameters of each second operating system. It can flexibly push the same notification information to different platforms according to customized notification configuration parameters through the cross-platform compatibility layer, and can improve the customization flexibility of the notification push configuration while maintaining the cross-platform consistency of the notification push logic, thereby improving the diversity of the push forms of the notification information, and then improving the push flexibility of the notification information, which is beneficial to improving the adaptability of the notification service to different platforms, and is beneficial to improving the user experience of the notification service for users of each platform.

[0109] In an optional embodiment, the notification system may be a system built based on a Flutter framework.

[0110] Among them, the UI (User Interface) of the notification service pushed by the notification system can be built based on the Widget system of the Flutter framework; illustratively, Scaffold can be used as a basic page structure container, animation effects (for example, fade-in and fade-out animations) can be implemented based on AnimatedBuilder and FadeTransition, and complex custom shapes and effects can be implemented based on CustomPaint and ClipPath, which are not limited in the embodiments of the present invention.

[0111] Among them, the asynchronous function of the notification system can be implemented by relying on the asynchronous programming model of the Flutter framework; illustratively, it can be implemented using Future and Stream, which is not limited in the embodiment of the present invention.

[0112] Among them, the UI update function of the notification system can be implemented by relying on the state management mechanism of the Flutter framework; exemplarily, the StatefulWidget notification framework can be used to inform that certain states have changed and thus re-render the notification, and state management tools such as Provider or Riverpod can be used to manage the state and life cycle of the notification, which is not limited in the embodiments of the present invention.

[0113] Among them, the style components of the Flutter framework can be relied upon to build a consistent UI style for cross-platform notification push; exemplary, the style components may include Material and / or Cupertino, which is not limited in the embodiments of the present invention. Among them, the built-in animation and transition effects of the Flutter framework can be applied to ensure the consistency of animation effects for cross-platform notification push.

[0114] It can be seen that this optional embodiment can build a notification system based on the Flutter framework, which can improve the convenience and standardization of building the notification system.

[0115] In this optional embodiment, optionally, the cross-platform compatibility layer of the notification system is provided with an abstract notification interface; the abstract notification interface encapsulates abstract configuration parameters corresponding to the notification system; and, the abstract notification interface corresponds to a plurality of implementation notification interfaces corresponding to the first operating systems; each implementation notification interface includes notification configuration parameters that match the abstract configuration parameters of the first operating system; wherein each second operating system can be one of the first operating systems.

[0116] Among them, the abstract configuration parameters encapsulated by the abstract notification interface may include at least one of an abstract display method, an abstract hiding method and an abstract update method, which is not limited by the embodiment of the present invention, and the abstract configuration parameters encapsulated by the abstract notification interface are used to represent the notification behavior logic common to all platforms; and the implementation notification interface corresponding to each first operating system is used to specifically implement the business logic corresponding to the various abstract methods included in the abstract configuration parameters on the first operating system.

[0117] It can be seen that this optional embodiment can also set an abstract notification interface in the cross-platform compatibility layer of the notification system, and each first operating system is provided with an implementation notification interface corresponding to the abstract notification interface. By using the abstract interface, the customized implementation interface set by each platform can be decoupled, making the notification system more scalable and maintainable. If it is necessary to add support for a new first operating system, it is only necessary to implement a new implementation notification interface without modifying the existing code. This implementation method ensures the cross-platform consistency of the notification push logic, while allowing each platform to customize the notification behavior according to specific needs, thereby improving the customization flexibility of the notification push configuration.

[0118] In this optional embodiment, optionally, the cross-platform compatibility layer of the notification system can be constructed in the following manner:

[0119] Based on the pre-acquired notification behavior logic requirements, build the abstract notification interface corresponding to the notification system;

[0120] For each first operating system, based on the conditional compilation instruction of the first operating system and / or the API of the first operating system, the abstract notification interface is conditionally compiled corresponding to the first operating system to obtain the implementation notification interface corresponding to the first operating system.

[0121] Among them, the cross-platform compatibility layer of the notification system can be implemented by relying on the feature of the Flutter framework that can run the same code on multiple platforms.

[0122] It can be seen that this optional embodiment can also construct an abstract notification interface corresponding to the notification system based on the notification behavior logic requirements, and then conditionally compile the abstract notification interface based on the conditional compilation instructions and / or API of each first operating system to obtain the implementation notification interface corresponding to the first operating system, which can improve the construction flexibility of the cross-platform compatibility layer, as well as improve the scalability and maintainability of the cross-platform compatibility layer.

[0123] In this optional embodiment, optionally, the push configuration parameters include at least one of a notification display mode, a notification hiding mode, and a notification update mode, which is not limited by the embodiment of the present invention; further optionally, the notification display mode may include at least one of a notification display animation, a notification display duration, a notification display priority condition, and a notification display sound effect, which is not limited by the embodiment of the present invention; the notification hiding mode may include at least one of a notification hiding time (which can be calculated by the notification push time and the notification display duration), a notification hiding type (for example: a timed hiding type, a user click hiding type), and a notification hiding animation, which is not limited by the embodiment of the present invention; the notification update mode may include at least one of a notification update frequency, a notification update rendering mode, and a notification update animation, which is not limited by the embodiment of the present invention. Further optionally, the push configuration parameters may also include a notification interaction mode; further optionally, the notification interaction mode may include a notification interaction type, which is not limited by the embodiment of the present invention.

[0124] Optionally, the visualization configuration parameters include at least one of notification style parameters, notification animation parameters, notification display position parameters and visualization resource paths, which are not limited in the embodiments of the present invention; exemplarily, the notification style parameters may include at least one of background style, border style, shadow effect, icon, and font style; the notification display animation, notification hide animation, and notification update animation may be one of the notification animation parameters; each notification animation parameter may include an animation effect corresponding to at least one animation type; the animation type may include a custom type and a preset type; the animation effect may include at least one of a rotation effect, a transition effect, a zoom effect, and a translation effect; the visualization resource path may include at least one of an image path, an audio path, and a video path, which are not limited in the embodiments of the present invention.

[0125] It can be seen that this optional embodiment can also set multiple parameters for push configuration parameters and visualization configuration parameters, which can enable each first operating system to more flexibly configure different notification services, thereby improving the diversity and comprehensiveness of push configuration parameters, as well as improving the comprehensiveness and flexibility of configuration of push services, which in turn is conducive to improving the flexibility of pushing notification information, and thus is conducive to improving the adaptability of notification services to different platforms.

[0126] In another optional embodiment, for each platform, the notification configuration parameters corresponding to the second operating system may be set in the following manner:

[0127] Obtaining a notification push requirement corresponding to the second operating system; the notification push requirement includes at least one of a push method requirement, a visualization requirement, an interaction requirement, a platform customized behavior requirement, and an application scenario requirement; wherein the platform customized behavior requirement includes at least one of a customized gesture control requirement, a customized display position requirement, and a customized display animation requirement;

[0128] According to the notification push requirement, the notification configuration parameters corresponding to the second operating system are determined.

[0129] Optionally, the interaction requirement may include an interaction type (eg, whether it is clickable) and / or an operation type performed after the interaction (eg, opening a connection, triggering a specific event), which is not limited in the embodiment of the present invention.

[0130] Exemplarily, different first operating systems set different gesture control modes, so corresponding customized gesture control requirements can be determined based on the gesture control modes of different first operating systems, so that users of the first operating systems can operate the notification service more conveniently.

[0131] Optionally, the application scenario requirement may include an application scenario type, and may also include at least one of a notification purpose under the application scenario type, an information display type under the application scenario type, and a notification behavior type under the application scenario type (i.e., an interactive behavior type between a user and a notification service), which is not limited in the embodiment of the present invention; illustratively, the application scenario type may be one of a social application type, a news application type, an e-commerce application type, a financial application type, a health and fitness application type, a game application type, and a work application type, which is not limited in the embodiment of the present invention;

[0132] Further, taking a social application as an example, in this application scenario type, the purpose of the notification may include a user receiving a new message, comment or like notification, the information display type may include displaying the sender's avatar, message preview or comment content, and the notification behavior type may include clicking on the notification to open a specific dialog window or message list, for example: the notification displays the sender's avatar and message content, and clicking on the notification can directly enter the chat interface; taking an e-commerce application type as an example, in this application scenario type, the purpose of the notification may include a user receiving an order status update or a promotion activity notification, the information display type may include displaying the order number, promotion information, product pictures, etc., and the notification behavior type may include clicking on the notification to view the order details or immediately access the promotion page, for example: a shopping application displays an order status update and provides a shortcut link to view the order details or access the promotion activity; taking a work application type as an example, in this application scenario type, the purpose of the notification may include a user receiving a work task update, a meeting reminder or a company announcement notification, the information display type may include displaying the task title, meeting time, announcement content, etc., and the notification behavior type may include clicking on the notification to open the relevant task or meeting details, for example: an enterprise communication tool displays an upcoming meeting reminder and provides a shortcut to enter the meeting, which is not limited in the embodiments of the present invention.

[0133] It can be seen that this optional embodiment can obtain the notification push requirements corresponding to each second operating system, such as: push method requirements, visualization requirements, interaction requirements, platform customized behavior requirements and application scenario requirements, and then determine the notification configuration parameters corresponding to the second operating system based on the notification push requirements, which can improve the comprehensiveness and diversity of the acquisition of notification push requirements, thereby improving the accuracy of the analysis of the notification push requirements of each platform, and then improving the accuracy of determining the notification configuration parameters of different platforms, which is conducive to making customized notification services more adaptable to the corresponding platforms, and thus is conducive to further improving the user experience of users of each platform for notification services.

[0134] In yet another optional embodiment, for each second operating system, in the process of pushing the notification service corresponding to the notification set to the second operating system based on the notification configuration parameters of the second operating system, the method may further include the following operations:

[0135] Set up event listeners for notification services;

[0136] Based on the event listener, monitoring whether there is an interaction event of the user of the second operating system for the notification service; the interaction event includes at least one of a click event, a slide event and a close event;

[0137] When an interaction event of the user of the second operating system with respect to the notification service is monitored, an event processing function corresponding to the event type is called back according to the event type of the interaction event; wherein the event processing function is used to execute a response operation corresponding to the interaction event.

[0138] Among them, exemplarily, the event processing function corresponding to the click event can be used to view the notification or jump to the link, which is not limited in the embodiment of the present invention; the event processing function corresponding to the sliding event can be used to remove the notification or move the notification position, which is not limited in the embodiment of the present invention.

[0139] Optionally, the above event monitoring and event processing steps may be performed based on an event processing module of the notification system, which is not limited in the implementation of the present invention.

[0140] It can be seen that this optional embodiment can set an event listener for the notification service, and based on the event listener, monitor whether there are any interactive events of the users of the second operating system for the notification service; if an interactive event is detected, then according to the event type of the interactive event, the event processing function corresponding to the event type is called back, and the interactivity of the notification service can be improved by introducing an event monitoring mechanism; and, by setting up an event monitoring mechanism, the notification system is decoupled from external logic, so that the first operating system can freely process different business logics when receiving an interactive event, thereby improving the adjustment flexibility of the interactive operation of the notification service, which is conducive to improving the interactive experience of users of various platforms for the notification service.

[0141] Embodiment 2

[0142] See also Figure 2 , Figure 2 : is a flow chart of a cross-platform customized notification push method disclosed in an embodiment of the present invention. Figure 2 The described cross-platform customized notification push method can be applied to a cross-platform customized notification push device, which may include a push device, a push terminal, a push system and a server, wherein the server may be a cloud server or a local server, which is not limited in the embodiments of the present invention; the method can also be applied to electronic devices with different operating systems, further, the electronic device can be connected to NAS (Network Attached Storage), and further, the electronic device can access the network attached storage device through a preset application, which is not limited in the embodiments of the present invention. Figure 2 As shown, the cross-platform customized notification push method may include the following operations:

[0143] 201. After monitoring the notification task, obtain a notification set to be pushed.

[0144] In the embodiment of the present invention, the notification set includes at least one piece of notification information; each piece of notification information includes a notification title and / or notification content.

[0145] 202. Based on the cross-platform compatibility layer of the notification system, determine at least one second operating system that needs to push a notification set and notification configuration parameters set by each second operating system from all first operating systems.

[0146] In the embodiment of the present invention, the notification configuration parameters include push configuration parameters and / or visualization configuration parameters.

[0147] 203. For each second operating system, based on the notification system, obtain a pre-built notification configuration class corresponding to the second operating system.

[0148] In an embodiment of the present invention, optionally, the parameters encapsulated by the notification configuration class may include a combination of one or more of the notification title, notification content, notification style parameters, notification animation parameters, notification display location parameters, and visualization resource paths, which is not limited in the embodiment of the present invention.

[0149] 204. Based on the visualization configuration parameters of the second operating system and the notification set, determine a notification configuration object of the notification configuration class for each piece of notification information.

[0150] In an embodiment of the present invention, optionally, the notification configuration object may be a part of a configuration file. Exemplarily, the format of the configuration file may be a json format or a Map object of the Flutter framework, which is not limited in the embodiment of the present invention. Exemplarily, the notification configuration object may be a NotificationConfig object, which is not limited in the embodiment of the present invention.

[0151] In the embodiment of the present invention, optionally, the operations of step 203 to step 204 may be implemented based on a notification rendering engine of the notification system, which is not limited in the embodiment of the present invention.

[0152] 205. Asynchronously load the notification resource corresponding to each notification information in the notification collection.

[0153] In the embodiment of the present invention, the notification resource includes at least one of a style resource, an animation resource, an image resource, and a sound effect resource; optionally, the asynchronous loading may be preloading, which is not limited in the embodiment of the present invention.

[0154] In the embodiment of the present invention, exemplarily, asynchronous loading of resources is implemented through Future and async / await of the Flutter framework to reduce blocking of the UI thread, which is not limited in the embodiment of the present invention.

[0155] In the embodiment of the present invention, optionally, the operation of step 205 may be implemented based on a performance optimization module of the notification system, which is not limited in the embodiment of the present invention.

[0156] 206. Based on the notification resource, push configuration parameters, and notification configuration object corresponding to each piece of notification information, push each piece of notification information to the second operating system and render the notification information on the second operating system.

[0157] In the embodiment of the present invention, optionally, during step 206, if an error occurs in the notification push or the notification push fails, the corresponding error information or failure information is recorded; further optionally, the notification information of the above push error or push failure can be re-pushed, which is not limited in the implementation of the present invention.

[0158] In the embodiment of the present invention, optionally, the operation of step 206 may be implemented based on a notification rendering engine of the notification system, which is not limited in the embodiment of the present invention.

[0159] In the embodiment of the present invention, for other detailed descriptions of step 201 - step 202, please refer to the detailed description of step 101 - step 102 in the first embodiment, and the embodiment of the present invention will not be repeated here.

[0160] It can be seen that the method described in the embodiment of the present invention can obtain the notification set to be pushed after monitoring the notification task, and based on the cross-platform compatibility layer of the notification system, determine at least one second operating system that needs to push the notification set and the corresponding notification configuration parameters of each second operating system from all first operating systems, and then push the notification service corresponding to the notification set to each second operating system based on the notification configuration parameters of each second operating system. It can flexibly push the same notification information to different platforms according to customized notification configuration parameters through the cross-platform compatibility layer, and can improve the customization flexibility of the notification push configuration while maintaining the cross-platform consistency of the notification push logic, thereby improving the diversity of the push forms of the notification information, and then improving the push flexibility of the notification information, which is beneficial to improving the adaptability of the notification service to different platforms, and is beneficial to improving the user experience of the notification service for users of each platform. In addition, it is also possible to first obtain a pre-built notification configuration class, and then determine the notification configuration object of the notification configuration class for each notification information based on the visual configuration parameters and notification set of each second operating system. It is possible to centrally manage various configuration parameters of the notification service through the configuration class, which is convenient for unified setting and adjustment of notification configuration parameters, and improves the accuracy and scalability of setting configuration parameters; and, before pushing notification information, the notification resources required for the notification information can be asynchronously loaded first, and then the notification information can be pushed to each platform in sequence based on the notification resources, push configuration parameters and notification configuration objects. Asynchronous loading of resources can reduce the jamming phenomenon when the notification is displayed, improve the fluency of users browsing notification information and improve the user experience of the notification service, and optimize the performance of the notification system, so that the notification system can still run smoothly in high concurrency scenarios, thereby improving the operating stability and efficiency of the notification system; and, by separating the creation and rendering process of the UI components of the notification information, the code structure is clearer, which is conducive to improving the convenience and efficiency of testing and maintenance of the notification system.

[0161] In an optional embodiment, the notification set may further include notification parameters corresponding to each notification information; the notification parameters may include a receiving order corresponding to the notification information and / or a priority corresponding to the notification information;

[0162] The method may further include the following operations:

[0163] When the notification set includes at least two pieces of notification information, the notification queue type corresponding to the notification set is determined based on the notification queue management mechanism of the notification system; the notification queue type includes one of a first-in-first-out queue type, a priority queue type, and a time window queue type;

[0164] According to the notification queue type, based on the notification parameters corresponding to each notification message, a notification queue corresponding to the notification set is generated; the notification queue includes all notification messages and the queue order corresponding to each notification message.

[0165] Among them, regarding the determination of the notification queue type, for example, when the notification system only needs to display notifications in the order of receipt, the first-in-first-out queue type can be selected; when the notification system needs to display notifications with high priority first, the priority queue type can be selected; when the notification system is in a high concurrency situation, the time window queue type can be selected to limit the number of notifications displayed in the same time window to avoid information overload, and the implementation of the present invention is not limited thereto.

[0166] It can be seen that this optional embodiment can determine the notification queue type based on the notification queue management mechanism when there are multiple notification information to be pushed, and then generate a notification queue corresponding to the notification set, which can improve the generation accuracy of the notification queue, so that notifications can be pushed and displayed in an orderly manner through queue management, thereby improving the reliability and accuracy of the notification service.

[0167] In this optional embodiment, optionally, for each second operating system, based on the notification resource, push configuration parameter, and notification configuration object corresponding to each piece of notification information, pushing each piece of notification information to the second operating system and rendering the notification information on the second operating system may include the following operations:

[0168] When the notification set includes at least two notification messages, based on the notification resource, push configuration parameters and notification configuration object corresponding to each notification message, each notification message in the notification queue is pushed to the second operating system according to the queue sorting and each notification message is rendered in sequence on the second operating system.

[0169] It can be seen that this optional embodiment can also push each notification information to the second operating system and render it in sequence based on the notification resources, push configuration parameters and notification configuration objects corresponding to each notification information. When a large number of notifications need to be processed, that is, in high concurrency situations, the orderliness and accuracy of the push and display of notification information can be improved by using a notification queue, thereby reducing resource conflicts and performance problems generated during the notification push process, while reducing the possibility of notification loss, thereby improving the reliability and accuracy of the notification service.

[0170] In this optional embodiment, the notification parameters may also optionally include a notification type;

[0171] Among them, for each second operating system, based on the notification resource, push configuration parameter and notification configuration object corresponding to each notification information, each notification information in the notification queue is pushed to the second operating system according to the queue sorting and each notification information is sequentially rendered on the second operating system, which may include the following operations:

[0172] According to the notification parameters corresponding to each notification message, determine whether the notification message corresponding to each notification type in the notification queue meets the preset notification merging conditions;

[0173] When it is determined that there is notification information corresponding to a certain notification type in the notification queue that meets the notification merging condition, determining at least one notification information group in the notification queue that meets the notification merging condition; wherein each notification information group includes multiple notification information to be merged;

[0174] Merge the multiple notification information to be merged contained in each notification information group into one merged notification information corresponding to the notification information group;

[0175] Based on all merged notification information, adjust the notification queue to obtain the target notification queue;

[0176] When it is determined that there is no notification information corresponding to any notification type in the notification queue that meets the notification merging condition, the notification queue is determined as a target notification queue; the target notification queue includes multiple target notification information; each target notification information is a merged notification information or a notification information;

[0177] Based on the scheduling strategy corresponding to the notification queue management mechanism, determine the scheduling time corresponding to each target notification information in the target notification queue;

[0178] Based on the push configuration parameters and the notification configuration object, at the scheduling time corresponding to each piece of target notification information, the target notification information is pushed to the second operating system and the notification information is rendered on the second operating system.

[0179] Exemplarily, the scheduling strategy corresponding to the notification queue management mechanism may be configured to periodically check and schedule the notification information in the notification queue in order by setting a timer, which is not limited in the embodiment of the present invention.

[0180] Among them, optionally, the notification type may include at least one of a dialogue type, a warning type, a reminder type, an update type, an announcement type, an information display type (for example, a news display type, a marketing information display type, etc.), which is not limited in the embodiment of the present invention.

[0181] Optionally, judging whether the notification information corresponding to each notification type in the notification queue meets a preset notification merging condition according to the notification parameters corresponding to each notification information may include the following operations:

[0182] For each notification type, determine the sorting information of all notification information corresponding to the notification type in the notification queue; the sorting information may include the number of consecutive sorts;

[0183] For each notification type, according to the sorting information corresponding to the notification type, determine whether there is a continuous subqueue corresponding to the notification type in the notification queue, and obtain a determination result corresponding to the notification type; wherein the continuous subqueue is a subqueue in which the number of continuous arrangements of notification information corresponding to the notification type is greater than or equal to a preset number;

[0184] When the judgment result corresponding to any notification type is yes, it is determined that there is notification information corresponding to a certain notification type in the notification queue that meets the preset notification merging condition;

[0185] When the judgment result that there is no corresponding notification type is yes, it is determined that there is no notification information corresponding to any notification type in the notification queue that meets the notification merging condition.

[0186] Exemplarily, in the notification queue, if a plurality of notification messages of similar warning types appear successively, it can be determined that the judgment result corresponding to the warning type is yes.

[0187] Further optionally, the similarity between the notification contents of the multiple notification information included in the continuous sub-queue is higher than the preset similarity, which is not limited in this embodiment of the present invention.

[0188] This can improve the accuracy of judging whether the notification information meets the notification merging conditions, thereby improving the merging accuracy of the notification information, which in turn helps reduce the possibility of repeatedly pushing the same notification, thereby reducing repeated display of notifications, and thus helps improve the user experience of the notification system.

[0189] Optionally, the above operations related to the notification queue may be implemented based on a performance optimization module of the notification system, which is not limited in the embodiment of the present invention.

[0190] It can be seen that this optional embodiment can also first determine whether the notification information corresponding to each notification type in the notification queue meets the notification merging condition based on the notification parameters corresponding to each notification information. If it is determined that the notification information corresponding to a certain notification type meets the notification merging condition, then determine at least one notification information group that meets the notification merging condition in the notification queue, and merge each notification information group into a merged notification information, and then adjust the notification queue based on all the merged notification information to obtain the target notification queue; if it is determined that the notification information corresponding to no notification type meets the notification merging condition, then directly determine the notification queue as the target notification queue, and then determine the corresponding conditions for each target notification information in the target notification queue based on the scheduling policy corresponding to the notification queue management mechanism. According to the scheduling time corresponding to each target notification information, based on the push configuration parameters and the notification configuration object, the target notification information is pushed to the second operating system at the scheduling time corresponding to each target notification information and the notification information is rendered on the second operating system, which can improve the accuracy and flexibility of determining the notification information that needs to be merged, so as to flexibly merge the notification information in the notification queue, and then accurately and concisely improve the number of notification pushes, thereby further improving the accuracy and efficiency of pushing and displaying the notification information, and further optimizing the performance of the notification system, improving the operating stability and efficiency of the notification system; and, pushing and rendering the target notification information in sequence based on the scheduling strategy can improve the scheduling accuracy of the notification service, so as to further improve the accuracy of pushing and displaying the notification information.

[0191] In this optional embodiment, optionally, the method may further include the following operations:

[0192] Detect whether the load of the notification system exceeds a preset load threshold;

[0193] When it is detected that the load of the notification system exceeds a preset load threshold, the scheduling strategy corresponding to the notification queue management mechanism is adjusted to obtain an adjusted scheduling strategy; wherein the scheduling frequency in the adjusted scheduling strategy is lower than the scheduling frequency in the original scheduling strategy, and / or the number of notification information scheduled at the same scheduling time in the adjusted scheduling strategy is lower than the number of notification information scheduled at the same scheduling time in the original scheduling strategy, which is not limited in the embodiments of the present invention.

[0194] It can be seen that this optional embodiment can also adjust the scheduling strategy corresponding to the notification queue management mechanism when it is detected that the load of the notification system exceeds the preset load threshold, and obtain the adjusted scheduling strategy, which can improve the real-time detection of the system load situation, thereby improving the timeliness and accuracy of the adjustment of the scheduling strategy, which is beneficial to further optimize the performance of the notification system and improve the operational reliability of the notification system.

[0195] In another optional embodiment, the method may further include the following operations:

[0196] When any notification information is displayed in any second operating system, the notification system releases the resources corresponding to the notification information, which can ensure the effective use of memory and processor resources and improve the operating efficiency of the notification system.

[0197] Embodiment 3

[0198] See also Figure 3 , Figure 3 1 is a schematic diagram of a cross-platform customized notification push device disclosed in an embodiment of the present invention. Figure 3 The described cross-platform customized notification push device may include one of a push device, a push terminal, a push system and a server, wherein the server may be a cloud server or a local server, which is not limited in the embodiments of the present invention; the device may be applied to electronic devices with different operating systems, further, the electronic device may be connected to a NAS (Network Attached Storage), and further, the electronic device may access the network attached storage device through a preset application, which is not limited in the embodiments of the present invention. Figure 3 As shown, the cross-platform customized notification push device may include:

[0199] The acquisition module 301 is used to acquire a notification set to be pushed after monitoring a notification task; the notification set includes at least one notification information;

[0200] The determination module 302 is used to determine at least one second operating system that needs to push a notification set and notification configuration parameters set by each second operating system from all first operating systems based on the cross-platform compatibility layer of the notification system; the notification configuration parameters include push configuration parameters and / or visualization configuration parameters;

[0201] The push module 303 is used to push the notification service corresponding to the notification set to each second operating system based on the notification configuration parameters of the second operating system.

[0202] It can be seen that the device described in the embodiment of the present invention can obtain the notification set to be pushed after monitoring the notification task, and based on the cross-platform compatibility layer of the notification system, determine at least one second operating system that needs to push the notification set and the corresponding notification configuration parameters of each second operating system from all first operating systems, and then push the notification service corresponding to the notification set to each second operating system based on the notification configuration parameters of each second operating system. It can flexibly push the same notification information to different platforms according to customized notification configuration parameters through the cross-platform compatibility layer, and can improve the customization flexibility of the notification push configuration while maintaining the cross-platform consistency of the notification push logic, thereby improving the diversity of the push forms of the notification information, and then improving the push flexibility of the notification information, which is beneficial to improving the adaptability of the notification service to different platforms, and is beneficial to improving the user experience of users of each platform for the notification service.

[0203] In an optional embodiment, the notification system is a system built based on the Flutter framework;

[0204] Among them, the cross-platform compatibility layer of the notification system is provided with an abstract notification interface; the abstract notification interface encapsulates the abstract configuration parameters corresponding to the notification system; and the abstract notification interface corresponds to a plurality of implementation notification interfaces corresponding to the first operating system; each implementation notification interface includes notification configuration parameters of the first operating system that match the abstract configuration parameters; the push configuration parameters include at least one of a notification display mode, a notification hiding mode, and a notification update mode; the visualization configuration parameters include at least one of a notification style parameter, a notification animation parameter, a notification display position parameter, and a visualization resource path;

[0205] Each second operating system is one of the first operating systems.

[0206] It can be seen that the device described in the implementation of this optional embodiment can build a notification system based on the Flutter framework, which can improve the convenience and standardization of building the notification system; and, an abstract notification interface is set in the cross-platform compatibility layer of the notification system, and each first operating system is provided with an implementation notification interface corresponding to the abstract notification interface. By using the abstract interface, the customized implementation interface set by each platform can be decoupled, making the notification system more scalable and maintainable. If support for a new first operating system needs to be added, it is only necessary to implement a new implementation notification interface without modifying the existing code. This implementation method ensures the cross-platform consistency of the notification push logic, while allowing each platform to customize the notification behavior according to specific needs, thereby improving the customization flexibility of the notification push configuration; and, it is also possible to set multiple parameters for the push configuration parameters and the visualization configuration parameters, so that each first operating system can configure different notification services more flexibly, thereby improving the diversity and comprehensiveness of the push configuration parameters, and improving the configuration comprehensiveness and configuration flexibility of the push service, which is conducive to improving the push flexibility of the notification information, and is conducive to improving the adaptability of the notification service to different platforms.

[0207] In another optional embodiment, for each platform, the notification configuration parameters corresponding to the second operating system may be set in the following manner:

[0208] Obtaining a notification push requirement corresponding to the second operating system; the notification push requirement includes at least one of a push method requirement, a visualization requirement, an interaction requirement, a platform customized behavior requirement, and an application scenario requirement; wherein the platform customized behavior requirement includes at least one of a customized gesture control requirement, a customized display position requirement, and a customized display animation requirement;

[0209] According to the notification push requirement, the notification configuration parameters corresponding to the second operating system are determined.

[0210] It can be seen that the device described in the implementation of this optional embodiment can obtain the notification push requirements corresponding to each second operating system, such as: push method requirements, visualization requirements, interaction requirements, platform customized behavior requirements and application scenario requirements, and then determine the notification configuration parameters corresponding to the second operating system based on the notification push requirements, which can improve the comprehensiveness and diversity of the acquisition of notification push requirements, thereby improving the accuracy of the analysis of the notification push requirements of each platform, and then improving the accuracy of determining the notification configuration parameters of different platforms, which is conducive to making customized notification services more adaptable to the corresponding platforms, and thus is conducive to further improving the user experience of users of each platform for notification services.

[0211] In yet another optional embodiment, Figure 4 As shown, the device may also include:

[0212] A setting module 304 is used to set an event listener for the notification service for each second operating system when the push module 303 pushes the notification service corresponding to the notification set to the second operating system based on the notification configuration parameters of the second operating system;

[0213] The monitoring module 305 is used to monitor whether there is an interaction event of the user of the second operating system for the notification service based on the event monitor; the interaction event includes at least one of a click event, a slide event and a close event;

[0214] The callback module 306 is used to call back the event processing function corresponding to the event type when the monitoring module 305 monitors the interaction event of the user of the second operating system for the notification service, according to the event type of the interaction event; wherein the event processing function is used to execute the response operation corresponding to the interaction event.

[0215] It can be seen that the device described in the implementation of this optional embodiment can set an event listener for the notification service, and based on the event listener, monitor whether there are any interactive events of the users of the second operating system for the notification service; if the existence of an interactive event is monitored, then according to the event type of the interactive event, the event processing function corresponding to the event type is called back, which can improve the interactivity of the notification service by introducing an event monitoring mechanism; and, by setting up an event monitoring mechanism, the notification system is decoupled from external logic, so that the first operating system can freely process different business logics when receiving an interactive event, thereby improving the adjustment flexibility of the interactive operation of the notification service, which is conducive to improving the interactive experience of users of various platforms for the notification service.

[0216] In yet another optional embodiment, each notification message includes a notification title and / or notification content;

[0217] The acquisition module 301 is further used to acquire a pre-built notification configuration class corresponding to the second operating system based on the notification system;

[0218] The determination module 302 is further used to determine a notification configuration object of the notification configuration class for each notification information based on the visualization configuration parameters and the notification set of the second operating system;

[0219] For each second operating system, the specific manner in which the push module 303 pushes the notification service corresponding to the notification set to the second operating system based on the notification configuration parameters of the second operating system may include:

[0220] Asynchronously load the notification resource corresponding to each notification information in the notification collection; the notification resource includes at least one of a style resource, an animation resource, an image resource, and a sound effect resource;

[0221] Based on the notification resource, push configuration parameter and notification configuration object corresponding to each piece of notification information, each piece of notification information is pushed to the second operating system and rendered on the second operating system.

[0222] It can be seen that the device described in the implementation of this optional embodiment can first obtain a pre-built notification configuration class, and then determine the notification configuration object of the notification configuration class for each notification information based on the visual configuration parameters and notification set of each second operating system. It can centrally manage the various configuration parameters of the notification service by means of the configuration class, which is convenient for unified setting and adjustment of the notification configuration parameters, and improves the setting accuracy and scalability of the configuration parameters; and, before pushing the notification information, the notification resources required for the notification information can be asynchronously loaded first, and then the notification information can be pushed to each platform in sequence based on the notification resources, push configuration parameters and notification configuration objects. Asynchronous loading of resources can reduce the jamming phenomenon when the notification is displayed, improve the fluency of users browsing the notification information and improve the user experience of the notification service, and optimize the performance of the notification system, so that the notification system can still run smoothly in high concurrency scenarios, thereby improving the operating stability and efficiency of the notification system; and, by separating the creation and rendering process of the UI components of the notification information, the code structure is made clearer, which is conducive to improving the convenience and efficiency of testing and maintenance of the notification system.

[0223] In this optional embodiment, optionally, the notification set also includes notification parameters corresponding to each notification information; the notification parameters include a receiving order corresponding to the notification information and / or a priority corresponding to the notification information;

[0224] The determination module 302 is further used to determine the notification queue type corresponding to the notification set based on the notification queue management mechanism of the notification system when the notification set includes at least two notification information; the notification queue type includes one of a first-in-first-out queue type, a priority queue type, and a time window queue type;

[0225] And, if Figure 4 As shown, the device may also include:

[0226] A generating module 307 is used to generate a notification queue corresponding to the notification set according to the notification queue type and based on the notification parameters corresponding to each notification information; the notification queue includes all notification information and the queue order corresponding to each notification information;

[0227] Among them, for each second operating system, the specific manner in which the push module 303 pushes each notification information to the second operating system and renders the notification information on the second operating system based on the notification resource, push configuration parameters, and notification configuration object corresponding to each notification information may include:

[0228] When the notification set includes at least two notification messages, based on the notification resource, push configuration parameters and notification configuration object corresponding to each notification message, each notification message in the notification queue is pushed to the second operating system according to the queue sorting and each notification message is rendered in sequence on the second operating system.

[0229] It can be seen that the device described in the implementation of this optional embodiment can also determine the notification queue type based on the notification queue management mechanism when there are multiple notification messages to be pushed, and then generate a notification queue corresponding to the notification set, which can improve the generation accuracy of the notification queue, so that notifications can be pushed and displayed in an orderly manner through queue management, thereby improving the reliability and accuracy of the notification service; and, based on the notification resources, push configuration parameters and notification configuration objects corresponding to each notification message, each notification message can be pushed to the second operating system in sequence and rendered, and when a large number of notifications need to be processed, that is, in high concurrency situations, by using a notification queue, the orderliness and accuracy of the push and display of notification information can be improved, thereby reducing resource conflicts and performance problems generated during the notification push process, while reducing the possibility of notification loss, thereby improving the reliability and accuracy of the notification service.

[0230] In this optional embodiment, the notification parameters may also optionally include a notification type;

[0231] Among them, for each second operating system, the push module 303 pushes each notification information in the notification queue to the second operating system according to the queue sorting based on the notification resource, push configuration parameters and notification configuration object corresponding to each notification information, and renders each notification information in sequence on the second operating system. The specific method may include:

[0232] According to the notification parameters corresponding to each notification message, determine whether the notification message corresponding to each notification type in the notification queue meets the preset notification merging conditions;

[0233] When it is determined that there is notification information corresponding to a certain notification type in the notification queue that meets the notification merging condition, determining at least one notification information group in the notification queue that meets the notification merging condition; wherein each notification information group includes multiple notification information to be merged;

[0234] Merge the multiple notification information to be merged contained in each notification information group into one merged notification information corresponding to the notification information group;

[0235] Based on all merged notification information, adjust the notification queue to obtain the target notification queue;

[0236] When it is determined that there is no notification information corresponding to any notification type in the notification queue that meets the notification merging condition, the notification queue is determined as a target notification queue; the target notification queue includes multiple target notification information; each target notification information is a merged notification information or a notification information;

[0237] Based on the scheduling strategy corresponding to the notification queue management mechanism, determine the scheduling time corresponding to each target notification information in the target notification queue;

[0238] Based on the push configuration parameters and the notification configuration object, at the scheduling time corresponding to each piece of target notification information, the target notification information is pushed to the second operating system and the notification information is rendered on the second operating system.

[0239] It can be seen that the device described in the implementation of this optional embodiment can also first determine whether the notification information corresponding to each notification type in the notification queue meets the notification merging condition based on the notification parameters corresponding to each notification information. If it is determined that the notification information corresponding to a certain notification type meets the notification merging condition, then at least one notification information group that meets the notification merging condition in the notification queue is determined, and each notification information group is merged into a merged notification information, and then based on all the merged notification information, the notification queue is adjusted to obtain the target notification queue; if it is determined that the notification information corresponding to no notification type meets the notification merging condition, the notification queue is directly determined as the target notification queue, and then each target notification information in the target notification queue is determined based on the scheduling policy corresponding to the notification queue management mechanism. The target notification information is pushed to the second operating system at the scheduling time corresponding to the target notification information, and then based on the push configuration parameters and the notification configuration object, the target notification information is pushed to the second operating system at the scheduling time corresponding to each target notification information and rendered on the second operating system, which can improve the accuracy and flexibility of determining the notification information that needs to be merged, so as to flexibly merge the notification information in the notification queue, and then accurately and streamline the number of notification pushes, thereby further improving the accuracy and efficiency of pushing and displaying the notification information, and further optimizing the performance of the notification system, improving the operating stability and efficiency of the notification system; and, pushing and rendering the target notification information in sequence based on the scheduling strategy can improve the scheduling accuracy of the notification service, so as to further improve the accuracy of pushing and displaying the notification information.

[0240] Embodiment 4

[0241] See also Figure 5 , Figure 5 is a schematic diagram of the structure of another cross-platform customized notification push device disclosed in an embodiment of the present invention. Figure 5 As shown, the cross-platform customized notification push device may include:

[0242] A memory 401 storing executable program codes;

[0243] a processor 402 coupled to the memory 401;

[0244] The processor 402 calls the executable program code stored in the memory 401 to execute part or all of the steps in the cross-platform customized notification push method described in the first embodiment of the present invention or the second embodiment of the present invention.

[0245] Embodiment 5

[0246] See also Figure 6 , Figure 6 is a schematic diagram of the structure of a cross-platform customized notification push system disclosed in an embodiment of the present invention. Figure 6 As shown, the system includes an electronic device 40 and a network attached storage device 50, the electronic device 40 is communicatively connected to the network attached storage device 50, and the electronic device 40 accesses the network attached storage device 50 through a preset application, and the preset application is used to execute part or all of the steps in the cross-platform customized notification push method described in Embodiment 1 or Embodiment 2 of the present invention.

[0247] Embodiment 6

[0248] An embodiment of the present invention discloses a computer storage medium, which stores computer instructions. When the computer instructions are called, they are used to execute some or all of the steps in the cross-platform customized notification push method described in Embodiment 1 or Embodiment 2 of the present invention.

[0249] Embodiment 7

[0250] An embodiment of the present invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute some or all of the steps in the cross-platform customized notification push method described in Example 1 or Example 2.

[0251] The device embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, i.e., they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.

[0252] Through the specific description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solution can be essentially or partly contributed to the prior art in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.

[0253] Finally, it should be noted that the cross-platform customized notification push method, device and system disclosed in the embodiments of the present invention only disclose the preferred embodiments of the present invention, which are only used to illustrate the technical solution of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, it should be understood by those skilled in the art that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features therein can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A cross-platform customized notification push method, the method is applied to electronic devices with different operating systems, characterized in that: The method comprises: After the notification task is detected, a notification set to be pushed is obtained; the notification set includes at least one notification information; Based on the cross-platform compatibility layer of the notification system, determining at least one second operating system that needs to push the notification set and notification configuration parameters set by each second operating system from all first operating systems; the notification configuration parameters include push configuration parameters and / or visualization configuration parameters; For each of the second operating systems, based on the notification configuration parameters of the second operating system, the notification service corresponding to the notification set is pushed to the second operating system.

2. The cross-platform customized notification push method according to claim 1, characterized in that: The notification system is a system built based on the Flutter framework; The cross-platform compatibility layer of the notification system is provided with an abstract notification interface; the abstract notification interface encapsulates abstract configuration parameters corresponding to the notification system; and the abstract notification interface corresponds to a plurality of implementation notification interfaces corresponding to the first operating system; each of the implementation notification interfaces includes notification configuration parameters of the first operating system that match the abstract configuration parameters; wherein each of the second operating systems is one of the first operating systems; Furthermore, the push configuration parameters include at least one of a notification display mode, a notification hiding mode, and a notification update mode; and the visualization configuration parameters include at least one of a notification style parameter, a notification animation parameter, a notification display position parameter, and a visualization resource path.

3. The cross-platform customized notification push method according to claim 1, characterized in that: For each of the platforms, the notification configuration parameters corresponding to the second operating system are set in the following manner: Obtaining a notification push requirement corresponding to the second operating system; the notification push requirement includes at least one of a push mode requirement, a visualization requirement, an interaction requirement, a platform customized behavior requirement, and an application scenario requirement; wherein the platform customized behavior requirement includes at least one of a customized gesture control requirement, a customized display position requirement, and a customized display animation requirement; According to the notification push requirement, notification configuration parameters corresponding to the second operating system are determined.

4. The cross-platform customized notification push method according to claim 1, characterized in that: For each of the second operating systems, in the process of pushing the notification service corresponding to the notification set to the second operating system based on the notification configuration parameters of the second operating system, the method further includes: Setting an event listener for the notification service; Based on the event listener, monitoring whether there is an interaction event of the user of the second operating system for the notification service; the interaction event includes at least one of a click event, a slide event and a close event; When an interaction event of the user of the second operating system with respect to the notification service is monitored, an event processing function corresponding to the event type is called back according to the event type of the interaction event; wherein the event processing function is used to execute a response operation corresponding to the interaction event.

5. The cross-platform customized notification push method according to any one of claims 1 to 4, characterized in that: Each notification message includes a notification title and / or notification content; Wherein, for each of the second operating systems, the method further includes: Based on the notification system, obtaining a pre-built notification configuration class corresponding to the second operating system; Determine, based on the visualization configuration parameters of the second operating system and the notification set, a notification configuration object of the notification configuration class for each piece of notification information; Wherein, for each second operating system, the step of pushing the notification service corresponding to the notification set to the second operating system based on the notification configuration parameters of the second operating system includes: Asynchronously loading the notification resource corresponding to each notification information in the notification set; the notification resource includes at least one of a style resource, an animation resource, an image resource, and a sound effect resource; Based on the notification resource corresponding to each piece of the notification information, the push configuration parameter and the notification configuration object, each piece of the notification information is pushed to the second operating system and the notification information is rendered on the second operating system.

6. The cross-platform customized notification push method according to claim 5, characterized in that: The notification set also includes notification parameters corresponding to each piece of notification information; the notification parameters include a receiving order corresponding to the notification information and / or a priority corresponding to the notification information; Wherein, the method further comprises: When the notification set includes at least two pieces of notification information, determining the notification queue type corresponding to the notification set based on the notification queue management mechanism of the notification system; the notification queue type includes one of a first-in-first-out queue type, a priority queue type, and a time window queue type; According to the notification queue type, based on the notification parameters corresponding to each piece of the notification information, a notification queue corresponding to the notification set is generated; the notification queue includes all the notification information and the queue order corresponding to each piece of the notification information; Wherein, for each second operating system, based on the notification resource corresponding to each piece of the notification information, the push configuration parameter, and the notification configuration object, each piece of the notification information is pushed to the second operating system and rendered on the second operating system, including: When the notification set includes at least two notification messages, based on the notification resource corresponding to each notification message, the push configuration parameters and the notification configuration object, each notification message in the notification queue is pushed to the second operating system according to the queue sorting and each notification message is rendered in sequence on the second operating system.

7. The cross-platform customized notification push method according to claim 6, characterized in that: The notification parameters also include notification type; Wherein, for each second operating system, based on the notification resource corresponding to each piece of the notification information, the push configuration parameter, and the notification configuration object, each piece of the notification information in the notification queue is pushed to the second operating system according to the queue sorting and each piece of the notification information is sequentially rendered on the second operating system, including: According to the notification parameters corresponding to each piece of the notification information, determining whether the notification information corresponding to each of the notification types in the notification queue meets a preset notification merging condition; When it is determined that there is a notification information corresponding to the notification type in the notification queue that meets the notification merging condition, determining at least one notification information group in the notification queue that meets the notification merging condition; wherein each notification information group includes multiple notification information to be merged; Merging the multiple pieces of notification information to be merged contained in each notification information group into one piece of merged notification information corresponding to the notification information group; Based on all the merged notification information, adjusting the notification queue to obtain a target notification queue; When it is determined that there is no notification information corresponding to any of the notification types in the notification queue that meets the notification merging condition, the notification queue is determined as a target notification queue; the target notification queue includes multiple target notification information; each of the target notification information is the merged notification information or the notification information; Determine the scheduling time corresponding to each target notification information in the target notification queue based on the scheduling policy corresponding to the notification queue management mechanism; Based on the push configuration parameters and the notification configuration object, the target notification information is pushed to the second operating system at the scheduling time corresponding to each piece of the target notification information and the notification information is rendered on the second operating system.

8. A cross-platform customized notification push device, the device is applied to electronic devices with different operating systems, characterized in that: The device comprises: An acquisition module, used to acquire a notification set to be pushed after monitoring a notification task; the notification set includes at least one notification information; A determination module, configured to determine, based on a cross-platform compatibility layer of the notification system, at least one second operating system from all first operating systems to which the notification set needs to be pushed and notification configuration parameters set by each second operating system; the notification configuration parameters include push configuration parameters and / or visualization configuration parameters; The push module is used to push the notification service corresponding to the notification set to each second operating system based on the notification configuration parameters of the second operating system.

9. A cross-platform customized notification push device, characterized in that: The device comprises: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the cross-platform customized notification push method according to any one of claims 1 to 7.

10. A cross-platform customized notification push system, characterized in that: The system includes a network attached storage device and an electronic device, the electronic device is communicatively connected to the network attached storage device, and the electronic device accesses the network attached storage device through a preset application, and the preset application is used to execute the cross-platform customized notification push method described in any one of claims 1-7.

11. A computer storage medium, characterized in that: The computer storage medium stores computer instructions, and when the computer instructions are called, they are used to execute the cross-platform customized notification push method according to any one of claims 1-7.