CN109831484A - Electoral machinery, device, medium and the electronic equipment of the shared push SDK service of APP - Google Patents

Electoral machinery, device, medium and the electronic equipment of the shared push SDK service of APP Download PDF

Info

Publication number
CN109831484A
CN109831484A CN201811635900.8A CN201811635900A CN109831484A CN 109831484 A CN109831484 A CN 109831484A CN 201811635900 A CN201811635900 A CN 201811635900A CN 109831484 A CN109831484 A CN 109831484A
Authority
CN
China
Prior art keywords
app
main
list
sdk
push
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811635900.8A
Other languages
Chinese (zh)
Other versions
CN109831484B (en
Inventor
赵岘
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianjin ByteDance Technology Co Ltd
Original Assignee
Tianjin ByteDance Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianjin ByteDance Technology Co Ltd filed Critical Tianjin ByteDance Technology Co Ltd
Priority to CN201811635900.8A priority Critical patent/CN109831484B/en
Publication of CN109831484A publication Critical patent/CN109831484A/en
Application granted granted Critical
Publication of CN109831484B publication Critical patent/CN109831484B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

Present disclose provides a kind of electoral machinery of the shared push SDK service of APP, comprising: starts current APP, obtains the APP list for having accessed push SDK service;If list is empty by the APP, the current APP election is main APP;If the APP list is not sky, the election value of main APP in the current APP and the APP list is calculated;New main APP is elected according to the election value.The disclosure is by constructing a kind of electoral machinery that the shared push SDK of APP is serviced, the data characteristic of each application program itself is utilized, by way of constantly updating the main APP of iteration, elect a more efficient main APP, the push of all SDK services is realized by a main APP every time, election strategy is flexible and efficient, avoids each third-party application and falls over each other the drawbacks of push leads to ineffective systems, ensure that the high viability and high functionality of Push Service.

Description

Electoral machinery, device, medium and the electronic equipment of the shared push SDK service of APP
Technical field
This disclosure relates to field of computer technology, in particular to a kind of election side of the shared push SDK service of APP Method, device, medium and electronic equipment.
Background technique
With the development of development of Mobile Internet technology, the service of various business or non-commercial is more more and more universal, it is often necessary to logical It crosses system or third-party application carries out active push.
And Google's Push Service of Android platform receives castrating, no image of Buddha iOS platform equally provides stable push Service, therefore there are numerous third party's Push Services to push SDK.Push Service is all gone so as to cause numerous third-party applications, It fights separately, system operation cost is caused to increase, overall operation efficiency reduces, therefore, for push SDK under the premise of low-power consumption Push success rate and push channel survival rate are improved, currently without very good solution mode.
Summary of the invention
Electoral machinery, device, medium and the electronics for being designed to provide a kind of shared push SDK service of APP of the disclosure Equipment is able to solve at least one technical problem mentioned above.Concrete scheme is as follows:
According to the specific embodiment of the disclosure, in a first aspect, the disclosure provides, a kind of APP is shared to push what SDK was serviced Electoral machinery, comprising: start current APP, obtain the APP list for having accessed push SDK service;If list is empty by the APP, The current APP election is main APP;If the APP list is not sky, calculate main in the current APP and the APP list The election value of APP;New main APP is elected according to the election value.
Optionally, the election value for calculating main APP in the current APP and the APP list, comprising: described in acquisition Push SDK version, the weight of each SDK version and the duration of surviving daily of main APP in current APP and the APP list;According to Election value described in the SDK version, the weight of each SDK version and daily survival duration calculation.
Optionally, duration of surviving daily that the election value includes: election value=SDK version * SDK version weight+.
Optionally, the daily survival duration obtains in the following way: the survival information of oneself is write in current APP timing Enter to oneself queue;The survival information is sent to the main APP by the queue timing;The main APP by receiving daily To all survival informations calculate the daily survival duration of the current APP.
Optionally, the survival information is sent to after the main APP by the queue timing further include: the main APP The survival information is received, confirmation message is returned;If the current APP receives the confirmation message, survival letter is deleted Breath;If the current APP does not receive the confirmation message, continue next time to send the survival information.
Optionally, further includes: new main APP information is sent to all APP by the main APP;The new main APP starts The creation and maintenance of push channel.
According to the specific embodiment of the disclosure, second aspect, the disclosure provides a kind of shared push SDK service of APP Voting device, comprising: acquiring unit obtains the APP list for having accessed push SDK service for starting current APP;It calculates single Member, if list is empty for the APP, the current APP election is main APP;If the APP list is not sky, calculate The election value of main APP in the current APP and the APP list;Unit is elected, it is new for being elected according to the election value Main APP.
Optionally, the computing unit is also used to: obtaining the push of main APP in the current APP and the APP list SDK version, the weight of each SDK version and duration of surviving daily;According to the SDK version, the weight of each SDK version and every Election value described in day survival duration calculation.
According to the specific embodiment of the disclosure, the third aspect, the disclosure provides a kind of computer readable storage medium, On be stored with computer program, when described program is executed by processor realize as above described in any item methods.
According to the specific embodiment of the disclosure, fourth aspect, the disclosure provides a kind of electronic equipment, comprising: one or Multiple processors;Storage device, for storing one or more programs, when one or more of programs are by one or more When a processor executes, so that one or more of processors realize as above described in any item methods.
The above scheme of the embodiment of the present disclosure compared with prior art, at least has the advantages that the disclosure passes through The electoral machinery for constructing a kind of shared push SDK service of APP, is utilized the data characteristic of each application program itself, by continuous The mode for updating the main APP of iteration, elects a more efficient main APP, realizes all SDK services by a main APP every time Push, election strategy is flexible and efficient, avoids each third-party application and falls over each other the drawbacks of push leads to ineffective systems, ensure that The high viability and high functionality of Push Service.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.It should be evident that the accompanying drawings in the following description is only the disclosure Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.In the accompanying drawings:
Fig. 1 shows the electoral machinery step schematic diagram according to the shared push SDK service of the APP of the embodiment of the present disclosure;
Fig. 2 shows the electoral machinery flow charts serviced according to the shared push SDK of the APP of the embodiment of the present disclosure;
Fig. 3 shows the voting device structural schematic diagram of the shared push SDK service of APP according to an embodiment of the present disclosure;
Fig. 4 shows electronic equipment attachment structure schematic diagram according to an embodiment of the present disclosure.
Specific embodiment
In order to keep the purposes, technical schemes and advantages of the disclosure clearer, below in conjunction with attached drawing to the disclosure make into It is described in detail to one step, it is clear that described embodiment is only disclosure a part of the embodiment, rather than whole implementation Example.It is obtained by those of ordinary skill in the art without making creative efforts based on the embodiment in the disclosure All other embodiment belongs to the range of disclosure protection.
The term used in the embodiments of the present disclosure is only to be not intended to be limiting merely for for the purpose of describing particular embodiments The disclosure.In the embodiment of the present disclosure and the "an" of singular used in the attached claims, " described " and "the" It is also intended to including most forms, unless the context clearly indicates other meaning, " a variety of " generally comprise at least two.
It should be appreciated that term "and/or" used herein is only a kind of incidence relation for describing affiliated partner, indicate There may be three kinds of relationships, for example, A and/or B, can indicate: individualism A, exist simultaneously A and B, individualism B these three Situation.In addition, character "/" herein, typicallys represent the relationship that forward-backward correlation object is a kind of "or".
It will be appreciated that though may be described in the embodiments of the present disclosure using term first, second, third, etc.., But these ... it should not necessarily be limited by these terms.These terms be only used to by ... distinguish.For example, implementing not departing from the disclosure In the case where example range, first ... can also be referred to as second ..., and similarly, second ... can also be referred to as the One ....
Depending on context, word as used in this " if ", " if " can be construed to " ... when " or " when ... " or " in response to determination " or " in response to detection ".Similarly, context is depended on, phrase " if it is determined that " or " such as Fruit detection (condition or event of statement) " can be construed to " when determining " or " in response to determination " or " when detection (statement Condition or event) when " or " in response to detection (condition or event of statement) ".
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability Include, so that commodity or device including a series of elements not only include those elements, but also including not clear The other element listed, or further include for this commodity or the intrinsic element of device.In the feelings not limited more Under condition, the element that is limited by sentence "including a ...", it is not excluded that in the commodity or device for including the element also There are other identical elements.
The alternative embodiment of the disclosure is described in detail with reference to the accompanying drawing.
Embodiment 1
As shown in Figs. 1-2, present disclose provides a kind of electoral machinery of the shared push SDK service of APP, it is applied to any one Kind mobile terminal specifically comprises the following steps: especially for the mobile terminal under Android platform
Step S102: starting current APP, obtains the APP list for having accessed push SDK service.
Push Service also starts therewith when App starts, and when starting initiates network request, obtains this equipment and (usually moves Terminal) in carried or accessed push SDK APP list, and obtain push each version of SDK weight.The APP list is logical It is often already present on before current APP, all APP generally include the identity informations such as title, type.
Step S104: if list is empty by the APP, the current APP election is main APP.
At this time, it may be necessary to go inquire in current APP list whether have existed at least one APP by system, if worked as There is no APP in preceding list, i.e., current APP is first APP, then directly elect the current APP for main APP, currently by this APP, that is, main APP carries out push channel creation and maintenance.
Step S106: if the APP list is not sky, main APP in the current APP and the APP list is calculated Election value.
If network request returns the result display, there are other App to access push SDK, i.e., exist at least in current APP list One APP, then need the operation that conducts an election, it is assumed that all APP in APP list before use this method, have elected One main APP carries out push channel creation and maintenance, then calculates the election of main APP in the current APP and the APP list Value.
Specifically, calculating the election value of main APP in the current APP and the APP list, include the following steps:
Step S1062: push SDK version, each SDK version of main APP in the current APP and the APP list are obtained Weight and duration of surviving daily.
The disclosure obtains the mode of the version of push SDK are as follows:
When each APP starting Push Service, server-side can be gone to obtain the calculating of each version SDK information and each version SDK Weight.It is 2 that for example the SDK weight of 3.5 versions, which is the SDK weight of 3,3.3 versions, then the version entirety weight of 3.5 versions is 3.5x3=10.5, and the whole weight of 3.3 versions is 3.3x2=6.6.
Optionally, the daily survival duration obtains in the following way: the survival information of oneself is write in current APP timing Enter to oneself queue;The survival information is sent to the main APP by the queue timing;The main APP by receiving daily To all survival informations calculate the daily survival duration of the current APP.
Optionally, the survival information is sent to after the main APP by the queue timing further include: the main APP The survival information is received, confirmation message is returned;If the current APP receives the confirmation message, survival letter is deleted Breath;If the current APP does not receive the confirmation message, continue next time to send the survival information.
A kind of specific example is as follows:
The push SDK that each APP is carried can when a Push Service is opened on backstage, and APP is survived then Push Service Survival.Open a timer in APP (subsequent be known as small A) Push Service, the effect of timer is (such as 30 points of timing Clock) survival information of oneself is written in a queue, and queue is responsible for survival information passing through starting service (startService) system calling is sent to main App (subsequent to be known as small B).
If small B has received this information, the message for returning to " sending successfully " receives the information of " sending successfully " to small A, small A Delete the message of transmission in the queue afterwards.If small B does not receive this message, small A can not receive always disappearing for " sending successfully " Breath, again attempts to send then sending past message always present in when in queue, waiting next timers trigger.
The message for numerous small A that small B is received, can preserve, and the survival duration of each App is calculated with this.
Step S1064: according to the SDK version A, the weight B of each SDK version and daily survival duration C calculating Election value level.
Optionally, the election value includes: that election value level=SDK version A*SDK version weight B+ is survived duration daily C。
Step S108: new main APP is elected according to the election value, is named as D.
Optionally, further include following steps:
New main APP information is sent to all APP by step S110: the main APP.
Step S112: the new main APP starts the creation and maintenance of push channel.
As above, the main APP elected before is according to the daily survival of level=SDK version * SDK version weight+APP Duration calculates the highest APP of level, and after calculating the highest APP of level, main APP is notified that all APP " highests The APP of Level is D, and main App later is D ".
" APP of highest Level is D to the highest App of level, after main APP later is the message of D ", just receiving The groundwork for completing election with main APP handover is carried out the creation and maintenance of push channel by the highest APP of this level.
Each application program itself is utilized by constructing a kind of electoral machinery that the shared push SDK of APP is serviced in the disclosure Data characteristic elects a more efficient main APP, every time by a main APP by way of constantly updating the main APP of iteration Realize the push of all SDK service, election strategy is flexible and efficient, and avoiding each third-party application and falling over each other push leads to system effectiveness Low drawback ensure that the high viability and high functionality of Push Service.
Embodiment 2
As Figure 2-3, according to the specific embodiment of the disclosure, second aspect, the disclosure provides that a kind of APP is shared to be pushed away The voting device for sending SDK to service is applied to any mobile terminal, especially for the mobile terminal under Android platform, Specifically include: acquiring unit 302, computing unit 304 elect unit 306.
Acquiring unit 302: for starting current APP, the APP list for having accessed push SDK service is obtained.
Push Service also starts therewith when APP starts, and when starting initiates network request, obtains this equipment and (usually moves Terminal) in carried or accessed push SDK APP list, and obtain push each version of SDK weight.The APP list is logical It is often already present on before current APP, all APP generally include the identity informations such as title, type.
Computing unit 304, if list is empty for the APP, the current APP election is main APP.If the APP List is not sky, then calculates the election value of main APP in the current APP and the APP list.
At this time, it may be necessary to go inquire in current APP list whether have existed at least one APP by system, if worked as There is no APP in preceding list, i.e., current APP is first APP, then directly elect the current APP for main APP, currently by this APP, that is, main APP carries out push channel creation and maintenance.
If network request returns the result display, there are other APP to access push SDK, i.e., exist at least in current APP list One APP, then need the operation that conducts an election, it is assumed that all APP in APP list before use this method, have elected One main APP carries out push channel creation and maintenance, then calculates the election of main APP in the current APP and the APP list Value.
Specifically, calculating the election value of main APP in the current APP and the APP list, comprising:
The first step, push the SDK version, the power of each SDK version for obtaining main APP in the current APP and the APP list Weight and duration of surviving daily.
The disclosure obtains the mode of the version of push SDK are as follows:
When each APP starting Push Service, server-side can be gone to obtain the calculating of each version SDK information and each version SDK Weight.It is 2 that for example the SDK weight of 3.5 versions, which is the SDK weight of 3,3.3 versions, then the version entirety weight of 3.5 versions is 3.5x3=10.5, and the whole weight of 3.3 versions is 3.3x2=6.6.
Optionally, the daily survival duration obtains in the following way: the survival information of oneself is write in current APP timing Enter to oneself queue;The survival information is sent to the main APP by the queue timing;The main APP by receiving daily To all survival informations calculate the daily survival duration of the current APP.
Optionally, the survival information is sent to after the main APP by the queue timing further include: the main APP The survival information is received, confirmation message is returned;If the current APP receives the confirmation message, survival letter is deleted Breath;If the current APP does not receive the confirmation message, continue next time to send the survival information.
A kind of specific example is as follows:
The push SDK that each APP is carried can when a Push Service is opened on backstage, and APP is survived then Push Service Survival.Open a timer in APP (subsequent be known as small A) Push Service, the effect of timer is (such as 30 points of timing Clock) survival information of oneself is written in a queue, and queue is responsible for survival information passing through starting service (startService) system calling is sent to main APP (subsequent to be known as small B).
If small B has received this information, the message for returning to " sending successfully " receives the information of " sending successfully " to small A, small A Delete the message of transmission in the queue afterwards.If small B does not receive this message, small A can not receive always disappearing for " sending successfully " Breath, again attempts to send then sending past message always present in when in queue, waiting next timers trigger.
The message for numerous small A that small B is received, can preserve, and the survival duration of each APP is calculated with this.
Second step, the election value according to the SDK version, the weight of each SDK version and daily survival duration calculation.
Optionally, the election value includes: that election value level=SDK version A*SDK version weight B+ is survived duration daily C。
Elect unit 308: for electing new main APP according to the election value.
Optionally, further includes: new main APP information is sent to all APP by the main APP.The new main APP starts The creation and maintenance of push channel.
As above, the main APP elected before is according to the daily survival of level=SDK version * SDK version weight+APP Duration calculates the highest APP of level, and after calculating the highest APP of level, main APP is notified that all APP " highests The APP of Level is D, and main APP later is D ".
" APP of highest Level is D to the highest APP of level, after main APP later is the message of D ", just receiving The groundwork for completing election with main APP handover is carried out the creation and maintenance of push channel by the highest APP of this level.
Each application program itself is utilized by constructing a kind of voting device that the shared push SDK of APP is serviced in the disclosure Data characteristic elects a more efficient main APP, every time by a main APP by way of constantly updating the main APP of iteration Realize the push of all SDK service, election strategy is flexible and efficient, and avoiding each third-party application and falling over each other push leads to system effectiveness Low drawback ensure that the high viability and high functionality of Push Service.
Embodiment 3
As shown in figure 4, the equipment is for a kind of shared push SDK service of APP the present embodiment provides a kind of electronic equipment Electoral machinery, the electronic equipment, comprising: at least one processor;And connect at least one described processor communication Memory;Wherein,
The memory is stored with the instruction that can be executed by one processor, and described instruction is by described at least one Device is managed to execute so that at least one described processor can: start current APP, obtain the APP column for having accessed push SDK service Table;If list is empty by the APP, the current APP election is main APP;If the APP list be not it is empty, calculate described in The election value of main APP in current APP and the APP list;New main APP is elected according to the election value.
Optionally, the election value for calculating main APP in the current APP and the APP list, comprising: described in acquisition Push SDK version, the weight of each SDK version and the duration of surviving daily of main APP in current APP and the APP list;According to Election value described in the SDK version, the weight of each SDK version and daily survival duration calculation.
Optionally, duration of surviving daily that the election value includes: election value=SDK version * SDK version weight+.
Optionally, the daily survival duration obtains in the following way: the survival information of oneself is write in current APP timing Enter to oneself queue;The survival information is sent to the main APP by the queue timing;The main APP by receiving daily To all survival informations calculate the daily survival duration of the current APP.
Optionally, the survival information is sent to after the main APP by the queue timing further include: the main APP The survival information is received, confirmation message is returned;If the current APP receives the confirmation message, survival letter is deleted Breath;If the current APP does not receive the confirmation message, continue next time to send the survival information.
Optionally, further includes: new main APP information is sent to all APP by the main APP;The new main APP starts The creation and maintenance of push channel.
Embodiment 4
The embodiment of the present disclosure provides a kind of nonvolatile computer storage media, and the computer storage medium is stored with The shared push SDK of the APP in above-mentioned any means embodiment can be performed in computer executable instructions, the computer executable instructions The electoral machinery of service.
Embodiment 5
Below with reference to Fig. 4, it illustrates the structural representations for the electronic equipment 400 for being suitable for being used to realize the embodiment of the present disclosure Figure.Terminal device in the embodiment of the present disclosure can include but is not limited to such as mobile phone, laptop, digital broadcasting and connect Receive device, PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), car-mounted terminal (such as vehicle Carry navigation terminal) etc. mobile terminal and such as number TV, desktop computer etc. fixed terminal.Electricity shown in Fig. 4 Sub- equipment is only an example, should not function to the embodiment of the present disclosure and use scope bring any restrictions.
As shown in figure 4, electronic equipment 400 may include processing unit (such as central processing unit, graphics processor etc.) 401, random access can be loaded into according to the program being stored in read-only memory (ROM) 402 or from storage device 408 Program in memory (RAM) 403 and execute various movements appropriate and processing.In RAM 403, it is also stored with electronic equipment Various programs and data needed for 400 operations.Processing unit 401, ROM 402 and RAM 403 pass through the phase each other of bus 404 Even.Input/output (I/O) interface 405 is also connected to bus 404.
In general, following device can connect to I/O interface 405: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph As the input unit 406 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration The output device 407 of dynamic device etc.;Storage device 408 including such as tape, hard disk etc.;And communication device 409.Communication device 409, which can permit electronic equipment 400, is wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Fig. 4 shows tool There is the electronic equipment 400 of various devices, it should be understood that being not required for implementing or having all devices shown.It can be with Alternatively implement or have more or fewer devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communication device 409, or from storage device 408 It is mounted, or is mounted from ROM 402.When the computer program is executed by processing unit 401, the embodiment of the present disclosure is executed Method in the above-mentioned function that limits.
It should be noted that the above-mentioned computer-readable medium of the disclosure can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In open, computer-readable signal media may include in a base band or as the data-signal that carrier wave a part is propagated, In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable and deposit Any computer-readable medium other than storage media, the computer-readable signal media can send, propagate or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: electric wire, optical cable, RF (radio frequency) etc. are above-mentioned Any appropriate combination.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not It is fitted into the electronic equipment.
Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are by the electricity When sub- equipment executes, so that the electronic equipment: obtaining at least two internet protocol addresses;Send to Node evaluation equipment includes institute State the Node evaluation request of at least two internet protocol addresses, wherein the Node evaluation equipment is internet from described at least two In protocol address, chooses internet protocol address and return;Receive the internet protocol address that the Node evaluation equipment returns;Its In, the fringe node in acquired internet protocol address instruction content distributing network.
Alternatively, above-mentioned computer-readable medium carries one or more program, when said one or multiple programs When being executed by the electronic equipment, so that the electronic equipment: receiving the Node evaluation including at least two internet protocol addresses and request; From at least two internet protocol address, internet protocol address is chosen;Return to the internet protocol address selected;Wherein, The fringe node in internet protocol address instruction content distributing network received.
The calculating of the operation for executing the disclosure can be write with one or more programming languages or combinations thereof Machine program code, above procedure design language include object oriented program language-such as Java, Smalltalk, C+ +, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code can Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package, Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part. In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN) Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service Provider is connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present disclosure can be realized by way of software, can also be by hard The mode of part is realized.Wherein, the title of unit does not constitute the restriction to the unit itself under certain conditions, for example, the One acquiring unit is also described as " obtaining the unit of at least two internet protocol addresses ".

Claims (10)

1. a kind of electoral machinery of the shared push SDK service of APP characterized by comprising
Start current APP, obtains the APP list for having accessed push SDK service;
If list is empty by the APP, the current APP election is main APP;
If the APP list is not sky, the election value of main APP in the current APP and the APP list is calculated;
New main APP is elected according to the election value.
2. the method according to claim 1, wherein main in the calculating current APP and the APP list The election value of APP, comprising:
Obtain the push SDK version of main APP in the current APP and the APP list, the weight of each SDK version and daily Survival duration;
According to election value described in the SDK version, the weight of each SDK version and daily survival duration calculation.
3. according to the method described in claim 2, it is characterized in that, the election value includes:
Election value=SDK version * SDK version weight+duration of surviving daily.
4. according to the method described in claim 2, it is characterized in that, the daily survival duration obtains in the following way:
The survival information of oneself is written to oneself queue by current APP timing;
The survival information is sent to the main APP by the queue timing;
The main APP passes through the daily survival duration that all survival informations received daily calculate the current APP.
5. according to the method described in claim 4, it is characterized in that, the queue timing survival information is sent to it is described After main APP further include:
The main APP receives the survival information, returns to confirmation message;
If the current APP receives the confirmation message, the survival information is deleted;
If the current APP does not receive the confirmation message, continue next time to send the survival information.
6. -5 any method according to claim 1, which is characterized in that further include:
New main APP information is sent to all APP by the main APP;
The new main APP starts the creation and maintenance of push channel.
7. a kind of voting device of the shared push SDK service of APP characterized by comprising
Acquiring unit obtains the APP list for having accessed push SDK service for starting current APP;
Computing unit, if list is empty for the APP, the current APP election is main APP;If the APP list is not Sky then calculates the election value of main APP in the current APP and the APP list;
Unit is elected, for electing new main APP according to the election value.
8. device according to claim 7, which is characterized in that the computing unit is also used to:
Obtain the push SDK version of main APP in the current APP and the APP list, the weight of each SDK version and daily Survival duration;
According to election value described in the SDK version, the weight of each SDK version and daily survival duration calculation.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that described program is by processor Such as method described in any one of claims 1 to 6 is realized when execution.
10. a kind of electronic equipment characterized by comprising
One or more processors;
Storage device, for storing one or more programs, when one or more of programs are by one or more of processing When device executes, so that one or more of processors realize such as method described in any one of claims 1 to 6.
CN201811635900.8A 2018-12-29 2018-12-29 Election method, device, medium and electronic equipment for APP (application) sharing pushing SDK (software development kit) service Active CN109831484B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811635900.8A CN109831484B (en) 2018-12-29 2018-12-29 Election method, device, medium and electronic equipment for APP (application) sharing pushing SDK (software development kit) service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811635900.8A CN109831484B (en) 2018-12-29 2018-12-29 Election method, device, medium and electronic equipment for APP (application) sharing pushing SDK (software development kit) service

Publications (2)

Publication Number Publication Date
CN109831484A true CN109831484A (en) 2019-05-31
CN109831484B CN109831484B (en) 2022-04-22

Family

ID=66860075

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811635900.8A Active CN109831484B (en) 2018-12-29 2018-12-29 Election method, device, medium and electronic equipment for APP (application) sharing pushing SDK (software development kit) service

Country Status (1)

Country Link
CN (1) CN109831484B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105871981A (en) * 2015-11-30 2016-08-17 乐视致新电子科技(天津)有限公司 Pushing service implementation method, pushing service implementation device, terminal equipment and system
CN106022110A (en) * 2016-05-18 2016-10-12 广东欧珀移动通信有限公司 Method and device for identifying application of pushing platform
CN106412104A (en) * 2016-10-28 2017-02-15 努比亚技术有限公司 Application message pushing device and method
CN107332880A (en) * 2017-06-05 2017-11-07 深圳市酷开网络科技有限公司 Method, device and computer-readable recording medium that information is pushed
CN107343311A (en) * 2017-06-19 2017-11-10 北京小米移动软件有限公司 Push control method and device
US20170330195A1 (en) * 2016-05-13 2017-11-16 Sap Se Integrated service support tool across multiple applications
US20180018675A1 (en) * 2016-07-14 2018-01-18 International Business Machines Corporation Assessing penalties for sdks that violate policies in mobile apps
CN108228361A (en) * 2017-11-24 2018-06-29 五八有限公司 A kind of information push method, terminal and computer readable storage medium
CN108390910A (en) * 2018-01-17 2018-08-10 吉浦斯信息咨询(深圳)有限公司 A kind of electricity saving method, device and the computer-readable medium of push SDK

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105871981A (en) * 2015-11-30 2016-08-17 乐视致新电子科技(天津)有限公司 Pushing service implementation method, pushing service implementation device, terminal equipment and system
US20170330195A1 (en) * 2016-05-13 2017-11-16 Sap Se Integrated service support tool across multiple applications
CN106022110A (en) * 2016-05-18 2016-10-12 广东欧珀移动通信有限公司 Method and device for identifying application of pushing platform
US20180018675A1 (en) * 2016-07-14 2018-01-18 International Business Machines Corporation Assessing penalties for sdks that violate policies in mobile apps
CN106412104A (en) * 2016-10-28 2017-02-15 努比亚技术有限公司 Application message pushing device and method
CN107332880A (en) * 2017-06-05 2017-11-07 深圳市酷开网络科技有限公司 Method, device and computer-readable recording medium that information is pushed
CN107343311A (en) * 2017-06-19 2017-11-10 北京小米移动软件有限公司 Push control method and device
CN108228361A (en) * 2017-11-24 2018-06-29 五八有限公司 A kind of information push method, terminal and computer readable storage medium
CN108390910A (en) * 2018-01-17 2018-08-10 吉浦斯信息咨询(深圳)有限公司 A kind of electricity saving method, device and the computer-readable medium of push SDK

Also Published As

Publication number Publication date
CN109831484B (en) 2022-04-22

Similar Documents

Publication Publication Date Title
CN106454720B (en) Method for managing geo-fence and electronic device thereof
CN105357638B (en) The method and apparatus for predicting the user location of predetermined instant
CN110083660A (en) A kind of method, apparatus of synchrodata, medium and electronic equipment
US20170249934A1 (en) Electronic device and method for operating the same
CN105392150A (en) beacon managing method, terminal equipment, server and storage medium
CN105103185A (en) Routine deviation notification
CN102934413A (en) Smartphone management system and method
CN106445063B (en) Method for managing application and electronic equipment thereof
CN105389325A (en) Content search method and electronic device implementing same
CN108605261B (en) Electronic device and operation method thereof
CN110362750B (en) Target user determination method, device, electronic equipment and computer readable medium
US9538248B2 (en) Method for sharing broadcast channel information and electronic device thereof
CN110266505A (en) A kind of method and apparatus managing session group
CN111466125A (en) Service pushing method and terminal
CN111309415A (en) UI (user interface) information processing method and device of application program and electronic equipment
CN110286928A (en) Interface element update method, device, electronic equipment and the storage medium of application program
CN109727061A (en) A kind of advertisement sending method and data management platform
CN110460647B (en) Network node scheduling method and device, electronic equipment and storage medium
CN111309496A (en) Method, system, device, equipment and storage medium for realizing delay task
CN110135903A (en) Advertisement position ranks method, system, medium and electronic equipment
CN112835632A (en) Method and device for calling end capability and computer storage medium
CN109409947A (en) A kind of client-based resident trip survey method
CN109697034A (en) A kind of method for writing data, device, electronic equipment and storage medium
WO2019128269A1 (en) Alert method and device
CN111798251A (en) Verification method and device of house source data and electronic equipment

Legal Events

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