WO2020181812A1 - Application broadcast message push method, apparatus, and readable storage medium - Google Patents

Application broadcast message push method, apparatus, and readable storage medium Download PDF

Info

Publication number
WO2020181812A1
WO2020181812A1 PCT/CN2019/117727 CN2019117727W WO2020181812A1 WO 2020181812 A1 WO2020181812 A1 WO 2020181812A1 CN 2019117727 W CN2019117727 W CN 2019117727W WO 2020181812 A1 WO2020181812 A1 WO 2020181812A1
Authority
WO
WIPO (PCT)
Prior art keywords
device information
information file
target app
found
ids
Prior art date
Application number
PCT/CN2019/117727
Other languages
French (fr)
Chinese (zh)
Inventor
乐志能
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2020181812A1 publication Critical patent/WO2020181812A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast

Definitions

  • This application relates to the field of communication technology, and in particular to an APP broadcast message pushing method, device and readable storage medium.
  • This application provides an APP broadcast message pushing method, device, and readable storage medium.
  • Each device ID associated with the same APP is stored in one or more device information files in advance.
  • After receiving the broadcast message for the APP After the push instruction, directly push the broadcast message to the corresponding mobile phone device according to the device ID stored in each device information file corresponding to the APP, without temporarily searching the database for the device associated with the APP after receiving the broadcast message push instruction ID, which can improve the efficiency of pushing broadcast messages to users through APP.
  • an embodiment of the present application provides an APP broadcast message push method, which includes: for any target APP, searching a database for the device ID associated with the target APP, and combining each of the found devices
  • the ID is stored in at least one device information file corresponding to the target APP to receive a broadcast message push instruction for the target APP; according to the broadcast message push instruction, at least one of the device information files corresponding to the target APP is obtained Device information file; according to the device ID stored in each acquired device information file, push a broadcast message to the mobile phone device corresponding to the device ID, including: for each acquired device information
  • the file creates a corresponding message push thread; at the same time, each of the created message push threads is run, so that each message push thread sends a message to the device ID stored in the corresponding device information file.
  • the corresponding mobile phone device pushes the broadcast message.
  • this application also provides an APP broadcast message pushing device, including: a storage module, a receiving module, an acquisition module, and a pushing module;
  • the storage module is configured to search for a device ID associated with the target APP from a database for any target APP, and store each of the device IDs found in at least one corresponding to the target APP In the equipment information file;
  • the receiving module is configured to receive a broadcast message push instruction for the target APP
  • the obtaining module is configured to obtain at least one of the device information files generated by the storage module and corresponding to the target APP according to the broadcast message push instruction received by the receiving module;
  • the pushing module is configured to push a broadcast message to the mobile phone device corresponding to the device ID according to the device ID stored in each device information file acquired by the acquisition module;
  • the push module is specifically configured to create a corresponding message push thread for each acquired device information file; at the same time, run each of the created message push threads to make each message push thread Push a broadcast message to the corresponding mobile phone device according to the device ID stored in the corresponding device information file.
  • an embodiment of the present application also provides a computer device, including a memory and a processor, the memory stores computer-readable instructions, and when the processor executes the computer-readable instructions, the foregoing first aspect is implemented Any of the aforementioned APP broadcast message push methods.
  • an embodiment of the present application also provides a non-volatile readable storage medium, on which computer-readable instructions are stored, and when the computer-readable instructions are executed by a processor, any one of the above-mentioned first aspects is implemented.
  • the APP broadcast message push method is also provided.
  • the APP broadcast message pushing method, device, computer equipment, and computer-readable storage medium store each device ID associated with the target APP stored in the database in one or more corresponding to the target APP in advance.
  • the device information file After receiving the broadcast message push instruction for the target APP, each device information file corresponding to the target APP is obtained, and then the device ID stored in each obtained device information file is sent to the corresponding mobile device Push broadcast messages.
  • each device ID associated with the same APP is stored in one or more device information files in advance, and after receiving the broadcast message push instruction for the APP, it is directly based on the device information files corresponding to the APP.
  • the device ID stored in the device pushes the broadcast message to the corresponding mobile device. There is no need to temporarily find the device ID associated with the APP from the database after receiving the broadcast message push instruction, thereby improving the efficiency of pushing broadcast messages to users through the APP .
  • FIG. 1 is a flowchart of an APP broadcast message push method provided by an embodiment of the present application
  • FIG. 2 is a flowchart of a method for determining the number of required device information files provided by an embodiment of the present application
  • FIG. 3 is a flowchart of a device ID storage method provided by an embodiment of the present application.
  • FIG. 4 is a flowchart of a method for updating a device information file provided by an embodiment of the present application
  • FIG. 5 is a flowchart of another method for pushing APP broadcast messages according to an embodiment of the present application.
  • Fig. 6 is a schematic diagram of an APP broadcast message pushing device provided by an embodiment of the present application.
  • an embodiment of the present application provides a method for pushing APP broadcast messages.
  • the method may include the following steps:
  • Step 101 For any target APP, search the database for the device ID associated with the target APP, and store each of the found device IDs in at least one device information file corresponding to the target APP;
  • Step 102 Receive a broadcast message push instruction for the target APP
  • Step 103 Obtain at least one device information file corresponding to the target APP according to the broadcast message push instruction;
  • Step 104 Push the broadcast message to the mobile phone device corresponding to the device ID according to the device ID stored in each device information file obtained.
  • the APP broadcast message push method pre-stores each device ID stored in the database and associated with the target APP into one or more device information files corresponding to the target APP. After the broadcast message push instruction, obtain each device information file corresponding to the target APP, and then push the broadcast message to the corresponding mobile device according to the device ID stored in each obtained device information file. It can be seen that each device ID associated with the same APP is stored in one or more device information files in advance, and after receiving the broadcast message push instruction for the APP, it is directly based on the device information files corresponding to the APP. The device ID stored in the device pushes the broadcast message to the corresponding mobile device.
  • the device ID associated with the APP is stored in the database.
  • the same APP can be associated with multiple device IDs, and the same device ID can also be associated with multiple APPs.
  • the device ID associated with the APP refers to the identity of the mobile device on which the APP is installed. Different mobile devices have different device IDs (identifications), and a corresponding mobile phone can be uniquely determined according to the device ID Device, so that information can be accurately sent to the corresponding mobile device according to the device ID.
  • the database stores the association relationship between the APP and the device ID. When the mobile device runs the corresponding APP for the first time, the APP can upload the device ID of the mobile device, and then can create the association relationship between the APP and the device ID according to the device ID uploaded by the APP. Store the created relationship in the database.
  • the broadcast message when the broadcast message is pushed to the corresponding mobile phone device according to the device ID in the device information file, the content of the pushed broadcast message can be obtained from the broadcast message push instruction.
  • step 104 when step 104 pushes the broadcast message to the mobile device according to the device information file, multiple threads can be used to push the broadcast message at the same time.
  • the specific process can be implemented as follows :
  • each device information file obtained For each device information file obtained, create a message push thread corresponding to the device information file; at the same time, run each message push thread created so that each message push thread can be based on its corresponding device
  • the device ID stored in the information file pushes the broadcast message to the corresponding mobile device. For example, if a total of 10 device information files corresponding to the target APP are obtained, 10 message push threads are created, so that each device information file can independently correspond to a message push thread. After that, 10 message push threads are made in parallel, and each message push thread can read the device ID from its corresponding device information file in sequence during operation, and then send the corresponding mobile device to the corresponding mobile device according to the read device ID. Push broadcast messages.
  • the process of creating a device information file may specifically include the following steps:
  • Step 201 Obtain the number of device IDs associated with the target APP found in the database
  • Step 202 Substitute the acquired number of device IDs into the following formula to calculate the number of required device information files;
  • M represents the number of required device information files
  • x represents the number of device IDs found in the database and associated with the target APP
  • X represents a preset number threshold
  • m represents a broadcast The maximum number of message push threads that a message push device can run
  • k represents a constant determined according to the maximum number of device IDs that can be stored in a device information file
  • Step 203 Create a corresponding number of device information files according to the calculated number of required device information files.
  • pushing broadcast messages to mobile devices needs to rely on broadcast message push devices, and the number of message push threads that each broadcast message push device can support is limited by the maximum value.
  • each message push thread corresponds to a device information file, and different message push threads correspond to different device information files. Therefore, it is necessary to determine the number of required device information files according to the number of acquired device IDs, so as to ensure that the broadcast message pushing device has a high utilization rate while ensuring the efficiency of pushing broadcast messages.
  • the number x of the device IDs found is less than the preset number threshold X, directly create a fixed number (m) of device information files as the device information files corresponding to the target APP, and m is a broadcast message
  • m is a broadcast message
  • the number x of the device IDs found is greater than or equal to the preset number threshold X, it will be determined according to the number x of the device IDs found and the maximum number of device IDs that can be stored in a device information file. Determine the constant k, calculate the number of device information files that need to be created Ensure that each device information file created can store all the device IDs found. among them, And Refers to the ratio of x to k rounded up.
  • the preset number threshold X can be equal to or less than the product of the maximum number of device IDs that can be stored in a device information file and m. At this time, it can avoid storing the device ID in the device information file.
  • the device information files are all in a fully loaded state, ensuring that each device information file created can store each device ID found.
  • the constant k can be equal to or less than the maximum number of device IDs that can be stored in a device information file. When k is less than the maximum number of device IDs that can be stored in a device information file, each device information file will not be in Fully loaded state.
  • each device ID when storing the found device ID in the device information file in step 101, each device ID may be stored in the corresponding device ID according to the priority of each device ID.
  • the method of storing the device ID in the device information file may specifically include the following steps:
  • Step 301 Perform statistics on the priority of each device ID found, and determine the priority distribution information of each device ID found;
  • Step 302 According to the determined priority distribution information, each device information file device corresponds to the priority file ratio;
  • Step 303 According to the priority of each device ID found and the proportion of priority files corresponding to each device information file, store each device ID found in each device information file, so that each device information file is different The proportion of the priority device ID conforms to the proportion of the priority file corresponding to the device information file.
  • each device ID associated with the target APP found in the database has a corresponding priority.
  • the priority distribution information of each device ID that is, the number of device IDs corresponding to each priority.
  • the corresponding priority file ratio can be set for each device information file according to the priority distribution information, that is, the device information file can be set for each priority device The number of IDs.
  • each device ID is stored in each device information file, and the number of device IDs with different priorities in each device information file is guaranteed after the storage is completed. The proportion of files that meet the corresponding priority.
  • a total of 3 device information files are created for the target APP, namely device information file 1, device information file 2 and device information file 3.
  • set the priority file ratio of device information file 3 is allocated to the three device information files for storage.
  • the device information file 1 contains all high-priority device IDs; the device information file 2 only includes high-priority and medium-priority device IDs, and high-priority device IDs and medium-priority device IDs The number ratio of is equal to 0.7:0.3; the device information file 3 only includes medium priority and low priority device IDs, and the number ratio of medium priority device IDs to low priority device IDs is equal to 0.4:0.6.
  • the proportion of priority files corresponding to different device information files can be different.
  • you need to push broadcast messages to mobile devices with a specific priority device ID you only need to determine the proportion of the corresponding priority files that the specific priority is not
  • the zero device information file is read, and then broadcast messages are pushed to the mobile device according to the read priority of the device ID of the specific priority, so that the broadcast message can be easily pushed to the mobile device of the specific priority device ID to meet The individual needs of different users.
  • the priority of the device ID can be set when the device ID is stored in the database, or can be set according to the user's instruction after the device ID is found in the database.
  • step 101 stores the found device ID in the device information file
  • the device ID associated with the target APP can be added to the database. It is also stored in the device information file, as shown in Figure 4.
  • the specific process may include the following steps:
  • Step 401 After a preset update period, search the database for the newly added device ID associated with the target APP, where the newly added device ID refers to the device ID added to the database during the update period;
  • Step 402 Create at least one newly added device information file corresponding to the target APP;
  • Step 403 Store the newly found device ID in at least one newly created device information file.
  • the newly added device ID associated with the target APP in the database needs to be also stored in the device information file.
  • the database is searched for the newly added device ID associated with the target APP, and one or more device information files corresponding to the target APP are newly created to store the newly found device ID. .
  • the new device information file will be stored together with the previously generated device information file corresponding to the target APP.
  • the broadcast message needs to be pushed to the target APP again, it will also be sent to the device according to the device ID stored in the new device information file.
  • the mobile device pushes the broadcast message, so as to ensure that the push broadcast message can cover all mobile devices with the target APP installed, and improve the comprehensiveness of the push broadcast message.
  • the database needs to be traversed when looking up the new device ID from the database, which will take up more computing resources.
  • Device ID For example, you can start to query the newly added device ID in the database at one o'clock every morning.
  • the ID of each newly added device that is found can be configured separately priority.
  • the priority for the new device ID and storing the new device ID in the new device information file when you need to push broadcast messages for mobile devices with a specific priority device ID, you can use the new device information file
  • the device ID with a specific priority pushes the broadcast message to the corresponding mobile device, so as to ensure that all mobile devices with the specific priority can be covered when the broadcast message is pushed to the mobile device with a specific priority, thereby ensuring that the broadcast message is pushed Comprehensiveness.
  • all newly added device files formed during the integration period may be integrated. Specifically, every time a preset integration period is passed, each new device information file corresponding to the target APP created in the integration period is queried, and then the new device information stored in each new device information file found The ID is integrated into one or more device information files, and then each newly added device information file found is deleted. Since each update cycle may generate one or more new device information files corresponding to the target APP, many new device information files with a small number of stored device IDs will be generated over time. The device information file as a fragmented file will occupy more storage space and will affect the speed of pushing broadcast messages.
  • the device IDs stored in each new device information file corresponding to the target APP generated in the integration cycle are integrated into one or a few device information files, and then the device IDs corresponding to the target APP
  • the new device information file is deleted, which can reduce the number of fragmented files, and can ensure the speed of pushing broadcast messages while saving storage resources.
  • the method may include the following steps:
  • Step 501 Look up the device ID associated with the target APP from the database.
  • the association relationship between different APPs and device IDs is stored in the database, and the mobile phone device corresponding to the device ID that has an association relationship with an APP is installed with the APP.
  • the device ID corresponding to each association relationship found is determined as the device ID associated with the target APP.
  • the database stores the association relationship between 10 different APPs and device IDs.
  • Step 502 Create a device information file corresponding to the target APP according to the number of device IDs queried.
  • the number of device information files to be created is determined according to the number of device IDs queried, and then a corresponding number of device information files are created.
  • the number of device information files to be created can be determined according to the following formula;
  • M represents the number of required device information files
  • x represents the number of device IDs found in the database and associated with the target APP
  • X represents a preset number threshold
  • m represents a broadcast message push device The maximum number of message push threads that can be run
  • k represents a constant determined according to the maximum number of device IDs that can be stored in a device information file; For example, in the above formula, X has a value of 1 million and k has a value of 98,000. Since the number of device IDs found to be associated with APP1 x is equal to 20 million, That is, create 205 single device information files that can store up to 100,000 device IDs as the device information files corresponding to APP1.
  • Step 503 Store the queried device IDs in the created device information files.
  • each device ID associated with the target APP is stored in each device information file corresponding to the target APP, and then the device ID is stored All equipment information files are stored uniformly.
  • the priority distribution information can be calculated according to the priority analysis and statistics of each device ID associated with the target APP, and then a corresponding priority file can be set for each created device information file according to the priority distribution information.
  • each device ID is stored in each device information file, so that the device ID of each device information file has a different priority. Occupy the proportion of priority files corresponding to the device information file. For example, 20 million device IDs associated with APP1 are stored in 205 device information files corresponding to APP1.
  • Step 504 Periodically store the newly-added device ID in the database and associated with the target APP into the newly created device information file.
  • the database is searched for the new and added target APP in the database.
  • the associated new device ID, and the found new device ID is stored in one or more newly created new device information files, and then the new device information file storing the new device ID will be the same as that created before The device information files corresponding to the target APP are stored together.
  • the newly added device ID stored in the newly added device information file created during the integration period is integrated into one or more device information files, and then the integrated
  • the obtained device information file is stored, and the newly integrated device information file is deleted. For example, at 1:00 am every day, find the device ID associated with APP1 that was newly added to the database the day before from the database, and store the found device ID in a newly created new device information file, and then the new device ID
  • the additional device information file is stored together with each device information file corresponding to APP1 obtained previously.
  • Step 505 Receive a broadcast message push instruction for the target APP.
  • the user's broadcast message push instruction for the target APP is received, that is, the user needs to push the broadcast message to the user through the target APP installed on the mobile phone.
  • Step 506 Create a corresponding number of message push threads according to the number of device information files corresponding to the target APP.
  • a corresponding number of message push threads are created according to the number of stored device information files corresponding to the target APP. For example, after receiving a broadcast message push instruction for APP1, it is determined that there are 210 device information files corresponding to APP1, and 210 message push threads are created.
  • Step 507 Run each message pushing thread at the same time to push the broadcast message to the mobile device according to the device ID stored in each device information file.
  • the created message push threads are run at the same time, so that the message push threads are parallel.
  • each message push thread starts running, it reads the device ID in turn from its corresponding device information file, and pushes the broadcast message to the corresponding mobile device according to the read device ID, and the specific content of the broadcast message can be Obtain from the received broadcast message push instruction.
  • the created 210 message push threads correspond to 210 device information files corresponding to APP1
  • each message push thread corresponds to one device information file
  • different message push threads correspond to different device information files.
  • Each message push thread sequentially reads the device ID from the corresponding device information file, and pushes the broadcast message to the corresponding mobile device according to the read device ID.
  • an embodiment of the present application provides an APP broadcast message pushing device, including: a storage module 601, a receiving module 602, an obtaining module 603, and a pushing module 604;
  • the storage module 601 is used to search for a device ID associated with the target APP from a database for any target APP, and store each device ID found in at least one device information file corresponding to the target APP; receiving module 602, configured to receive a broadcast message push instruction for the target APP; the acquiring module 603, configured to acquire at least one device information file generated by the storage module 601 and corresponding to the target APP according to the broadcast message push instruction received by the receiving module 602
  • the push module 604 is used to push the broadcast message to the mobile phone device corresponding to the device ID according to the device ID stored in each device information file acquired by the acquisition module 603.
  • the storage module 601 can be used to execute steps 101, 201 to 203, steps 301 to 303, and steps 501 to 503 in the above method embodiment
  • the receiving module 602 can be used to execute the steps in the above method embodiment 102 and step 505
  • the acquisition module 603 can be used to execute step 103 in the above method embodiment
  • the push module 604 can be used to execute step 104 and steps 506 to 507 in the above method embodiment.
  • this device embodiment may also include other modules for executing each step in the foregoing method embodiment.
  • An embodiment of the present application also provides a computer device, including a memory and a processor, and computer-readable instructions are stored in the memory.
  • the processor executes the computer-readable instructions stored in the memory, the above-mentioned various embodiments can be implemented.
  • the APP broadcast message push method The embodiments of the present application also provide a non-volatile readable storage medium with computer readable instructions stored on the computer readable storage medium, and when the stored computer storage is executed, the above-mentioned various embodiments can be implemented.
  • APP broadcast message push method is also provide.
  • the APP broadcast message push method, device, computer equipment, and computer-readable storage medium pre-store each device ID associated with the target APP stored in the database to one or more In the device information file corresponding to the target APP, after receiving the broadcast message push instruction for the target APP, obtain each device information file corresponding to the target APP, and then according to the device ID stored in each obtained device information file Push broadcast messages to corresponding mobile devices.
  • each device ID associated with the same APP is stored in one or more device information files in advance, and after receiving the broadcast message push instruction for the APP, it is directly based on the device information files corresponding to the APP.
  • the device ID stored in the device pushes the broadcast message to the corresponding mobile device. There is no need to temporarily find the device ID associated with the APP from the database after receiving the broadcast message push instruction, thereby improving the efficiency of pushing broadcast messages to users through the APP .

Abstract

The present application provides an application broadcast message push method, apparatus, and readable storage medium, said method comprising: for any target application, searching in a database for a device ID associated with said target application, and storing each of the found device IDs in at least one device information file corresponding to the target application; receiving a broadcast message push instruction for the target application; pushing the instruction according to said broadcast message, and obtaining at least one of said device information files corresponding to the target application; according to the device ID stored in each of the obtained device information files, pushing the broadcast message to a mobile phone device corresponding to the device ID. The apparatus comprises: a storage module, a receiving module, an obtaining module, and a push module. The present solution improves the efficiency of pushing broadcast messages to users by means of an application.

Description

一种APP广播消息推送方法、装置及可读存储介质APP broadcast message pushing method, device and readable storage medium
本申请要求与2019年3月11日提交中国专利局、申请号为2019101820585、申请名称为“一种APP广播消息推送方法、装置及可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在申请中。This application claims the priority of the Chinese patent application filed on March 11, 2019 with the Chinese Patent Office, the application number is 2019101820585, and the application name is "A method, device and readable storage medium for APP broadcast message push", and its entire contents Incorporated in the application by reference.
技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种APP广播消息推送方法、装置及可读存储介质。This application relates to the field of communication technology, and in particular to an APP broadcast message pushing method, device and readable storage medium.
背景技术Background technique
随着手机的智能化程度不断提升,手机已经不再是简单的通信工具,用户可以在手机上安装各种类型的APP(Application,手机软件),通过APP进行社交、购物、运动、游戏、影视观看等多种活动。由此同时,各种类型APP的运营商为了达到推销产品、提升用户使用体验、维护已有用户、开发新用户等目的,会通过APP向用户推送广播消息,即向安装有特定APP的手机设备上推送广播消息。目前在通过APP向用户推送广播消息时,首先需要确定推送广播消息所针对的目标APP,然后从数据库中查找与目标APP存在关联关系的设备ID,进而根据所查找到的设备ID向安装有目标APP的手机设备推送广播消息。发明人发现由于同一APP运营商旗下可能有多个APP,而不同APP与设备ID的关联关系均存储在同一数据库中,因此数据库中所存储APP与设备ID之间关联关系的数据量较大,在查找与目标APP存在关联关系的设备ID时需要耗费较长时间,进而导致通过APP向用户推送广播消息的效率较低。As mobile phones become more intelligent, mobile phones are no longer simple communication tools. Users can install various types of APP (Application, mobile phone software) on their phones, and use APPs for social networking, shopping, sports, games, and movies. Watch and other activities. At the same time, in order to achieve the purposes of promoting products, improving user experience, maintaining existing users, and developing new users, operators of various types of APP will push broadcast messages to users through APP, that is, to mobile devices with specific APPs. Push broadcast messages on. At present, when pushing broadcast messages to users through APPs, it is first necessary to determine the target APP to which the broadcast message is pushed, and then find the device ID associated with the target APP from the database, and then according to the found device ID to install the target APP mobile devices push broadcast messages. The inventor found that because the same APP operator may have multiple APPs, and the association relationships between different APPs and device IDs are all stored in the same database, the amount of data on the association relationship between APPs and device IDs stored in the database is relatively large. It takes a long time to find the device ID that is associated with the target APP, which in turn leads to low efficiency in pushing broadcast messages to users through the APP.
发明内容Summary of the invention
本申请提供一种APP广播消息推送方法、装置及可读存储介质,预先将与同一个APP相关联的各个设备ID存储到一个或多个设备信息文件中,在接收到针对该APP的广播消息推送指令后,直接根据该APP对应的各个设备信息文件中存储的设备ID向相对应的手机设备推送广播消息,无需在接收到广播消息推送指令之后再临时从数据库中查找与APP相关联的设备ID,从而可以提高通过APP向用户推送广播消息的效率。This application provides an APP broadcast message pushing method, device, and readable storage medium. Each device ID associated with the same APP is stored in one or more device information files in advance. After receiving the broadcast message for the APP After the push instruction, directly push the broadcast message to the corresponding mobile phone device according to the device ID stored in each device information file corresponding to the APP, without temporarily searching the database for the device associated with the APP after receiving the broadcast message push instruction ID, which can improve the efficiency of pushing broadcast messages to users through APP.
第一方面,本申请实施例提供了一种APP广播消息推送方法,包括:针对任意一个目标APP,从数据库中查找与所述目标APP相关联的设备ID,并将查找到的各个所述设备ID存储到与所述目标APP相对应的至少一个设备信息文件中接收针对所述目标APP的广播消息推送指令;根据所述广播消息推送指令,获取与所述目标APP相对应的至少一个所述设备信息文件;根据获取到的每一个所述设备信息文件中存储的所述设备ID,向与所述设备ID相对应的手机设备推送广播消息,包括:针对获取到的每一个所述设备信息文件创建相对应的消息推送线程;同时对所创建的各个所述消息推送线程进行运行,以使每一个所述消息推送线程根据相对应的所述设备信息文件中存储的所述设备ID,向相对应的所述手机设备推送广播消息。In the first aspect, an embodiment of the present application provides an APP broadcast message push method, which includes: for any target APP, searching a database for the device ID associated with the target APP, and combining each of the found devices The ID is stored in at least one device information file corresponding to the target APP to receive a broadcast message push instruction for the target APP; according to the broadcast message push instruction, at least one of the device information files corresponding to the target APP is obtained Device information file; according to the device ID stored in each acquired device information file, push a broadcast message to the mobile phone device corresponding to the device ID, including: for each acquired device information The file creates a corresponding message push thread; at the same time, each of the created message push threads is run, so that each message push thread sends a message to the device ID stored in the corresponding device information file. The corresponding mobile phone device pushes the broadcast message.
第二方面,本申请还提供了一种APP广播消息推送装置,包括:存储模块、接收模块、获取模块和推送模块;In the second aspect, this application also provides an APP broadcast message pushing device, including: a storage module, a receiving module, an acquisition module, and a pushing module;
所述存储模块,用于针对任意一个目标APP,从数据库中查找与所述目标APP相关联的设备ID,并将查找到的各个所述设备ID存储到与所述目标APP相对应的至少一个设备信息文件中;The storage module is configured to search for a device ID associated with the target APP from a database for any target APP, and store each of the device IDs found in at least one corresponding to the target APP In the equipment information file;
所述接收模块,用于接收针对所述目标APP的广播消息推送指令;The receiving module is configured to receive a broadcast message push instruction for the target APP;
所述获取模块,用于根据所述接收模块接收到的所述广播消息推送指令,获取由所述存储模块生成且与所述目标APP相对应的至少一个所述设备信息文件;The obtaining module is configured to obtain at least one of the device information files generated by the storage module and corresponding to the target APP according to the broadcast message push instruction received by the receiving module;
所述推送模块,用于根据所述获取模块获取到的每一个所述设备信息文件中存储的所述设备ID,向与所述设备ID相对应的手机设备推送广播消息;The pushing module is configured to push a broadcast message to the mobile phone device corresponding to the device ID according to the device ID stored in each device information file acquired by the acquisition module;
所述推送模块,具体用于针对获取到的每一个所述设备信息文件创建相对应的消息推送线程;同时对所创建的各个所述消息推送线程进行运行,以使每一个所述消息推送线程根据相对应的所述设备信息文件中存储的所述设备ID,向相对应的所述手机设备推送广播消息。The push module is specifically configured to create a corresponding message push thread for each acquired device information file; at the same time, run each of the created message push threads to make each message push thread Push a broadcast message to the corresponding mobile phone device according to the device ID stored in the corresponding device information file.
第三方面,本申请实施例还提供了一种计算机设备,包括存储器和处理器,所述存储器存储有计算机可读指令,所述处理器执行所述计算机可读指令时实现上述第一方面中任一所述的APP广播消息推送方法。In a third aspect, an embodiment of the present application also provides a computer device, including a memory and a processor, the memory stores computer-readable instructions, and when the processor executes the computer-readable instructions, the foregoing first aspect is implemented Any of the aforementioned APP broadcast message push methods.
第四方面,本申请实施例还提供了一种非易失性可读存储介质,其上存储有计算机可读指令,所述计算机可读指令被处理器执行时实现上述第一方面中任一所述的APP广播消息推送方法。In a fourth aspect, an embodiment of the present application also provides a non-volatile readable storage medium, on which computer-readable instructions are stored, and when the computer-readable instructions are executed by a processor, any one of the above-mentioned first aspects is implemented. The APP broadcast message push method.
本申请实施例提供的APP广播消息推送方法、装置以及计算机设备和计算机可读存储介质,预先将数据库中存储的与目标APP相关联的各个设备ID存储到一个或多个与目标APP相对应的设备信息文件中,当接收到针对目标APP的广播消息推送指令后,获取与目标APP相对应的各个设备信息文件,之后根据获取到的各个设备信息文件中存储的设备ID向相对应的手机设备推送广播消息。由此可见,预先将与同一个APP相关联的各个设备ID存储到一个或多个设备信息文件中,在接收到针对该APP的广播消息推送指令后,直接根据该APP对应的各个设备信息文件中存储的设备ID向相对应的手机设备推送广播消息,无需在接收到广播消息推送指令之后再临时从数据库中查找与APP相关联的设备ID,从而可以提高通过APP向用户推送广播消息的效率。The APP broadcast message pushing method, device, computer equipment, and computer-readable storage medium provided by the embodiments of the application store each device ID associated with the target APP stored in the database in one or more corresponding to the target APP in advance. In the device information file, after receiving the broadcast message push instruction for the target APP, each device information file corresponding to the target APP is obtained, and then the device ID stored in each obtained device information file is sent to the corresponding mobile device Push broadcast messages. It can be seen that each device ID associated with the same APP is stored in one or more device information files in advance, and after receiving the broadcast message push instruction for the APP, it is directly based on the device information files corresponding to the APP. The device ID stored in the device pushes the broadcast message to the corresponding mobile device. There is no need to temporarily find the device ID associated with the APP from the database after receiving the broadcast message push instruction, thereby improving the efficiency of pushing broadcast messages to users through the APP .
附图说明Description of the drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are For some of the embodiments of the application, for those of ordinary skill in the art, other drawings may be obtained based on these drawings without creative work.
图1是本申请一个实施例提供的一种APP广播消息推送方法的流程图;FIG. 1 is a flowchart of an APP broadcast message push method provided by an embodiment of the present application;
图2是本申请一个实施例提供的一种所需设备信息文件数量确定方法的流程图;2 is a flowchart of a method for determining the number of required device information files provided by an embodiment of the present application;
图3是本申请一个实施例提供的一种设备ID存储方法的流程图;FIG. 3 is a flowchart of a device ID storage method provided by an embodiment of the present application;
图4是本申请一个实施例提供的一种设备信息文件更新方法的流程图;FIG. 4 is a flowchart of a method for updating a device information file provided by an embodiment of the present application;
图5是本申请一个实施例提供的另一种APP广播消息推送方法的流程图;FIG. 5 is a flowchart of another method for pushing APP broadcast messages according to an embodiment of the present application;
图6是本申请一个实施例提供的一个APP广播消息推送装置的示意图。Fig. 6 is a schematic diagram of an APP broadcast message pushing device provided by an embodiment of the present application.
具体实施方式detailed description
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例,基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。应当理解,此处所描述的具体实施例仅仅用以解释本申请, 并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments These are part of the embodiments of this application, not all of them. Based on the examples of this application, all other embodiments obtained by those of ordinary skill in the art without creative work are protected by this application. range. It should be understood that the specific embodiments described herein are only used to explain the application, but not used to limit the application.
如图1所示,本申请一个实施例提供了一种APP广播消息推送方法,该方法可以包括以下步骤:As shown in Figure 1, an embodiment of the present application provides a method for pushing APP broadcast messages. The method may include the following steps:
步骤101:针对任意一个目标APP,从数据库中查找与目标APP相关联的设备ID,并将查找到的各个设备ID存储到与目标APP相对应的至少一个设备信息文件中;Step 101: For any target APP, search the database for the device ID associated with the target APP, and store each of the found device IDs in at least one device information file corresponding to the target APP;
步骤102:接收针对目标APP的广播消息推送指令;Step 102: Receive a broadcast message push instruction for the target APP;
步骤103:根据广播消息推送指令,获取与目标APP相对应的至少一个设备信息文件;Step 103: Obtain at least one device information file corresponding to the target APP according to the broadcast message push instruction;
步骤104:根据获取到的每一个设备信息文件中存储的设备ID,向与设备ID相对应的手机设备推送广播消息。Step 104: Push the broadcast message to the mobile phone device corresponding to the device ID according to the device ID stored in each device information file obtained.
本申请实施例提供的APP广播消息推送方法,预先将数据库中存储的与目标APP相关联的各个设备ID存储到一个或多个与目标APP相对应的设备信息文件中,当接收到针对目标APP的广播消息推送指令后,获取与目标APP相对应的各个设备信息文件,之后根据获取到的各个设备信息文件中存储的设备ID向相对应的手机设备推送广播消息。由此可见,预先将与同一个APP相关联的各个设备ID存储到一个或多个设备信息文件中,在接收到针对该APP的广播消息推送指令后,直接根据该APP对应的各个设备信息文件中存储的设备ID向相对应的手机设备推送广播消息,无需在接收到广播消息推送指令之后再临时从数据库中查找与APP相关联的设备ID,从而可以提高通过APP向用户推送广播消息的效率。在本申请实施例中,数据库中存储有与APP相关联的设备ID,同一个APP可以与多个设备ID相关联,同一设备ID也可以与多个APP相关联。针对任意一个APP,与该APP相关联的设备ID是指安装有该APP的手机设备的身份标识,不同手机设备具有不同的设备ID(身份标识),根据设备ID可以唯一确定一个相对应的手机设备,从而根据设备ID可以准确地向相应的手机设备发送信息。另外,数据库中存储有APP与设备ID的关联关系,手机设备首次运行相应APP时,APP可以上传手机设备的设备ID,进而可以根据APP上传的设备ID创建APP与设备ID之前的关联关系,之后将所创建的关联关系存储到数据库中。The APP broadcast message push method provided by the embodiment of the present application pre-stores each device ID stored in the database and associated with the target APP into one or more device information files corresponding to the target APP. After the broadcast message push instruction, obtain each device information file corresponding to the target APP, and then push the broadcast message to the corresponding mobile device according to the device ID stored in each obtained device information file. It can be seen that each device ID associated with the same APP is stored in one or more device information files in advance, and after receiving the broadcast message push instruction for the APP, it is directly based on the device information files corresponding to the APP. The device ID stored in the device pushes the broadcast message to the corresponding mobile device. There is no need to temporarily find the device ID associated with the APP from the database after receiving the broadcast message push instruction, thereby improving the efficiency of pushing broadcast messages to users through the APP . In the embodiment of the present application, the device ID associated with the APP is stored in the database. The same APP can be associated with multiple device IDs, and the same device ID can also be associated with multiple APPs. For any APP, the device ID associated with the APP refers to the identity of the mobile device on which the APP is installed. Different mobile devices have different device IDs (identifications), and a corresponding mobile phone can be uniquely determined according to the device ID Device, so that information can be accurately sent to the corresponding mobile device according to the device ID. In addition, the database stores the association relationship between the APP and the device ID. When the mobile device runs the corresponding APP for the first time, the APP can upload the device ID of the mobile device, and then can create the association relationship between the APP and the device ID according to the device ID uploaded by the APP. Store the created relationship in the database.
另外,在根据设备信息文件中的设备ID向相应的手机设备推送广播消息时,所推送广播消息的内容可以从广播消息推送指令中获取。In addition, when the broadcast message is pushed to the corresponding mobile phone device according to the device ID in the device information file, the content of the pushed broadcast message can be obtained from the broadcast message push instruction.
可选地,在图1所示APP广播消息推送方法的基础上,步骤104根据设备信息文件向手机设备推送广播消息时,可以利用多个线程同时进行广播消息推送,具体过程可以通过如下方式实现:Optionally, based on the APP broadcast message push method shown in FIG. 1, when step 104 pushes the broadcast message to the mobile device according to the device information file, multiple threads can be used to push the broadcast message at the same time. The specific process can be implemented as follows :
针对获取到的每一个设备信息文件,创建对该设备信息文件相对应的一个消息推送线程;同时对所创建的各个消息推送线程进行运行,使得每一个消息推送线程均能够根据其所对应的设备信息文件中存储的设备ID向相应的手机设备推送广播消息。例如,共计获取到10个与目标APP相对应的设备信息文件,则创建10个消息推送线程,使得每一个设备信息文件可以独立对应一个消息推送线程。之后使10个消息推送线程并行,每一个消息推送线程在运行过程中可以从其所对应的设备信息文件中依次读取设备ID,从而根据所读取到的设备ID依次向相对应的手机设备推送广播消息。针对获取到的每一个设备信息文件创建相对应的消息推送线程,对所创建的各个消息推送线程同时运行,使得各个消息推送线程可以同时根据其所对应的设备信息文件中的设备ID向手机设备推送广播消息,从而在同一时间可以向多个手机设备推送广播消息,进一步提高了通过APP向用户推送广播消息的效率。For each device information file obtained, create a message push thread corresponding to the device information file; at the same time, run each message push thread created so that each message push thread can be based on its corresponding device The device ID stored in the information file pushes the broadcast message to the corresponding mobile device. For example, if a total of 10 device information files corresponding to the target APP are obtained, 10 message push threads are created, so that each device information file can independently correspond to a message push thread. After that, 10 message push threads are made in parallel, and each message push thread can read the device ID from its corresponding device information file in sequence during operation, and then send the corresponding mobile device to the corresponding mobile device according to the read device ID. Push broadcast messages. Create a corresponding message push thread for each acquired device information file, and run the created message push threads at the same time, so that each message push thread can simultaneously send messages to the mobile device according to the device ID in the corresponding device information file Push broadcast messages, so that broadcast messages can be pushed to multiple mobile devices at the same time, which further improves the efficiency of pushing broadcast messages to users through APP.
可选地,在图1所示APP广播消息推送方法的基础上,将在查找到的各个设备ID存储到与目标APP相对应的设备信息文件中之前,首先需要创建一定数量的设备信息文件。如图2所示,创建设备信息文件的过程具体可以包括如下步骤:Optionally, based on the APP broadcast message push method shown in FIG. 1, before storing each found device ID in the device information file corresponding to the target APP, a certain number of device information files need to be created first. As shown in Figure 2, the process of creating a device information file may specifically include the following steps:
步骤201:获取从数据库中查找到的与目标APP相关联的设备ID的个数;Step 201: Obtain the number of device IDs associated with the target APP found in the database;
步骤202:将获取到的设备ID的个数代入如下公式,计算出所需设备信息文件的个数;Step 202: Substitute the acquired number of device IDs into the following formula to calculate the number of required device information files;
Figure PCTCN2019117727-appb-000001
Figure PCTCN2019117727-appb-000001
在上述公式中,M表征所需设备信息文件的个数;x表征从数据库中查找到的与目标APP相关联的设备ID的个数;X表征预先设定的个数阈值;m表征一个广播消息推送设备所能运行消息推送线程的最大个数;k表征根据一个设备信息文件所能存储设备ID的最大个数而确定的常数;
Figure PCTCN2019117727-appb-000002
In the above formula, M represents the number of required device information files; x represents the number of device IDs found in the database and associated with the target APP; X represents a preset number threshold; m represents a broadcast The maximum number of message push threads that a message push device can run; k represents a constant determined according to the maximum number of device IDs that can be stored in a device information file;
Figure PCTCN2019117727-appb-000002
步骤203:根据计算出的所需设备信息文件的个数,创建相应数量的设备信息文件。Step 203: Create a corresponding number of device information files according to the calculated number of required device information files.
在本申请实施例中,向手机设备推送广播消息需要依靠广播消息推送设备实现,而每一个广播消息推送设备所能够支持的消息推送线程的个数是有最大值限制的,而在利用消息推送线程向手机设备推送广播消息时每一个消息推送线程对应一个设备信息文件,且不同消息推送线程对应不同的设备信息文件。因此需要根据所获取到设备ID的个数来确定所需设备信息文件的个数,在保证推送广播消息效率的同时保证广播消息推送设备具有较高的利用率。当所查找到的设备ID的个数x小于预先设定的个数阈值X时,直接创建固定个数(m个)的设备信息文件作为对应于目标APP的设备信息文件,而m是一个广播消息推送设备所能运行消息推动线程的最大个数,从而在仅使用一个广播消息推送设备的前提下具有较高的消息推送效率。当所查找到的设备ID的个数x大于或等于预先设定的个数阈值X时,根据所查找到的设备ID的个数x和根据一个设备信息文件所能存储设备ID的最大个数而确定的常数k,计算出所需创建设备信息文件的个数
Figure PCTCN2019117727-appb-000003
保证所创建的各个设备信息文件可以对所查找到的所有设备ID进行存储。其中,
Figure PCTCN2019117727-appb-000004
Figure PCTCN2019117727-appb-000005
是指x与k的比值向上取整。
In the embodiment of this application, pushing broadcast messages to mobile devices needs to rely on broadcast message push devices, and the number of message push threads that each broadcast message push device can support is limited by the maximum value. When a thread pushes a broadcast message to a mobile phone device, each message push thread corresponds to a device information file, and different message push threads correspond to different device information files. Therefore, it is necessary to determine the number of required device information files according to the number of acquired device IDs, so as to ensure that the broadcast message pushing device has a high utilization rate while ensuring the efficiency of pushing broadcast messages. When the number x of the device IDs found is less than the preset number threshold X, directly create a fixed number (m) of device information files as the device information files corresponding to the target APP, and m is a broadcast message The maximum number of message push threads that the push device can run, so that it has a higher message push efficiency under the premise of only using one broadcast message push device. When the number x of the device IDs found is greater than or equal to the preset number threshold X, it will be determined according to the number x of the device IDs found and the maximum number of device IDs that can be stored in a device information file. Determine the constant k, calculate the number of device information files that need to be created
Figure PCTCN2019117727-appb-000003
Ensure that each device information file created can store all the device IDs found. among them,
Figure PCTCN2019117727-appb-000004
And
Figure PCTCN2019117727-appb-000005
Refers to the ratio of x to k rounded up.
在上述公式中,预先设定的个数阈值X可以等于或小于一个设备信息文件所能存储设备ID的最大个数与m的乘积,此时可以避免将设备ID存储到设备信息文件中后各个设备信息文件均处于满载状态,保证所创建的各个设备信息文件能够存储得下所查找到的各个设备ID。另外,常数k可以等于或小于一个设备信息文件所能存储设备ID的最大个数,当k小于一个设备信息文件所能存储设备ID的最大个数时可以使得每一个设备信息文件均不会处于满载状态。在查询到的与目标APP相关联的设备ID的个数较少时,创建固定数量的设备信息文件对查询到的设备ID进行存储,使得一个广播消息推送设备便可以同时运行分别与每一个设备信息文件相对应的多个消息推送线程进行广播消息推送,在保证广播消息推送效率的同时避免启用多个广播消息推送设备而造成资源浪费。在查询到与目标APP相关联的设备ID的个数较多时,按照实际需求创建多个设备信息文件对查询到的设备ID进行存储,进而通过多个广播消息推送设备同时运行多个消息推送线程进行广播消息推送,保证广播消息推送的效率。In the above formula, the preset number threshold X can be equal to or less than the product of the maximum number of device IDs that can be stored in a device information file and m. At this time, it can avoid storing the device ID in the device information file. The device information files are all in a fully loaded state, ensuring that each device information file created can store each device ID found. In addition, the constant k can be equal to or less than the maximum number of device IDs that can be stored in a device information file. When k is less than the maximum number of device IDs that can be stored in a device information file, each device information file will not be in Fully loaded state. When the number of queried device IDs associated with the target APP is small, create a fixed number of device information files to store the queried device IDs, so that a broadcast message push device can run simultaneously with each device separately Multiple message push threads corresponding to the information file perform broadcast message push, which avoids resource waste caused by enabling multiple broadcast message push devices while ensuring the efficiency of broadcast message push. When the number of device IDs associated with the target APP is large, multiple device information files are created according to actual needs to store the queried device IDs, and then multiple message push threads are run simultaneously through multiple broadcast message push devices Carry out broadcast message push to ensure the efficiency of broadcast message push.
可选地,在图1所示APP广播消息推送方法的基础上,步骤101在将查找到的设备ID存储到设备信息文件中时,可以根据各个设备ID的优先级将各个设备ID存储到对应的设备信息文件中。如图3所示,将设备ID存储到设备信息文件中的方法具体可以包括如下步骤:Optionally, based on the APP broadcast message push method shown in FIG. 1, when storing the found device ID in the device information file in step 101, each device ID may be stored in the corresponding device ID according to the priority of each device ID. In the device information file. As shown in FIG. 3, the method of storing the device ID in the device information file may specifically include the following steps:
步骤301:对查找到的各个设备ID的优先级进行统计,确定查找到的各个设备ID的优先级分布信息;Step 301: Perform statistics on the priority of each device ID found, and determine the priority distribution information of each device ID found;
步骤302:根据确定出的优先级分布信息,分别为每一个设备信息文件设备相对应的优先级文件占比;Step 302: According to the determined priority distribution information, each device information file device corresponds to the priority file ratio;
步骤303:根据查找到的各个设备ID的优先级以及每一个设备信息文件对应的优先级文件占比,将查找到的各个设备ID存储到各个设备信息文件中,使得每一个设备信息文件中不同优先级的设备ID的占比符合该设备信息文件对应的优先级文件占比。Step 303: According to the priority of each device ID found and the proportion of priority files corresponding to each device information file, store each device ID found in each device information file, so that each device information file is different The proportion of the priority device ID conforms to the proportion of the priority file corresponding to the device information file.
在本申请实施例中,从数据库中查找到的与目标APP相关联的每一个设备ID具有相对应的优先级,通过对所查找到的各个设备ID的优先级进行统计,可以确定所查找到的各个设备ID的优先级分布信息,即每一个优先级所对应设备ID的个数。在确定出设备ID的优先级分布信息之后,可以根据优先级分布信息分别为每一个设备信息文件设置相对应的优先级文件占比,即设置设备信息文件所能存储的每一个优先级的设备ID的个数。之后根据各个设备ID的优先级以及各个设备信息文件对应的优先级占比,将各个设备ID存储到各个设备信息文件中,存储完成后保证各个设备信息文件中不同优先级的设备ID的个数符合相对应的优先级文件占比。例如,针对目标APP共计创建了3个设备信息文件,分别为设备信息文件1、设备信息文件2和设备信息文件3,根据对设备ID的优先级进行统计分析而获得的优先级分布信息,将设备信息文件1的优先级文件占比设置为高优先级:中优先级:低优先级=1:0:0,将设备信息文件2的优先级文件占比设置为高优先级:中优先级:低优先级=0.7:0.3:0,将设备信息文件3的优先级文件占比设置为高优先级:中优先级:低优先级=0:0.4:0.6。之后根据3个设备信息文件各自对应的优先级文件占比,将查找到的各个设备ID分配到3个设备信息文件中进行存储。存储完成后,设备信息文件1中全部为高优先级的设备ID;设备信息文件2中仅包括高优先级和中优先级的设备ID,且高优先级的设备ID与中优先级的设备ID的个数比等于0.7:0.3;设备信息文件3中仅包括中优先级和低优先级的设备ID,且中优先级的设备ID与低优先级的设备ID的个数比等于0.4:0.6。根据各个设备信息文件对应的优先级文件占比将各个设备ID存储到各个设备信息文件中,在根据设备信息文件中存储到设备ID向手机设备推送广播消息时,针对每一个设备信息文件,可以按照该设备信息文件中设备ID的优先级顺序向相对应的手机设备推送广播消息,以优先向设备ID优先级较高的手机设备推送广播消息,实现分阶段向手机设备推送广播消息,提升了该APP广播消息推送方法的适用性。In this embodiment of the application, each device ID associated with the target APP found in the database has a corresponding priority. By counting the priority of each device ID found, it can be determined that the device ID found The priority distribution information of each device ID, that is, the number of device IDs corresponding to each priority. After the priority distribution information of the device ID is determined, the corresponding priority file ratio can be set for each device information file according to the priority distribution information, that is, the device information file can be set for each priority device The number of IDs. Then, according to the priority of each device ID and the corresponding priority proportion of each device information file, each device ID is stored in each device information file, and the number of device IDs with different priorities in each device information file is guaranteed after the storage is completed. The proportion of files that meet the corresponding priority. For example, a total of 3 device information files are created for the target APP, namely device information file 1, device information file 2 and device information file 3. According to the priority distribution information obtained by statistical analysis of the priority of the device ID, The priority file proportion of device information file 1 is set to high priority: medium priority: low priority = 1:0:0, and the priority file proportion of device information file 2 is set to high priority: medium priority : Low priority=0.7:0.3:0, set the priority file ratio of device information file 3 to high priority: medium priority: low priority=0:0.4:0.6. Then, according to the proportion of the priority files corresponding to each of the three device information files, each of the found device IDs is allocated to the three device information files for storage. After the storage is complete, the device information file 1 contains all high-priority device IDs; the device information file 2 only includes high-priority and medium-priority device IDs, and high-priority device IDs and medium-priority device IDs The number ratio of is equal to 0.7:0.3; the device information file 3 only includes medium priority and low priority device IDs, and the number ratio of medium priority device IDs to low priority device IDs is equal to 0.4:0.6. Store each device ID in each device information file according to the proportion of priority files corresponding to each device information file. When pushing broadcast messages to mobile devices according to the device ID stored in the device information file, for each device information file, you can Push the broadcast message to the corresponding mobile device according to the priority order of the device ID in the device information file, and push the broadcast message to the mobile device with the higher priority of the device ID first, and realize the push of the broadcast message to the mobile device in stages, which improves Applicability of the APP broadcast message push method.
另外,不同设备信息文件所对应的优先级文件占比可以不同,在需要向设备ID为特定优先级的手机设备推送广播消息时,仅需对相应优先级文件占比中该特定优先级不为零的设备信息文件进行读取,进而根据读取出的优先级为该特定优先级的设备ID向手机设备推送广播消息,从而可以方便地对特定优先级设备ID的手机设备推送广播消息,满足不同用户的个性化需求。需要说明的是,设备ID的优先级可以在将设备ID存储到数据库中时设置,也可以在从数据库中查找到设备ID之后根据用户的指令而设置。In addition, the proportion of priority files corresponding to different device information files can be different. When you need to push broadcast messages to mobile devices with a specific priority device ID, you only need to determine the proportion of the corresponding priority files that the specific priority is not The zero device information file is read, and then broadcast messages are pushed to the mobile device according to the read priority of the device ID of the specific priority, so that the broadcast message can be easily pushed to the mobile device of the specific priority device ID to meet The individual needs of different users. It should be noted that the priority of the device ID can be set when the device ID is stored in the database, or can be set according to the user's instruction after the device ID is found in the database.
可选地,在图1所示APP广播消息推送方法的基础上,步骤101将查找到的设备ID存储到设备信息文件中之后,可以将新增到数据库中的与目标APP相关联的设备ID也存储到设备信息文件中,如图4所示,具体过程可以包括如下步骤:Optionally, based on the APP broadcast message push method shown in FIG. 1, after step 101 stores the found device ID in the device information file, the device ID associated with the target APP can be added to the database. It is also stored in the device information file, as shown in Figure 4. The specific process may include the following steps:
步骤401:每经过一个预先设定的更新周期,从数据库中查找与目标APP相关联的新增设备ID,其 中,新增设备ID是指在该更新周期内新增到数据库中的设备ID;Step 401: After a preset update period, search the database for the newly added device ID associated with the target APP, where the newly added device ID refers to the device ID added to the database during the update period;
步骤402:创建与目标APP相对应的至少一个新增设备信息文件;Step 402: Create at least one newly added device information file corresponding to the target APP;
步骤403:将查找到的新增设备ID存储到所创建的至少一个新增设备信息文件中。Step 403: Store the newly found device ID in at least one newly created device information file.
在首次从数据库中查找与目标APP相关联的设备ID,并将所查找到的设备ID存储到与目标APP相对应的设备信息文件中之后,数据库中可能会新增与目标APP相关联的设备ID,为了在针对目标APP推送广播消息时可以向新增设备ID对应的手机设备推送广播消息,需要将数据库中新增的与目标APP相关联的设备ID也存储到设备信息文件中。为此,每经过一个更新周期,从数据库中查找与目标APP相关联的新增设备ID,并新创建一个或多个与目标APP相对应的设备信息文件对查找到的新增设备ID进行存储。每经过一个更新周期,从数据库中查找在该更新周期新增到数据库中且与目标APP相关联的新增设备ID,并将查找到的新增设备ID存储到新创建的新增设备信息文件中,之后将新增设备信息文件与此前生成的与目标APP相对应的设备信息文件一同存储,当需要再次针对目标APP推送广播消息时,也会根据新增设备信息文件中存储的设备ID向手机设备推送广播消息,从而保证推送广播消息能够覆盖到所有安装目标APP的手机设备,提升推送广播消息的全面性。After searching for the device ID associated with the target APP from the database for the first time, and storing the found device ID in the device information file corresponding to the target APP, there may be new devices associated with the target APP in the database ID, in order to push the broadcast message to the mobile device corresponding to the newly added device ID when the broadcast message is pushed for the target APP, the newly added device ID associated with the target APP in the database needs to be also stored in the device information file. To this end, after each update cycle, the database is searched for the newly added device ID associated with the target APP, and one or more device information files corresponding to the target APP are newly created to store the newly found device ID. . After each update cycle, search the database for the newly added device IDs that are added to the database during the update cycle and are associated with the target APP, and store the found new device IDs in the newly created new device information file After that, the new device information file will be stored together with the previously generated device information file corresponding to the target APP. When the broadcast message needs to be pushed to the target APP again, it will also be sent to the device according to the device ID stored in the new device information file. The mobile device pushes the broadcast message, so as to ensure that the push broadcast message can cover all mobile devices with the target APP installed, and improve the comprehensiveness of the push broadcast message.
需要说明的是,由于从数据库中查找新增设备ID时需要遍历数据库,会占用较多的计算资源,为了避免查找新增设备ID影响对数据库的正常访问,可以在数据库的空闲时间查找新增设备ID。比如,可以在每天凌晨一点开始查询数据库中新增的设备ID。It should be noted that the database needs to be traversed when looking up the new device ID from the database, which will take up more computing resources. In order to avoid finding the new device ID affecting the normal access to the database, you can search for the new device in the free time of the database. Device ID. For example, you can start to query the newly added device ID in the database at one o'clock every morning.
可选地,在图4所示存储新增设备ID方法的基础上,步骤401从数据库中查找到与目标APP相关联的新增设备ID之后,可以分别为查找的每一个新增设备ID配置优先级。在为新增设备ID配置优先级并将新增设备ID存储到新增设备信息文件中之后,在需要针对具有特定优先级设备ID的手机设备推送广播消息时,可以根据新增设备信息文件中具有特定优先级的设备ID向相对应的手机设备推送广播消息,从而可以保证向具有特定优先级的手机设备推送广播消息时可以覆盖所有具有该特定优先级的手机设备,进而保证推送广播消息的全面性。Optionally, on the basis of the method of storing the ID of the newly added device shown in FIG. 4, after finding the ID of the newly added device associated with the target APP from the database in step 401, the ID of each newly added device that is found can be configured separately priority. After configuring the priority for the new device ID and storing the new device ID in the new device information file, when you need to push broadcast messages for mobile devices with a specific priority device ID, you can use the new device information file The device ID with a specific priority pushes the broadcast message to the corresponding mobile device, so as to ensure that all mobile devices with the specific priority can be covered when the broadcast message is pushed to the mobile device with a specific priority, thereby ensuring that the broadcast message is pushed Comprehensiveness.
可选地,在图4所示存储新增设备ID方法的基础上,可以对在该整合周期内形成的所有新增设备文件进行整合。具体地,每经过一个预先设定的整合周期,查询该整合周期内所创建的对应于目标APP的各个新增设备信息文件,之后将查询到的各个新增设备信息文件中存储的新增设备ID整合到一个或多个设备信息文件中,之后将查询到的各个新增设备信息文件删除。由于每经过一个更新周期都可能生成一个或多个对应于目标APP的新增设备信息文件,随着时间的推移会生成很多所存储设备ID个数较少的新增设备信息文件,这些新增设备信息文件作为碎片文件会占据较多的存储空间,并会影响推送广播消息的速度。每经过一个整合周期,将该整合周期内所生成的对应于目标APP的各个新增设备信息文件中存储的设备ID整合到一个或少数几个设备信息文件中,之后将对应于目标APP的各个新增设备信息文件删除,从而可以减少碎片文件的数量,在节约存储资源的同时可以保证推送广播消息的速度。Optionally, based on the method of storing the ID of the newly added device shown in FIG. 4, all newly added device files formed during the integration period may be integrated. Specifically, every time a preset integration period is passed, each new device information file corresponding to the target APP created in the integration period is queried, and then the new device information stored in each new device information file found The ID is integrated into one or more device information files, and then each newly added device information file found is deleted. Since each update cycle may generate one or more new device information files corresponding to the target APP, many new device information files with a small number of stored device IDs will be generated over time. The device information file as a fragmented file will occupy more storage space and will affect the speed of pushing broadcast messages. After each integration cycle, the device IDs stored in each new device information file corresponding to the target APP generated in the integration cycle are integrated into one or a few device information files, and then the device IDs corresponding to the target APP The new device information file is deleted, which can reduce the number of fragmented files, and can ensure the speed of pushing broadcast messages while saving storage resources.
下面结合具体实例,对本申请实施例提供的APP广播消息推送方法作进一步详细说明,如图5所示,该方法可以包括以下步骤:In the following, in conjunction with specific examples, the APP broadcast message push method provided in the embodiments of the present application will be further described in detail. As shown in FIG. 5, the method may include the following steps:
步骤501:从数据库中查找与目标APP相关联的设备ID。在本申请实施例中,数据库中存储有不同APP与设备ID的关联关系,与一个APP存在关联关系的设备ID对应的手机设备上安装有该APP。根据数据库中查找设计目标APP的关联关系,从而将所查找到的各个关联关系对应的设备ID确定为与目标 APP相关联的设备ID。例如,数据库中存储有10个不同APP与设备ID的关联关系。现将APP1作为目标APP,从数据库中查找涉及APP1的关联关系,共查询到2000万条设备ID与APP1之间的关联关系,从而根据这2000万条关联关系确定出2000万个与APP1相对应的设备ID。Step 501: Look up the device ID associated with the target APP from the database. In the embodiment of the present application, the association relationship between different APPs and device IDs is stored in the database, and the mobile phone device corresponding to the device ID that has an association relationship with an APP is installed with the APP. According to the association relationship of the design target APP in the database, the device ID corresponding to each association relationship found is determined as the device ID associated with the target APP. For example, the database stores the association relationship between 10 different APPs and device IDs. Now take APP1 as the target APP, search for the association relationship involving APP1 from the database, and query a total of 20 million device IDs and APP1 association relationships, and then determine 20 million corresponding to APP1 based on these 20 million association relationships The device ID.
步骤502:根据所查询到设备ID的个数创建与目标APP相对应的设备信息文件。在本申请实施例中,在查询到与目标APP相关联的设备ID之后,根据所查询到设备ID的个数,确定所需创建设备信息文件的个数,之后创建相应数量的设备信息文件。具体地,可以按照如下公式确定所需创建设备信息文件的个数;Step 502: Create a device information file corresponding to the target APP according to the number of device IDs queried. In the embodiment of the present application, after the device ID associated with the target APP is queried, the number of device information files to be created is determined according to the number of device IDs queried, and then a corresponding number of device information files are created. Specifically, the number of device information files to be created can be determined according to the following formula;
Figure PCTCN2019117727-appb-000006
Figure PCTCN2019117727-appb-000006
其中,M表征所需设备信息文件的个数;x表征从数据库中查找到的与目标APP相关联的设备ID的个数;X表征预先设定的个数阈值;m表征一个广播消息推送设备所能运行消息推送线程的最大个数;k表征根据一个设备信息文件所能存储设备ID的最大个数而确定的常数;
Figure PCTCN2019117727-appb-000007
例如,上述公式中X取值100万,k取值9.8万,由于所查找到与APP1相关联的设备ID的个数x等于2000万,从而
Figure PCTCN2019117727-appb-000008
Figure PCTCN2019117727-appb-000009
即创建205个单个最多能存储10万个设备ID的设备信息文件作为与APP1相对应的设备信息文件。
Among them, M represents the number of required device information files; x represents the number of device IDs found in the database and associated with the target APP; X represents a preset number threshold; m represents a broadcast message push device The maximum number of message push threads that can be run; k represents a constant determined according to the maximum number of device IDs that can be stored in a device information file;
Figure PCTCN2019117727-appb-000007
For example, in the above formula, X has a value of 1 million and k has a value of 98,000. Since the number of device IDs found to be associated with APP1 x is equal to 20 million,
Figure PCTCN2019117727-appb-000008
Figure PCTCN2019117727-appb-000009
That is, create 205 single device information files that can store up to 100,000 device IDs as the device information files corresponding to APP1.
步骤503:将查询到的各个设备ID存储到所创建的各个设备信息文件中。在本申请实施例中,在创建对应于目标APP的设备信息文件后,将与目标APP相关联的各个设备ID存储到与目标APP相对应的各个设备信息文件中,之后对存储有设备ID的各个设备信息文件进行统一存储。具体地,可以根据所查找到的与目标APP相关联的各个设备ID的优先级分析统计出优先级分布信息,进而根据优先级分布信息为所创建的各个设备信息文件设置相对应的优先级文件占比,之后根据各个设备ID的优先级和各个设备信息文件的优先级文件占比,将各个设备ID存储到各个设备信息文件中,以使每一个设备信息文件中不同优先级的设备ID的占据符合该设备信息文件对应的优先级文件占比。例如,将与APP1相关联的2000万个设备ID存储到与APP1相对应的205个设备信息文件中。Step 503: Store the queried device IDs in the created device information files. In the embodiment of this application, after the device information file corresponding to the target APP is created, each device ID associated with the target APP is stored in each device information file corresponding to the target APP, and then the device ID is stored All equipment information files are stored uniformly. Specifically, the priority distribution information can be calculated according to the priority analysis and statistics of each device ID associated with the target APP, and then a corresponding priority file can be set for each created device information file according to the priority distribution information Then, according to the priority of each device ID and the priority file proportion of each device information file, each device ID is stored in each device information file, so that the device ID of each device information file has a different priority. Occupy the proportion of priority files corresponding to the device information file. For example, 20 million device IDs associated with APP1 are stored in 205 device information files corresponding to APP1.
步骤504:周期性将数据库中新增的且与目标APP相关联的设备ID存储到新创建的设备信息文件中。在本申请实施例中,在首次将与目标APP相关联的设备ID存储到与目标APP相对应的设备信息文件中之后,每经过一个更新周期从数据库中查找新增到数据库中的与目标APP相关联的新增设备ID,并将查找到的新增设备ID存储到一个或多个新创建的新增设备信息文件中,之后将存储有新增设备ID的新增设备信息文件与此前创建的对应于目标APP的设备信息文件存储到一起。另外,每经过一个比更新周期时间跨度大的整合周期,将该整合周期内所创建的新增设备信息文件中存储的新增设备ID整合到一个或多个设备信息文件中,之后将整合后获得的设备信息文件进行存储,并将已整合过的新增设备信息文件删除。例如,每天凌晨1点从数据库中查找前一天新添加到数据库中的与APP1相关联的设备ID,并将查找到的设备ID存储到一个新创建的新增设备信息文件中,之后将该新增设备信息文件与此前获得的与APP1相对应的各个设备信息文件一同存储。另外,每经过1个星期,对上一星期所创建的所有与APP1相对应的新增设备信息文件进行整合,将各个新增设备信息文件中存储的设备ID整合到少数几个设备信息文件中,之后将经过整合的各个新增设备信息文件删除,并对整合后获得的设备信息文 件进行存储。Step 504: Periodically store the newly-added device ID in the database and associated with the target APP into the newly created device information file. In the embodiment of the present application, after the device ID associated with the target APP is stored in the device information file corresponding to the target APP for the first time, after each update cycle, the database is searched for the new and added target APP in the database. The associated new device ID, and the found new device ID is stored in one or more newly created new device information files, and then the new device information file storing the new device ID will be the same as that created before The device information files corresponding to the target APP are stored together. In addition, every time an integration period that is larger than the update cycle time span passes, the newly added device ID stored in the newly added device information file created during the integration period is integrated into one or more device information files, and then the integrated The obtained device information file is stored, and the newly integrated device information file is deleted. For example, at 1:00 am every day, find the device ID associated with APP1 that was newly added to the database the day before from the database, and store the found device ID in a newly created new device information file, and then the new device ID The additional device information file is stored together with each device information file corresponding to APP1 obtained previously. In addition, after every one week, all new device information files corresponding to APP1 created in the previous week are integrated, and the device ID stored in each new device information file is integrated into a few device information files , Delete each newly-added device information file after integration, and store the device information file obtained after integration.
步骤505:接收针对目标APP的广播消息推送指令。在本申请实施例中,接收用户针对目标APP的广播消息推送指令,即用户需要通过手机上安装的目标APP向用户推送广播消息。Step 505: Receive a broadcast message push instruction for the target APP. In the embodiment of the present application, the user's broadcast message push instruction for the target APP is received, that is, the user needs to push the broadcast message to the user through the target APP installed on the mobile phone.
步骤506:根据与目标APP相对应的设备信息文件的个数,创建相对应数量的消息推送线程。在本申请实施例中,在接收到针对目标APP的广播消息推送指令之后,根据已经存储的与目标APP相对应的设备信息文件的个数,创建相应数量的消息推送线程。例如,在接收到针对APP1的广播消息推送指令后,确定与APP1相对应的设备信息文件共计有210个,则创建210个消息推送线程。Step 506: Create a corresponding number of message push threads according to the number of device information files corresponding to the target APP. In the embodiment of the present application, after receiving the broadcast message push instruction for the target APP, a corresponding number of message push threads are created according to the number of stored device information files corresponding to the target APP. For example, after receiving a broadcast message push instruction for APP1, it is determined that there are 210 device information files corresponding to APP1, and 210 message push threads are created.
步骤507:同时对各个消息推送线程进行运行,以分别根据每一个设备信息文件中存储的设备ID向手机设备推送广播消息。在本申请实施例中,在创建多个消息推送线程后,同时对所创建的各个消息推送线程进行运行,使得各个消息推送线程并行。每一个消息推送线程在运行开始后,从其相对应的设备信息文件中依次读取设备ID,根据所读取到的设备ID向相对应的手机设备推送广播消息,而广播消息的具体内容可以从接收到的广播消息推送指令中获取。例如,所创建的210个消息推送线程对应210个与APP1相对应的设备信息文件,每个消息推送线程对应一个设备信息文件,且不同消息推送线程对应不同设备信息文件。每一个消息推送线程从相对应的设备信息文件中依次读取设备ID,并根据所读取到的设备ID向相对应的手机设备推送广播消息。Step 507: Run each message pushing thread at the same time to push the broadcast message to the mobile device according to the device ID stored in each device information file. In the embodiment of the present application, after multiple message push threads are created, the created message push threads are run at the same time, so that the message push threads are parallel. After each message push thread starts running, it reads the device ID in turn from its corresponding device information file, and pushes the broadcast message to the corresponding mobile device according to the read device ID, and the specific content of the broadcast message can be Obtain from the received broadcast message push instruction. For example, the created 210 message push threads correspond to 210 device information files corresponding to APP1, each message push thread corresponds to one device information file, and different message push threads correspond to different device information files. Each message push thread sequentially reads the device ID from the corresponding device information file, and pushes the broadcast message to the corresponding mobile device according to the read device ID.
如图6所示,本申请一个实施例提供了一种APP广播消息推送装置,包括:存储模块601、接收模块602、获取模块603和推送模块604;As shown in FIG. 6, an embodiment of the present application provides an APP broadcast message pushing device, including: a storage module 601, a receiving module 602, an obtaining module 603, and a pushing module 604;
存储模块601,用于针对任意一个目标APP,从数据库中查找与目标APP相关联的设备ID,并将查找到的各个设备ID存储到与目标APP相对应的至少一个设备信息文件中;接收模块602,用于接收针对目标APP的广播消息推送指令;获取模块603,用于根据接收模块602接收到的广播消息推送指令,获取由存储模块601生成且与目标APP相对应的至少一个设备信息文件;推送模块604,用于根据获取模块603获取到的每一个设备信息文件中存储的设备ID,向与设备ID相对应的手机设备推送广播消息。在本申请实施例中,存储模块601可用于执行上述方法实施例中的步骤101、步骤201至203、步骤301至303以及步骤501至503,接收模块602可用于执行上述方法实施例中的步骤102和步骤505,获取模块603可用于执行上述方法实施例中的步骤103,推送模块604可用于执行上述方法实施例中的步骤104和步骤506至507。The storage module 601 is used to search for a device ID associated with the target APP from a database for any target APP, and store each device ID found in at least one device information file corresponding to the target APP; receiving module 602, configured to receive a broadcast message push instruction for the target APP; the acquiring module 603, configured to acquire at least one device information file generated by the storage module 601 and corresponding to the target APP according to the broadcast message push instruction received by the receiving module 602 The push module 604 is used to push the broadcast message to the mobile phone device corresponding to the device ID according to the device ID stored in each device information file acquired by the acquisition module 603. In the embodiment of the present application, the storage module 601 can be used to execute steps 101, 201 to 203, steps 301 to 303, and steps 501 to 503 in the above method embodiment, and the receiving module 602 can be used to execute the steps in the above method embodiment 102 and step 505, the acquisition module 603 can be used to execute step 103 in the above method embodiment, and the push module 604 can be used to execute step 104 and steps 506 to 507 in the above method embodiment.
需要说明的是,本装置实施例所包括的各个模块之间的信息交互、执行过程等内容,由于与上述方法实施例基于同一申请构思,具体内容可以参见上述方法实施例中的叙述,此处不再赘述。另外,本装置实施例还可以包括其他的模块,用于执行上述方法实施例中的各个步骤。It should be noted that the information exchange and execution process among the various modules included in the device embodiment are based on the same application concept as the above method embodiment, and the specific content can be referred to the description in the above method embodiment. No longer. In addition, this device embodiment may also include other modules for executing each step in the foregoing method embodiment.
本申请实施例还提供了一种计算机设备,包括有存储器和处理器,存储器上存储有计算机可读指令,当处理器执行存储器上所存储的计算机可读指令时可以实现上述各个实施例所提供的APP广播消息推送方法。本申请实施例还提供了一种非易失性可读存储介质,该计算机可读存储介质上存储有计算机可读指令,在其所存储的计算机存储被执行时可以实现上述各个实施例提供的APP广播消息推送方法。An embodiment of the present application also provides a computer device, including a memory and a processor, and computer-readable instructions are stored in the memory. When the processor executes the computer-readable instructions stored in the memory, the above-mentioned various embodiments can be implemented. The APP broadcast message push method. The embodiments of the present application also provide a non-volatile readable storage medium with computer readable instructions stored on the computer readable storage medium, and when the stored computer storage is executed, the above-mentioned various embodiments can be implemented. APP broadcast message push method.
综上所述,本申请各个实施例提供的APP广播消息推送方法、装置以及计算机设备和计算机可读存储介质,预先将数据库中存储的与目标APP相关联的各个设备ID存储到一个或多个与目标APP相对应的设备信息文件中,当接收到针对目标APP的广播消息推送指令后,获取与目标APP相对应的各个设备 信息文件,之后根据获取到的各个设备信息文件中存储的设备ID向相对应的手机设备推送广播消息。由此可见,预先将与同一个APP相关联的各个设备ID存储到一个或多个设备信息文件中,在接收到针对该APP的广播消息推送指令后,直接根据该APP对应的各个设备信息文件中存储的设备ID向相对应的手机设备推送广播消息,无需在接收到广播消息推送指令之后再临时从数据库中查找与APP相关联的设备ID,从而可以提高通过APP向用户推送广播消息的效率。In summary, the APP broadcast message push method, device, computer equipment, and computer-readable storage medium provided by the various embodiments of the present application pre-store each device ID associated with the target APP stored in the database to one or more In the device information file corresponding to the target APP, after receiving the broadcast message push instruction for the target APP, obtain each device information file corresponding to the target APP, and then according to the device ID stored in each obtained device information file Push broadcast messages to corresponding mobile devices. It can be seen that each device ID associated with the same APP is stored in one or more device information files in advance, and after receiving the broadcast message push instruction for the APP, it is directly based on the device information files corresponding to the APP. The device ID stored in the device pushes the broadcast message to the corresponding mobile device. There is no need to temporarily find the device ID associated with the APP from the database after receiving the broadcast message push instruction, thereby improving the efficiency of pushing broadcast messages to users through the APP .
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、装置、物品或者方法不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、装置、物品或者方法所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、装置、物品或者方法中还存在另外的相同要素。上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。It should be noted that in this article, the terms "including", "including" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements not only includes those elements, It also includes other elements that are not explicitly listed, or elements inherent to the process, device, article, or method. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, device, article or method that includes the element. The serial numbers of the foregoing embodiments of the present application are only for description, and do not represent the advantages and disadvantages of the embodiments. Through the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better.的实施方式。 Based on this understanding, the technical solution of this application essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM) as described above. , Magnetic disk, optical disk), including several instructions to make a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) execute the method described in each embodiment of the present application. The above are only preferred embodiments of this application, and do not limit the scope of this application. Any equivalent structure or equivalent process transformation made using the content of the description and drawings of this application, or directly or indirectly used in other related technical fields , The same reason is included in the scope of patent protection of this application.

Claims (20)

  1. 一种APP广播消息推送方法,针对任意一个目标APP,从数据库中查找与所述目标APP相关联的设备ID,并将查找到的各个所述设备ID存储到与所述目标APP相对应的至少一个设备信息文件中,还包括:A method for pushing APP broadcast messages. For any target APP, search for the device ID associated with the target APP from a database, and store each of the found device IDs in at least one corresponding to the target APP. A device information file also includes:
    接收针对所述目标APP的广播消息推送指令;Receiving a broadcast message push instruction for the target APP;
    根据所述广播消息推送指令,获取与所述目标APP相对应的至少一个所述设备信息文件;Obtaining at least one device information file corresponding to the target APP according to the broadcast message push instruction;
    根据获取到的每一个所述设备信息文件中存储的所述设备ID,向与所述设备ID相对应的手机设备推送广播消息,包括:针对获取到的每一个所述设备信息文件创建相对应的消息推送线程;同时对所创建的各个所述消息推送线程进行运行,以使每一个所述消息推送线程根据相对应的所述设备信息文件中存储的所述设备ID,向相对应的所述手机设备推送广播消息。Pushing a broadcast message to the mobile phone device corresponding to the device ID according to the device ID stored in each of the device information files obtained includes: creating a corresponding message for each device information file obtained The message push thread; at the same time each of the message push threads created to run, so that each message push thread according to the corresponding device ID stored in the device information file, to the corresponding The mobile phone device pushes the broadcast message.
  2. 根据权利要求1所述的方法,在所述从数据库中查找与所述目标APP相关联的设备ID之后,且在将查找到的各个所述设备ID存储到与所述目标APP相对应的至少一个设备信息文件中之前,进一步包括:The method according to claim 1, after the device ID associated with the target APP is searched from the database, and each of the device IDs found is stored in at least one corresponding to the target APP Before a device information file, it further includes:
    根据从所述数据库中查找到的与所述目标APP相关联的所述设备ID的个数,通过如下公式确定所需设备信息文件的个数;According to the number of device IDs associated with the target APP found in the database, the number of required device information files is determined by the following formula;
    Figure PCTCN2019117727-appb-100001
    Figure PCTCN2019117727-appb-100001
    其中,所述M表征所述所需设备信息文件的个数;所述x表征从所述数据库中查找到的与所述目标APP相关联的所述设备ID的个数;所述X表征预先设定的个数阈值;所述m表征一个广播消息推送设备所能运行所述消息推送线程的最大个数;所述k表征根据一个所述设备信息文件所能存储所述设备ID的最大个数而确定的常数;所述
    Figure PCTCN2019117727-appb-100002
    Wherein, the M characterizes the number of the required device information files; the x characterizes the number of the device IDs that are found in the database and is associated with the target APP; the X characterizes the number of device IDs associated with the target APP; The set number threshold; the m represents the maximum number of message push threads that can be run by a broadcast message push device; the k represents the maximum number of device IDs that can be stored according to one device information file A constant determined by the number;
    Figure PCTCN2019117727-appb-100002
    根据所确定出的所述所需设备信息文件的个数,创建相应个数的所述设备信息文件。According to the determined number of the required device information files, a corresponding number of the device information files are created.
  3. 根据权利要求1所述的方法,所述将查找到的各个所述设备ID存储到与所述目标APP相对应的至少一个设备信息文件中,包括:The method according to claim 1, wherein storing each of the found device IDs in at least one device information file corresponding to the target APP comprises:
    对查找到的各个所述设备ID的优先级进行统计,确定查找到的各个所述设备ID的优先级分布信息;Perform statistics on the priority of each of the found device IDs, and determine the priority distribution information of each of the found device IDs;
    根据所述优先级分布信息分别为每一个所述设备信息文件设置相对应的优先级文件占比;Respectively setting a corresponding priority file proportion for each device information file according to the priority distribution information;
    根据查找到的各个所述设备ID的优先级以及每一个所述设备信息文件对应的所述优先级文件占比,将查找到的各个所述设备ID存储到各个所述设备信息文件中,使得每一个所述设备信息文件中不同优先级的所述设备ID的占比符合相对应的所述优先级文件占比。According to the priority of each device ID found and the proportion of the priority file corresponding to each device information file, each of the device IDs found is stored in each device information file, so that The proportions of the device IDs of different priorities in each of the device information files conform to the proportions of the corresponding priority files.
  4. 根据权利要求1所述的方法,在所述将查找到的各个所述设备ID存储到与所述目标APP相对应的至少一个设备信息文件中之后,进一步包括:The method according to claim 1, after storing each of the found device IDs in at least one device information file corresponding to the target APP, further comprising:
    每经过一个预先设定的更新周期,从所述数据库中查找与所述目标APP相关联的新增设备ID,其中,所述新增设备ID是在所述更新周期内新增到所述数据库中的设备ID;After a preset update period, search the database for the newly added device ID associated with the target APP, where the newly added device ID is added to the database during the update period Device ID in;
    创建与所述目标APP相对应的至少一个新增设备信息文件;Creating at least one newly added device information file corresponding to the target APP;
    将查找到的各个所述新增设备ID存储到所述至少一个新增设备信息文件中。Store each of the newly-added device IDs found in the at least one newly-added device information file.
  5. 根据权利要求4所述的方法,在所述将查找到的各个所述新增设备ID存储到所述至少一个新增设备信息文件中之前,进一步包括:The method according to claim 4, before the storing each of the newly-added device IDs found in the at least one newly-added device information file, further comprising:
    分别为查找到的每一个所述新增设备ID配置优先级。The priority is configured for each of the newly added device IDs found.
  6. 根据权利要求4所述的方法,进一步包括:The method of claim 4, further comprising:
    每经过一个预先设定的整合周期,查询该整合周期内所创建的各个所述新增设备信息文件;After each pre-set integration period, query each of the newly added device information files created in the integration period;
    将查询到的各个所述新增设备信息文件中存储的所述新增设备ID整合到至少一个设备信息文件中,并将查询到的各个所述新增设备信息文件删除。Integrating the newly-added device ID stored in each of the newly-inquired newly-added device information files into at least one device information file, and deleting each of the newly-inquired newly-added device information files.
  7. 一种APP广播消息推送装置,包括:存储模块、接收模块、获取模块和推送模块;An APP broadcast message pushing device, including: a storage module, a receiving module, an acquisition module, and a pushing module;
    所述存储模块,用于针对任意一个目标APP,从数据库中查找与所述目标APP相关联的设备ID,并将查找到的各个所述设备ID存储到与所述目标APP相对应的至少一个设备信息文件中;The storage module is configured to search for a device ID associated with the target APP from a database for any target APP, and store each of the device IDs found in at least one corresponding to the target APP In the equipment information file;
    所述接收模块,用于接收针对所述目标APP的广播消息推送指令;The receiving module is configured to receive a broadcast message push instruction for the target APP;
    所述获取模块,用于根据所述接收模块接收到的所述广播消息推送指令,获取由所述存储模块生成且与所述目标APP相对应的至少一个所述设备信息文件;The obtaining module is configured to obtain at least one of the device information files generated by the storage module and corresponding to the target APP according to the broadcast message push instruction received by the receiving module;
    所述推送模块,用于根据所述获取模块获取到的每一个所述设备信息文件中存储的所述设备ID,向与所述设备ID相对应的手机设备推送广播消息;The pushing module is configured to push a broadcast message to the mobile phone device corresponding to the device ID according to the device ID stored in each device information file acquired by the acquisition module;
    所述推送模块,具体用于针对获取到的每一个所述设备信息文件创建相对应的消息推送线程;同时对所创建的各个所述消息推送线程进行运行,以使每一个所述消息推送线程根据相对应的所述设备信息文件中存储的所述设备ID,向相对应的所述手机设备推送广播消息。The push module is specifically configured to create a corresponding message push thread for each acquired device information file; at the same time, run each of the created message push threads to make each message push thread Push a broadcast message to the corresponding mobile phone device according to the device ID stored in the corresponding device information file.
  8. 根据权利要求7所述的装置,所述存储模块,还用于根据从所述数据库中查找到的与所述目标APP相关联的所述设备ID的个数,通过如下公式确定所需设备信息文件的个数;The apparatus according to claim 7, wherein the storage module is further configured to determine the required device information according to the number of the device IDs associated with the target APP found in the database by the following formula The number of files;
    Figure PCTCN2019117727-appb-100003
    Figure PCTCN2019117727-appb-100003
    其中,所述M表征所述所需设备信息文件的个数;所述x表征从所述数据库中查找到的与所述目标APP相关联的所述设备ID的个数;所述X表征预先设定的个数阈值;所述m表征一个广播消息推送设备所能运行所述消息推送线程的最大个数;所述k表征根据一个所述设备信息文件所能存储所述设备ID的最大个数而确定的常数;所述
    Figure PCTCN2019117727-appb-100004
    根据所确定出的所述所需设备信息文件的个数,创建相应个数的所述设备信息文件。
    Wherein, the M characterizes the number of the required device information files; the x characterizes the number of the device IDs that are found in the database and is associated with the target APP; the X characterizes the number of device IDs associated with the target APP; The set number threshold; the m represents the maximum number of message push threads that can be run by a broadcast message push device; the k represents the maximum number of device IDs that can be stored according to one device information file A constant determined by the number;
    Figure PCTCN2019117727-appb-100004
    According to the determined number of the required device information files, a corresponding number of the device information files are created.
  9. 根据权利要求7所述的装置,所述存储模块,具体用于对查找到的各个所述设备ID的优先级进行统计,确定查找到的各个所述设备ID的优先级分布信息;根据所述优先级分布信息分别为每一个所述设备信息文件设置相对应的优先级文件占比;根据查找到的各个所述设备ID的优先级以及每一个所述设备信息文件对应的所述优先级文件占比,将查找到的各个所述设备ID存储到各个所述设备信息文件中,使得每一个所述设备信息文件中不同优先级的所述设备ID的占比符合相对应的所述优先级文件占比。The apparatus according to claim 7, wherein the storage module is specifically configured to collect statistics on the priority of each of the device IDs found, and determine the priority distribution information of each of the device IDs found; Priority distribution information sets a corresponding priority file ratio for each device information file; according to the priority of each device ID found and the priority file corresponding to each device information file The proportion of each device ID found is stored in each device information file, so that the proportion of the device ID with different priorities in each device information file conforms to the corresponding priority File ratio.
  10. 根据权利要求7所述的装置,所述存储模块,还用于每经过一个预先设定的更新周期,从所述数据库中查找与所述目标APP相关联的新增设备ID,其中,所述新增设备ID是在所述更新周期内新增 到所述数据库中的设备ID;创建与所述目标APP相对应的至少一个新增设备信息文件;将查找到的各个所述新增设备ID存储到所述至少一个新增设备信息文件中。The apparatus according to claim 7, wherein the storage module is further configured to search the database for the newly-added device ID associated with the target APP every time a preset update period has passed, wherein the The newly added device ID is the device ID added to the database during the update period; at least one newly added device information file corresponding to the target APP is created; each of the newly added device IDs found Stored in the at least one newly added device information file.
  11. 根据权利要求10所述的装置,所述存储模块,还用于分别为查找到的每一个所述新增设备ID配置优先级。The apparatus according to claim 10, wherein the storage module is further configured to configure a priority for each newly-added device ID found.
  12. 根据权利要求10所述的装置,所述存储模块,还用于每经过一个预先设定的整合周期,查询该整合周期内所创建的各个所述新增设备信息文件;将查询到的各个所述新增设备信息文件中存储的所述新增设备ID整合到至少一个设备信息文件中,并将查询到的各个所述新增设备信息文件删除。The device according to claim 10, the storage module is further configured to query each of the newly-added equipment information files created during the integration period after a preset integration period; The newly-added device ID stored in the newly-added device information file is integrated into at least one device information file, and each of the newly-inquired device information files is deleted.
  13. 一种计算机设备,包括存储器和处理器,所述存储器存储有计算机可读指令,所述处理器执行所述计算机可读指令时实现APP广播消息推送方法,针对任意一个目标APP,从数据库中查找与所述目标APP相关联的设备ID,并将查找到的各个所述设备ID存储到与所述目标APP相对应的至少一个设备信息文件中,还包括:接收针对所述目标APP的广播消息推送指令;根据所述广播消息推送指令,获取与所述目标APP相对应的至少一个所述设备信息文件;根据获取到的每一个所述设备信息文件中存储的所述设备ID,向与所述设备ID相对应的手机设备推送广播消息,包括:针对获取到的每一个所述设备信息文件创建相对应的消息推送线程;同时对所创建的各个所述消息推送线程进行运行,以使每一个所述消息推送线程根据相对应的所述设备信息文件中存储的所述设备ID,向相对应的所述手机设备推送广播消息。A computer device includes a memory and a processor, the memory stores computer-readable instructions, and the processor implements an APP broadcast message push method when the computer-readable instructions are executed, and searches for any target APP from a database The device ID associated with the target APP, and storing each of the found device IDs in at least one device information file corresponding to the target APP, further includes: receiving a broadcast message for the target APP Push instruction; according to the broadcast message push instruction, obtain at least one of the device information files corresponding to the target APP; according to the device ID stored in each of the obtained device information files, Pushing the broadcast message by the mobile phone device corresponding to the device ID includes: creating a corresponding message push thread for each acquired device information file; at the same time, running each of the created message push threads so that each One of the message pushing threads pushes the broadcast message to the corresponding mobile phone device according to the device ID stored in the corresponding device information file.
  14. 根据权利要求13所述的计算机设备,所述处理器执行所述计算机可读指令时实现所述方法时,在所述从数据库中查找与所述目标APP相关联的设备ID之后,且在将查找到的各个所述设备ID存储到与所述目标APP相对应的至少一个设备信息文件中之前,进一步包括:根据从所述数据库中查找到的与所述目标APP相关联的所述设备ID的个数,通过如下公式确定所需设备信息文件的个数;The computer device according to claim 13, when the processor executes the computer-readable instruction to implement the method, after the device ID associated with the target APP is searched in the database, and after the Before each of the found device IDs is stored in at least one device information file corresponding to the target APP, the method further includes: according to the device IDs found in the database and associated with the target APP The number of equipment information files required is determined by the following formula;
    Figure PCTCN2019117727-appb-100005
    Figure PCTCN2019117727-appb-100005
    其中,所述M表征所述所需设备信息文件的个数;所述x表征从所述数据库中查找到的与所述目标APP相关联的所述设备ID的个数;所述X表征预先设定的个数阈值;所述m表征一个广播消息推送设备所能运行所述消息推送线程的最大个数;所述k表征根据一个所述设备信息文件所能存储所述设备ID的最大个数而确定的常数;所述
    Figure PCTCN2019117727-appb-100006
    根据所确定出的所述所需设备信息文件的个数,创建相应个数的所述设备信息文件。
    Wherein, the M characterizes the number of the required device information files; the x characterizes the number of the device IDs that are found in the database and is associated with the target APP; the X characterizes the number of device IDs associated with the target APP; The set number threshold; the m represents the maximum number of message push threads that can be run by a broadcast message push device; the k represents the maximum number of device IDs that can be stored according to one device information file A constant determined by the number;
    Figure PCTCN2019117727-appb-100006
    According to the determined number of the required device information files, a corresponding number of the device information files are created.
  15. 根据权利要求13所述的计算机设备,所述处理器执行所述计算机可读指令时实现所述将查找到的各个所述设备ID存储到与所述目标APP相对应的至少一个设备信息文件中,包括:对查找到的各个所述设备ID的优先级进行统计,确定查找到的各个所述设备ID的优先级分布信息;根据所述优先级分布信息分别为每一个所述设备信息文件设置相对应的优先级文件占比;根据查找到的各个所述设备ID的优先级以及每一个所述设备信息文件对应的所述优先级文件占比,将查找到的各个所述设备ID存储到各个所述设备信息文件中,使得每一个所述设备信息文件中不同优先级的所述设备ID的占比符合相对应的所述优先级文件占比。The computer device according to claim 13, wherein when the processor executes the computer-readable instruction, storing each of the device IDs found in at least one device information file corresponding to the target APP is implemented , Including: performing statistics on the priority of each of the device IDs found, and determining the priority distribution information of each of the device IDs found; setting the device information file separately according to the priority distribution information The proportion of corresponding priority files; according to the priority of each device ID found and the proportion of the priority file corresponding to each device information file, store each of the device IDs found in In each of the device information files, the proportion of the device IDs with different priorities in each of the device information files is made to conform to the proportion of the corresponding priority files.
  16. 根据权利要求13所述的计算机设备,所述处理器执行所述计算机可读指令时实现在所述将查 找到的各个所述设备ID存储到与所述目标APP相对应的至少一个设备信息文件中之后,进一步包括:每经过一个预先设定的更新周期,从所述数据库中查找与所述目标APP相关联的新增设备ID,其中,所述新增设备ID是在所述更新周期内新增到所述数据库中的设备ID;创建与所述目标APP相对应的至少一个新增设备信息文件;将查找到的各个所述新增设备ID存储到所述至少一个新增设备信息文件中。The computer device according to claim 13, wherein when the processor executes the computer-readable instruction, the device ID is stored in at least one device information file corresponding to the target APP. After the middle, it further includes: searching the database for the newly-added device ID associated with the target APP every time a preset update period has elapsed, wherein the newly-added device ID is within the update period Device ID added to the database; creating at least one new device information file corresponding to the target APP; storing each of the new device IDs found in the at least one new device information file in.
  17. 一种非易失性可读存储介质,其上存储有计算机可读指令,所述计算机可读指令被处理器执行时实现APP广播消息推送方法,针对任意一个目标APP,从数据库中查找与所述目标APP相关联的设备ID,并将查找到的各个所述设备ID存储到与所述目标APP相对应的至少一个设备信息文件中,还包括:接收针对所述目标APP的广播消息推送指令;根据所述广播消息推送指令,获取与所述目标APP相对应的至少一个所述设备信息文件;根据获取到的每一个所述设备信息文件中存储的所述设备ID,向与所述设备ID相对应的手机设备推送广播消息,包括:针对获取到的每一个所述设备信息文件创建相对应的消息推送线程;同时对所创建的各个所述消息推送线程进行运行,以使每一个所述消息推送线程根据相对应的所述设备信息文件中存储的所述设备ID,向相对应的所述手机设备推送广播消息。A non-volatile readable storage medium, on which computer readable instructions are stored, when the computer readable instructions are executed by a processor, an APP broadcast message push method is realized, and for any target APP, search and all data from the database The device ID associated with the target APP, and storing each of the found device IDs in at least one device information file corresponding to the target APP, further includes: receiving a broadcast message push instruction for the target APP According to the broadcast message push instruction, obtain at least one of the device information files corresponding to the target APP; according to the device ID stored in each of the obtained device information files, to the device The mobile phone device corresponding to the ID pushes the broadcast message, including: creating a corresponding message push thread for each acquired device information file; at the same time, running each of the created message push threads to make each The message pushing thread pushes the broadcast message to the corresponding mobile phone device according to the device ID stored in the corresponding device information file.
  18. 根据权利要求17所述的存储介质,所述计算机可读指令被处理器执行时实现所述方法时,在所述从数据库中查找与所述目标APP相关联的设备ID之后,且在将查找到的各个所述设备ID存储到与所述目标APP相对应的至少一个设备信息文件中之前,进一步包括:根据从所述数据库中查找到的与所述目标APP相关联的所述设备ID的个数,通过如下公式确定所需设备信息文件的个数;The storage medium according to claim 17, when the computer-readable instructions are executed by a processor to implement the method, after the device ID associated with the target APP is searched in the database, and after searching Before each of the obtained device IDs is stored in at least one device information file corresponding to the target APP, it further includes: according to the device ID found in the database and associated with the target APP Number, determine the number of equipment information files required by the following formula;
    Figure PCTCN2019117727-appb-100007
    Figure PCTCN2019117727-appb-100007
    其中,所述M表征所述所需设备信息文件的个数;所述x表征从所述数据库中查找到的与所述目标APP相关联的所述设备ID的个数;所述X表征预先设定的个数阈值;所述m表征一个广播消息推送设备所能运行所述消息推送线程的最大个数;所述k表征根据一个所述设备信息文件所能存储所述设备ID的最大个数而确定的常数;所述
    Figure PCTCN2019117727-appb-100008
    根据所确定出的所述所需设备信息文件的个数,创建相应个数的所述设备信息文件。
    Wherein, the M characterizes the number of the required device information files; the x characterizes the number of the device IDs that are found in the database and is associated with the target APP; the X characterizes the number of device IDs associated with the target APP; The set number threshold; the m represents the maximum number of message push threads that can be run by a broadcast message push device; the k represents the maximum number of device IDs that can be stored according to one device information file A constant determined by the number;
    Figure PCTCN2019117727-appb-100008
    According to the determined number of the required device information files, a corresponding number of the device information files are created.
  19. 根据权利要求17所述的存储介质,所述处理器执行所述计算机可读指令时实现所述将查找到的各个所述设备ID存储到与所述目标APP相对应的至少一个设备信息文件中,包括:对查找到的各个所述设备ID的优先级进行统计,确定查找到的各个所述设备ID的优先级分布信息;根据所述优先级分布信息分别为每一个所述设备信息文件设置相对应的优先级文件占比;根据查找到的各个所述设备ID的优先级以及每一个所述设备信息文件对应的所述优先级文件占比,将查找到的各个所述设备ID存储到各个所述设备信息文件中,使得每一个所述设备信息文件中不同优先级的所述设备ID的占比符合相对应的所述优先级文件占比。The storage medium according to claim 17, wherein the processor executes the computer-readable instruction to store each of the device IDs found in at least one device information file corresponding to the target APP , Including: performing statistics on the priority of each of the device IDs found, and determining the priority distribution information of each of the device IDs found; setting the device information file separately according to the priority distribution information The proportion of corresponding priority files; according to the priority of each device ID found and the proportion of the priority file corresponding to each device information file, store each of the device IDs found in In each of the device information files, the proportion of the device IDs with different priorities in each of the device information files is made to conform to the proportion of the corresponding priority files.
  20. 根据权利要求17所述的存储介质,所述处理器执行所述计算机可读指令时实现在所述将查找到的各个所述设备ID存储到与所述目标APP相对应的至少一个设备信息文件中之后,进一步包括:每经过一个预先设定的更新周期,从所述数据库中查找与所述目标APP相关联的新增设备ID,其中,所述新增设备ID是在所述更新周期内新增到所述数据库中的设备ID;创建与所述目标APP相对应的至少一个新增设备信息文件;将查找到的各个所述新增设备ID存储到所述至少一个新增设备信息文件中。The storage medium according to claim 17, when the processor executes the computer-readable instructions, the processor stores each of the device IDs found in at least one device information file corresponding to the target APP. After the middle, it further includes: searching the database for the newly-added device ID associated with the target APP every time a preset update period has elapsed, wherein the newly-added device ID is within the update period Device ID added to the database; creating at least one new device information file corresponding to the target APP; storing each of the new device IDs found in the at least one new device information file in.
PCT/CN2019/117727 2019-03-11 2019-11-13 Application broadcast message push method, apparatus, and readable storage medium WO2020181812A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910182058.5A CN109889349B (en) 2019-03-11 2019-03-11 APP broadcast message pushing method and device and readable storage medium
CN201910182058.5 2019-03-11

Publications (1)

Publication Number Publication Date
WO2020181812A1 true WO2020181812A1 (en) 2020-09-17

Family

ID=66931648

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/117727 WO2020181812A1 (en) 2019-03-11 2019-11-13 Application broadcast message push method, apparatus, and readable storage medium

Country Status (2)

Country Link
CN (1) CN109889349B (en)
WO (1) WO2020181812A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109889349B (en) * 2019-03-11 2022-02-25 平安科技(深圳)有限公司 APP broadcast message pushing method and device and readable storage medium
CN114006939A (en) * 2021-11-03 2022-02-01 中国银行股份有限公司 Message pushing method and device
CN115623063A (en) * 2022-09-26 2023-01-17 北京奇艺世纪科技有限公司 Message pushing method, device, equipment and storage medium for full-scale equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130318114A1 (en) * 2012-05-13 2013-11-28 Harry E. Emerson, III Discovery of music artist and title by broadcast radio receivers
CN107135086A (en) * 2017-05-26 2017-09-05 努比亚技术有限公司 One kind broadcast method for pushing and equipment, computer-readable recording medium
CN107182054A (en) * 2017-07-07 2017-09-19 广州视源电子科技股份有限公司 Hotspot connection control method, device, equipment and computer-readable storage medium
CN109889349A (en) * 2019-03-11 2019-06-14 平安科技(深圳)有限公司 A kind of APP broadcast message method for pushing, device and readable storage medium storing program for executing

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105530108A (en) * 2016-02-04 2016-04-27 海信集团有限公司 Information push method and apparatus
CN106973109B (en) * 2017-03-31 2020-06-09 南京秦淮紫云创益企业服务有限公司 Broadcast message push control method and device
CN108881345B (en) * 2017-05-12 2020-12-01 国基电子(上海)有限公司 Message pushing method and routing equipment
CN108460115B (en) * 2018-02-10 2020-06-23 深圳壹账通智能科技有限公司 Message pushing method and device, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130318114A1 (en) * 2012-05-13 2013-11-28 Harry E. Emerson, III Discovery of music artist and title by broadcast radio receivers
CN107135086A (en) * 2017-05-26 2017-09-05 努比亚技术有限公司 One kind broadcast method for pushing and equipment, computer-readable recording medium
CN107182054A (en) * 2017-07-07 2017-09-19 广州视源电子科技股份有限公司 Hotspot connection control method, device, equipment and computer-readable storage medium
CN109889349A (en) * 2019-03-11 2019-06-14 平安科技(深圳)有限公司 A kind of APP broadcast message method for pushing, device and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN109889349A (en) 2019-06-14
CN109889349B (en) 2022-02-25

Similar Documents

Publication Publication Date Title
WO2020181812A1 (en) Application broadcast message push method, apparatus, and readable storage medium
CN108062367B (en) Data list uploading method and terminal thereof
JP6004299B2 (en) Method and apparatus for matching flow tables and switch
US20160267501A1 (en) Calculation method and apparatus for user retention ratio
CN104091287B (en) A kind of task implementation method and device based on data-driven
CN109766349B (en) Task duplicate prevention method, device, computer equipment and storage medium
CN110489417A (en) A kind of data processing method and relevant device
CN113347225B (en) OTA (over the air) upgrading method and server for terminal equipment of Internet of things
CN109271391A (en) Date storage method, server, storage medium and device
JP5396184B2 (en) Computer system and stream data distribution processing method using a plurality of computers
CN103516585A (en) Method and system for distributing messages according to priorities
CN110427386B (en) Data processing method, device and computer storage medium
WO2019085307A1 (en) Data sampling method, terminal, and device, and computer readable storage medium
CN105468707A (en) Cache-based data processing method and device
US20160094680A1 (en) Content Sharing Method and Social Synchronization Apparatus
CN104951509A (en) Big data online interactive query method and system
CN109299101B (en) Data retrieval method, device, server and storage medium
CN113132267B (en) Distributed system, data aggregation method and computer readable storage medium
CN113051460A (en) Elasticissearch-based data retrieval method and system, electronic device and storage medium
US20160156724A1 (en) Method, apparatus, and system for determining target user for service policy
CN104750718A (en) Data information search method and data information search device
CN110784336A (en) Multi-device intelligent timing delay scene setting method and system based on Internet of things
CN107277095B (en) Session segmentation method and device
CN101833585A (en) Database server operation control system, method and device
US10572486B2 (en) Data communication in a distributed data grid

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19918988

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19918988

Country of ref document: EP

Kind code of ref document: A1