[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN114138508A - Notification push service generation method and device and computer storage medium - Google Patents

Notification push service generation method and device and computer storage medium Download PDF

Info

Publication number
CN114138508A
CN114138508A CN202111332487.XA CN202111332487A CN114138508A CN 114138508 A CN114138508 A CN 114138508A CN 202111332487 A CN202111332487 A CN 202111332487A CN 114138508 A CN114138508 A CN 114138508A
Authority
CN
China
Prior art keywords
notification
version
target system
push service
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111332487.XA
Other languages
Chinese (zh)
Inventor
吉祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Yuncongxihe Artificial Intelligence Co ltd
Original Assignee
Jiangsu Yuncongxihe Artificial Intelligence Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu Yuncongxihe Artificial Intelligence Co ltd filed Critical Jiangsu Yuncongxihe Artificial Intelligence Co ltd
Priority to CN202111332487.XA priority Critical patent/CN114138508A/en
Publication of CN114138508A publication Critical patent/CN114138508A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a notification push service generation method, a notification push service generation device and a computer storage medium, and the method mainly comprises the steps of obtaining a notification interface of a target system according to a system version of the target system; generating a notification interface of a target system according to the electronic equipment carrying the target system; and generating a notification push service of the target system according to the notification interface and the notification interface. Therefore, the system notification push service adaptive to different system versions and different electronic devices can be automatically generated according to the application, and the system development cost can be effectively saved.

Description

Notification push service generation method and device and computer storage medium
Technical Field
The embodiment of the application relates to the field of computer operating systems, in particular to a method and a device for notifying push service and a computer storage medium.
Background
The android notification push service uses different notification interfaces under different android versions, which also causes that in order to use the notification function of the android system normally, a developer has to write more codes to adapt to different android system versions.
At present, for OEM manufacturers of android at home and abroad, the used notification schemes are different, and the display effects of the same API on different manufacturers are different; for example, Huashi, samsung has a lock screen notification, while oppo, millet, charm, in rom developed twice, has removed this function; for example, Hua is, three stars, one + all have three modes (disturbance, vibration, do not disturb); while millet and oppo have only two modes (disturbing and not disturbing), for example, some electronic devices can realize full screen notification, and other manufacturers do not support the function.
Therefore, how to design a notification push service generation technology that can adapt to different system versions and different manufacturer devices is a technical subject to be solved by the present application.
Disclosure of Invention
In view of the foregoing, the present application provides a notification push service generation method, apparatus, and computer storage medium, which can adapt to different system versions and different vendor devices to reduce system development cost.
A first aspect of the present application provides a notification push service generation method, including: acquiring a notification interface of a target system according to a system version of the target system; generating a notification interface of the target system according to the electronic equipment carrying the target system; and generating a notification push service of the target system according to the notification interface and the notification interface.
A second aspect of the present application provides a computer storage medium, wherein the computer storage medium stores instructions for executing the steps of the notification push service method according to the first aspect.
A third aspect of the present application provides a notification push service generation apparatus, including: the notification interface configuration module is used for acquiring a notification interface of a target system according to the system version of the target system; the notification interface configuration module is used for generating a notification interface of the target system according to the electronic equipment carrying the target system; and the notification push service generating module is used for generating the notification push service of the target system according to the notification interface and the notification interface.
In summary, the notification push service generation method, the notification push service generation device, and the computer storage medium provided in the embodiments of the present application can generate customized system push services for different system versions and different onboard devices, so that system development cost can be saved, and a system developer can pay more attention to service implementation.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the embodiments of the present application, and other drawings can be obtained by those skilled in the art according to the drawings.
Fig. 1 is a flowchart illustrating a notification push service generating method according to a first embodiment of the present application.
Fig. 2 is a flowchart illustrating a notification push service generating method according to a second embodiment of the present application.
Fig. 3 is a schematic structural diagram of a notification push service generating device according to a fourth embodiment of the present application.
Element number
300: notifying a push service generating device; 302: a notification interface configuration module; 304: a notification interface configuration module; 306: and informing the push service generation module.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application shall fall within the scope of the protection of the embodiments in the present application.
Specific embodiments of the present application will be described in detail below with reference to the accompanying drawings.
First embodiment
Fig. 1 shows a flowchart of a notification push service generation method according to a first embodiment of the present application. As shown in the figure, the present embodiment mainly includes the following steps:
and step S102, acquiring a notification interface of the target system according to the system version of the target system.
Optionally, the target system may include an android system, and the system version of the target system may include one of the first version, the second version, and the third version.
In this embodiment, the first version includes an android version that is less than 5.0; the second version comprises an android version of not less than 5.0 and less than 8.0; the third version contains an android version no less than 8.0.
Optionally, the Notification interface of the target system may include one of a standard Notification interface (Notification API), a compatible Notification interface (notifiationcommit), wherein the compatible Notification interface is compatible with the standard Notification interface.
And step S104, generating a notification interface of the target system according to the electronic equipment carrying the target system.
Optionally, the device identification code of the electronic device carrying the target system may be identified, and a notification interface of the target system may be generated according to vendor identification information in the device identification code.
In this embodiment, the Device identification code of the electronic Device may include an OAID (Open Anonymous Device Identifier), and the vendor identification information corresponding to the electronic Device may be identified according to the Device identification code.
In this embodiment, a UI interface corresponding to the identified vendor identification information may be generated according to the identified vendor identification information, that is, a display manner of the notification push service is notified.
Specifically, since the notification interfaces (i.e. the display effect of the notification on the electronic device) of different manufacturers are different, for example, hua shi, samsung has a screen-locking notification effect, hua shi, samsung, one + all have three modes of notification reminding (i.e. disturbing, vibrating, do not disturb); millet, oppo, however, only has two modes of notification alerts (i.e., disturb, do not disturb). In view of this, a UI database may be pre-established to store notification interface configuration files corresponding to manufacturers, and a notification interface configuration file corresponding to manufacturer identification information may be called from the UI database according to manufacturer identification information identified from device identification codes of electronic devices for mounting a target system, so as to generate a notification interface of the target system.
In this embodiment, if the notification interface configuration file corresponding to the vendor identification information cannot be queried from the UI database, the default interface configuration file is obtained to generate a standard notification interface.
And step S106, generating a notification push service of the target system according to the notification interface and the notification interface.
In this embodiment, the generated code data of the notification push service may be interfaced with a public API to be provided to the system developer.
In summary, the notification push service generating method of the embodiment may dynamically combine the notification interface and the notification interface based on the system version of the target system and the electronic device installed therein to generate the customized notification push service, thereby effectively saving the system development cost.
Second embodiment
Fig. 2 is a flowchart illustrating a notification push service generation method according to a second embodiment of the present application. This embodiment is a specific implementation of the step S102, and as shown in the figure, this embodiment mainly includes the following steps:
step S202, identifying the system version of the target system and obtaining the identification result of the system version.
And step S204, judging whether the target system is an android version smaller than 5.0 or not according to the identification result, if so, performing step S206, and if not, performing step S208.
Specifically, because the notification push schemes under different android system versions are different, in view of this, in this embodiment, classification and division are performed first on the system version of the target system, if the target system is an android version smaller than 5.0, step S206 is performed, and if the target system is an android version not smaller than 5.0, step S208 is performed.
Step S206, acquiring a standard notification interface as a notification interface of the target system.
Specifically, since the Notification authority is called by using a standard Notification interface (Notification API) before the version 4.4 of the android (API 19), the present embodiment uses the standard Notification interface as the Notification interface of the target system for the target system smaller than the version 5.0 of the android.
In step S208, a compatible notification interface is obtained as the notification interface of the target system.
Specifically, in the version of Android 5.0(API 21), notification authority is called using a notification interface (notificationcomponent), and functions of mode control (disturbance mode, vibration mode, do not disturb mode) are further added. In view of this, the present embodiment uses a compatible notification interface as a notification interface of the target system for the target system of the no-small android version 5.0, where the compatible notification interface is compatible with the standard notification interface.
And step S210, judging whether the target system is an android version not less than 8.0, if so, performing step S212, and if not, ending the process.
In step S212, a notification channel for notifying the push service is created.
Specifically, after the system version of android 8.0(API 26), concepts of power management, notification importance (Important), and notification Channel (Channel) are introduced, and in view of this, the present embodiment further establishes a notification Channel for target systems of the android 8.0 version and above.
Step S214, determining the notification grade of the notification channel according to the notification type of the notification push service.
Optionally, the notification type of the notification push service may include a dialog notification type, an advertisement notification type.
In this embodiment, if the notification type is the dialogue notification type, the notification level of the notification channel may be set to be high, and if the notification type is the advertisement notification type, the notification level of the notification channel may be set to be low.
Step S216, according to the notification level, determining a task recovery mechanism of the notification channel.
Optionally, the task recovery mechanism of the notification channel may include a first recovery mechanism and a second recovery mechanism.
Optionally, if the task recovery mechanism is the first recovery mechanism, the notification channel is always kept in an activated state, and if the task recovery mechanism is the second recovery mechanism, the operation performance of the electronic device may be detected, and when it is determined that the operation performance of the electronic device does not meet the preset performance threshold, the notification channel is closed.
In this embodiment, the operation performance of the electronic device may include at least one of an electric quantity value and a CPU utilization rate of the electronic device.
In one embodiment, the notification channel with a high notification level may be set as the first fallback mechanism, i.e. the notification channel is always kept active regardless of the operation performance of the electronic device, so as to ensure that notifications (e.g. notifications of the dialog notification type) can always be pushed through the notification channel.
In another embodiment, the notification channel with the low notification level may be set as the second recycling mechanism, that is, the notification channel is automatically closed when the power value of the electronic device is lower than the power threshold and/or the CPU utilization of the electronic device exceeds the preset utilization threshold, in which state, the notification (e.g., the notification of the advertisement notification type) cannot be pushed through the notification channel.
In summary, the notification push service generation method of this embodiment may match different notification interfaces according to different android system versions, and set corresponding recovery mechanism functions according to different importance degrees of notifications for the android system versions not smaller than the 8.0 version. Therefore, the notification push service generation technology provided by the embodiment can be perfectly adapted to notification service functions configured by different android system versions, so as to improve the use experience of the notification push function.
Third embodiment
A third embodiment of the present application provides a computer storage medium, in which instructions for executing the steps in the notification push service method according to the first embodiment or the second embodiment are stored.
Fourth embodiment
Fig. 3 shows an architecture diagram of a notification push service generation apparatus according to a fourth embodiment of the present application. As shown in the figure, the notification push service generating device 300 of the present embodiment mainly includes: a notification interface configuration module 302, a notification interface configuration module 304.
The notification interface configuration module 302 is configured to obtain a notification interface of a target system according to a system version of the target system.
Optionally, the target system includes an android system, and the system version includes one of a first version, a second version, and a third version; wherein the first version comprises an android version less than 5.0; the second version comprises an android version that is not less than 5.0 and less than 8.0; the third version includes an android version of not less than 8.0.
Optionally, the notification interface configuration module 302 further includes identifying a system version of the target system, and obtaining an identification result of the system version; responding to the recognition result that the system version is the first version, and acquiring a standard notification interface; and responding to the identification result that the system version is the second version or the third version, and acquiring a compatible notification interface.
Optionally, the notification interface configuration module 302 further includes a notification channel for creating the notification push service in response to the recognition result that the system version is the third version; determining the notification grade of the notification channel according to the notification type of the notification push service; and determining a task recovery mechanism of the notification channel according to the notification level.
Optionally, the notification type includes a dialog notification type, an advertisement notification type; the notification interface configuration module 302 further comprises determining that the notification level of the notification channel is high if the notification type is the dialog notification type; determining that the notification level of the notification channel is low if the notification type is the advertisement notification type.
Optionally, the task recovery mechanism comprises at least a first recovery mechanism and a second recovery mechanism; the notification interface configuration module 302 further includes, if the task recovery mechanism is the first recovery mechanism, always keeping the notification channel in an activated state; and if the task recovery mechanism is the second recovery mechanism, detecting the operation performance of the electronic equipment, and closing the notification channel when the operation performance of the electronic equipment is judged not to meet a preset performance threshold.
Optionally, the operation performance includes at least one of a power value and a CPU usage rate of the electronic device.
The notification interface configuration module 304 is configured to generate a notification interface of the target system according to the electronic device on which the target system is mounted.
Optionally, the notification interface configuration module 304 further includes a device identification code for identifying the electronic device on which the target system is mounted; and generating a notification interface of the target system according to the manufacturer identification information in the equipment identification code.
The notification push service generation module 306 is configured to generate a notification push service of the target system according to the notification interface and the notification interface.
In summary, the notification push service generation method, the notification push service generation device, and the computer storage medium according to the embodiments of the application can automatically generate customized system push services according to the system version of the target system and the electronic device carried by the target system, so that by using the unified system push service generation standard, the system development cost can be effectively saved, and a system developer can concentrate on implementation of a service more.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the embodiments of the present application, and are not limited thereto; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A notification push service generation method, comprising:
acquiring a notification interface of a target system according to a system version of the target system;
generating a notification interface of the target system according to the electronic equipment carrying the target system;
and generating a notification push service of the target system according to the notification interface and the notification interface.
2. The notification push service generation method according to claim 1,
the target system comprises an android system, and the system version comprises one of a first version, a second version and a third version;
wherein the first version comprises an android version less than 5.0; the second version comprises an android version that is not less than 5.0 and less than 8.0; the third version includes an android version of not less than 8.0.
3. The notification push service generation method according to claim 2, wherein the obtaining the notification interface of the target system according to the system version of the target system comprises:
identifying a system version of the target system, and obtaining an identification result of the system version;
responding to the recognition result that the system version is the first version, and acquiring a standard notification interface;
and responding to the identification result that the system version is the second version or the third version, and acquiring a compatible notification interface.
4. The notification push service generation method according to claim 3, wherein the method further comprises:
responding to the recognition result that the system version is the third version, and creating a notification channel of the notification push service;
determining the notification grade of the notification channel according to the notification type of the notification push service;
and determining a task recovery mechanism of the notification channel according to the notification level.
5. The notification push service generation method according to claim 4, wherein the notification type includes a dialog notification type, an advertisement notification type; wherein,
if the notification type is the conversation notification type, determining that the notification level of the notification channel is high;
determining that the notification level of the notification channel is low if the notification type is the advertisement notification type.
6. The notification push service generation method according to claim 4, wherein the task recovery mechanism comprises at least a first recovery mechanism and a second recovery mechanism; wherein,
if the task recovery mechanism is the first recovery mechanism, the notification channel is always kept in an activated state;
and if the task recovery mechanism is the second recovery mechanism, detecting the operation performance of the electronic equipment, and closing the notification channel when the operation performance of the electronic equipment is judged not to meet a preset performance threshold.
7. The notification push service generation method according to claim 6, wherein the operation performance includes at least one of a power value and a CPU usage rate of the electronic device.
8. The notification push service generation method according to claim 1, wherein the generating a notification interface of the target system according to the electronic device hosting the target system includes:
identifying a device identification code of the electronic device carrying the target system;
and generating a notification interface of the target system according to the manufacturer identification information in the equipment identification code.
9. A computer storage medium, characterized in that the computer storage medium stores instructions for executing the steps of the notification push service method according to any one of the preceding claims 1 to 8.
10. A notification push service generation apparatus, comprising:
the notification interface configuration module is used for acquiring a notification interface of a target system according to the system version of the target system;
the notification interface configuration module is used for generating a notification interface of the target system according to the electronic equipment carrying the target system;
and the notification push service generating module is used for generating the notification push service of the target system according to the notification interface and the notification interface.
CN202111332487.XA 2021-11-11 2021-11-11 Notification push service generation method and device and computer storage medium Pending CN114138508A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111332487.XA CN114138508A (en) 2021-11-11 2021-11-11 Notification push service generation method and device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111332487.XA CN114138508A (en) 2021-11-11 2021-11-11 Notification push service generation method and device and computer storage medium

Publications (1)

Publication Number Publication Date
CN114138508A true CN114138508A (en) 2022-03-04

Family

ID=80393681

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111332487.XA Pending CN114138508A (en) 2021-11-11 2021-11-11 Notification push service generation method and device and computer storage medium

Country Status (1)

Country Link
CN (1) CN114138508A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108011930A (en) * 2017-11-17 2018-05-08 阿里巴巴集团控股有限公司 Data processing method and device, terminal device, server
US20180295200A1 (en) * 2016-05-24 2018-10-11 Tencent Technology (Shenzhen) Company Limited Notification column message processing method and device
CN108683733A (en) * 2018-05-15 2018-10-19 苏州玩友时代科技股份有限公司 Compatible full platform mobile phone supplying system and method
CN110602221A (en) * 2019-09-18 2019-12-20 北京安云世纪科技有限公司 Notification level processing method and device and readable storage medium
CN111556161A (en) * 2020-05-12 2020-08-18 青岛海信医疗设备股份有限公司 Terminal control method and communication server for advertisement

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180295200A1 (en) * 2016-05-24 2018-10-11 Tencent Technology (Shenzhen) Company Limited Notification column message processing method and device
CN108011930A (en) * 2017-11-17 2018-05-08 阿里巴巴集团控股有限公司 Data processing method and device, terminal device, server
CN108683733A (en) * 2018-05-15 2018-10-19 苏州玩友时代科技股份有限公司 Compatible full platform mobile phone supplying system and method
CN110602221A (en) * 2019-09-18 2019-12-20 北京安云世纪科技有限公司 Notification level processing method and device and readable storage medium
CN111556161A (en) * 2020-05-12 2020-08-18 青岛海信医疗设备股份有限公司 Terminal control method and communication server for advertisement

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
猪小花1号: "Android通知栏介绍与适配总结(下篇)", pages 1 - 5, Retrieved from the Internet <URL:https://sq.sf.163.com/blog/article/192710644351221760> *

Similar Documents

Publication Publication Date Title
CN103049692B (en) A kind of application installation method, device and equipment
US20180183651A1 (en) Content push method and server, and terminal
US9183072B1 (en) Error troubleshooting using a correlated knowledge base
KR102003850B1 (en) Method for providing application and terminal thereof
US9104796B2 (en) Correlation of source code with system dump information
US20090259990A1 (en) Mobile Device Software Management Method and Apparatus
CN104737161A (en) Person-based information aggregation
CN111131422A (en) Push message prompting method, vehicle-mounted terminal and computer storage medium
CN106155746B (en) A kind of installation file processing method and processing device, server
CN109117153B (en) Application processing method, device, terminal and storage medium
CN112861529A (en) Method and device for managing error codes
CN111880990B (en) Exception handling method and device
CN111555959A (en) User-defined control global popup notification processing method and device
US20070022321A1 (en) Exception analysis methods and systems
CN112540839B (en) Information changing method, device, electronic equipment and storage medium
CN114138508A (en) Notification push service generation method and device and computer storage medium
CN114285691A (en) Vehicle function implementation method and device and electronic equipment
CN113037850A (en) Application program upgrading method and device, electronic equipment and storage medium
US20200202230A1 (en) Cognitive device support for potentially affected devices
CN111083145A (en) Message sending method and device and electronic equipment
US7478095B2 (en) Generation and retrieval of incident reports
CN107025148B (en) Mass data processing method and device
CN111124627A (en) Method, device, terminal and storage medium for determining application program caller
CN111737129B (en) Service control method, device, computer readable medium and electronic equipment
CN114928603A (en) Client software upgrading method and device, electronic equipment and medium

Legal Events

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