CN109218393A - A kind of implementation method of push, device, equipment and computer storage medium - Google Patents
A kind of implementation method of push, device, equipment and computer storage medium Download PDFInfo
- Publication number
- CN109218393A CN109218393A CN201810816598.XA CN201810816598A CN109218393A CN 109218393 A CN109218393 A CN 109218393A CN 201810816598 A CN201810816598 A CN 201810816598A CN 109218393 A CN109218393 A CN 109218393A
- Authority
- CN
- China
- Prior art keywords
- push
- sdk
- host
- server end
- terminal device
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
Abstract
The present invention provides a kind of implementation method of push, in host's application execution, which comprises host, which applies, is sent to first server end for the attribute information of terminal device;Receive the pushing software development kit SDK corresponding with the attribute information of the terminal device that the first server end is sent;It loads and runs the push SDK;Service data is received from second server end by the push SDK.The present invention provides a kind of implementation method of push, it is executed in server end, the described method includes: first server end receives the attribute information for the terminal device that host's application is sent, and after obtaining corresponding push SDK according to the attribute information of the terminal device, the push SDK is sent to the host and is applied;Second server end obtains service data, and the service data is sent to the host by push channel and is applied.The present invention can reduce increase of the push SDK to host's application installation package size.
Description
[technical field]
The present invention relates to computer application technology more particularly to a kind of implementation method of push, device, equipment and meters
Calculation machine storage medium.
[background technique]
In development and application program, especially under Android (Android) operating system when development and application program, in order to
Enough make application program that can use the push ability of high priority provided by manufacturer on the terminal device of different vendor, usually
The push SDK (Software Development Kit, Software Development Kit) of multiple manufacturers can be integrated in the application.
And in actual moving process, since a terminal device can not be produced by multiple manufacturers simultaneously, same terminal device
The push SDK that a manufacturer is at most only had in the application program of middle operation comes into force.Therefore, in the prior art in the application
The mode for integrating the push SDK of multiple manufacturers, can make the installation kit of application program excessive.
[summary of the invention]
The present invention provides a kind of implementation method of push, device, equipment and computer storage mediums, for reducing push
Increase of the SDK to host's application installation package size.
The present invention in order to solve the technical problem used by technical solution be to provide the implementation method of push a kind of, answered in host
With execution, which comprises host, which applies, is sent to first server end for the attribute information of terminal device;Receive described
The pushing software development kit SDK corresponding with the attribute information of the terminal device that one server end is sent;It loads and transports
The row push SDK;Service data is received from second server end by the push SDK.
According to one preferred embodiment of the present invention, the attribute information of the terminal device include: terminal device type information,
At least one of the manufacturer's information of terminal device or the information of identification code of terminal device.
According to one preferred embodiment of the present invention, the group to need to register in push SDK is applied the method also includes: host
Part provides component of the same name and registers as Agent components, and in advance to Agent components;Made by the Agent components described
SDK is pushed to operate normally.
According to one preferred embodiment of the present invention, described to make the push SDK normal operation include: by the Agent components
Host's application obtains the life cycle events that operating system calls Agent components;By Agent components according to the life cycle events
The life cycle methodology for calling corresponding actual component in the push SDK, so that the push SDK is operated normally.
According to one preferred embodiment of the present invention, conquering business data from second server termination by the push SDK includes:
Host, which applies, establishes push channel by the push SDK and the second service end;It is taken by the push channel from second
Business device end receives service data.
According to one preferred embodiment of the present invention, the service data includes transparent transmission message;This method further include: to described
After the notification bar appearance progress consistency treatment for passing message, the transparent transmission message is shown.
The present invention in order to solve the technical problem used by technical solution be to provide the implementation method of push a kind of, in server
End executes, which comprises first server end receives the attribute information for the terminal device that host's application is sent, and in basis
After the attribute information of the terminal device obtains corresponding push SDK, the push SDK is sent to the host and is answered
With;Second server end obtains service data, and the service data is sent to the host and is applied.
According to one preferred embodiment of the present invention, the attribute information according to the terminal device obtains corresponding push away
Sending SDK includes: the corresponding relationship of the attribute information and push SDK of first server end terminal device according to the pre-stored data, really
It is fixed with the corresponding push SDK of the attribute information of received terminal device.
According to one preferred embodiment of the present invention, the service data is sent to host's application includes: second service
The attribute information of device end terminal device according to the pre-stored data and the corresponding relationship of push channel, determining and host application pair
The push channel answered;Service data is sent to host application according to identified push channel.
According to one preferred embodiment of the present invention, the method also includes: second server end disappears acquired notification bar
Breath is translated as transparent transmission message;The transparent transmission message that translation obtains is sent to the host by push channel to apply.
The present invention in order to solve the technical problem used by technical solution be to provide the realization device of push a kind of, be located at host
In, described device includes: the first transmission unit, for the attribute information of terminal device to be sent to first server end;
First receiving unit, the push corresponding with the attribute information of the terminal device sent for receiving the first server end
Software Development Kit SDK;Processing unit, for loading and running the push SDK;Second receiving unit, for passing through
It states push SDK and receives service data from second server end.
According to one preferred embodiment of the present invention, the processing unit is also used to execute: for the group for needing to register in push SDK
Part provides component of the same name and registers as Agent components, and in advance to Agent components;Made by the Agent components described
SDK is pushed to operate normally.
According to one preferred embodiment of the present invention, the processing unit keeps the push SDK normal by the Agent components
It is specific to execute when operation: to obtain the life cycle events that operating system calls Agent components;By Agent components according to the life
Periodic event calls the life cycle methodology of corresponding actual component in the push SDK, so that the push SDK is normally transported
Row.
According to one preferred embodiment of the present invention, second receiving unit passes through the push SDK from second server end
It is specific to execute when receiving service data: push channel is established by the push SDK and the second service end;By described
Push channel receives service data from second server end.
According to one preferred embodiment of the present invention, the service data includes transparent transmission message;Second receiving unit is also used
In execution: after carrying out consistency treatment to the notification bar appearance of the transparent transmission message, showing the transparent transmission message.
The present invention in order to solve the technical problem used by technical solution be to provide the realization device of push a kind of, be located at service
In device end, described device includes: the second transmission unit, receives the terminal device that host's application is sent for first server end
Attribute information, and after obtaining corresponding push SDK according to the attribute information of the terminal device, by the push SDK
It is sent to host's application;Third transmission unit obtains service data for second server end, and by the service data
It is sent to host's application.
According to one preferred embodiment of the present invention, second transmission unit is obtained according to the attribute information of the terminal device
It is specific to execute when corresponding push SDK: the attribute information of terminal device according to the pre-stored data with push the corresponding of SDK
Relationship, determine with the corresponding push SDK of the attribute information of received terminal device.
According to one preferred embodiment of the present invention, the service data is sent to the host and answered by the third transmission unit
It is used time, specific to execute: the attribute information of terminal device according to the pre-stored data and the corresponding relationship of push channel, it is determining with it is described
Host applies corresponding push channel;Service data is sent to host application according to identified push channel.
As can be seen from the above technical solutions, the attribute information for the terminal device that the present invention is obtained by host's application, is moved
Push SDK is obtained to state from server end, after loading and running acquired push SDK, just can receive corresponding service number
According to, it avoids and integrates multiple push SDK in host's application, increasing of the realization reduction push SDK to host's application installation package size
The purpose added.
[Detailed description of the invention]
Fig. 1 is the method flow diagram realized in the push of host's application execution that one embodiment of the invention provides;
Fig. 2 is the method flow diagram that the push executed in server end that one embodiment of the invention provides is realized;
Fig. 3 is the structure drawing of device realized in the push of host's application execution that one embodiment of the invention provides;
Fig. 4 is the structure drawing of device that the push executed in server end that one embodiment of the invention provides is realized;
Fig. 5 is the block diagram for the computer system/server that one embodiment of the invention provides.
[specific embodiment]
To make the objectives, technical solutions, and advantages of the present invention clearer, right in the following with reference to the drawings and specific embodiments
The present invention is described in detail.
The term used in embodiments of the present invention is only to be not intended to be limiting merely for for the purpose of describing particular embodiments
The present invention.In the embodiment of the present invention 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.
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".
Depending on context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determination " or " in response to detection ".Similarly, depend on context, phrase " if it is determined that " or " if detection
(condition or event of statement) " can be construed to " when determining " or " in response to determination " or " when the detection (condition of statement
Or event) when " or " in response to detection (condition or event of statement) ".
Fig. 1 is a kind of implementation method for push that one embodiment of the invention provides, and is executed in host's application, as shown in figure 1
It is shown, which comprises
In 101, host, which applies, is sent to first server end for the attribute information of terminal device.
In this step, host's application obtains the attribute information of terminal device first, then by acquired terminal device
Attribute information be sent to first server end.
Specifically, the attribute information of terminal device may include manufacturer's letter of the type information of terminal device, terminal device
At least one of breath, information of identification code etc. of terminal device.Acquired attribute information is used to determine at first server end
Corresponding push SDK.In addition, the terminal device in the present invention can be operation android operating system or ios operation system
Smart phone, tablet computer, smart home device, wearable device of system etc., the present invention is to run Android operation system
Terminal device for be illustrated.
It is understood that the present invention can be realized by a SDK being integrated in host's application.That is,
The prior art is the push SDK for integrating each manufacturer in advance in host's application;And in the present invention, host's application is not preparatory
The push SDK of integrated manufacturer, but integrate SDK provided by the present invention.
That is, the present invention host apply in integrate SDK and do not include corn module, corn module
Be from server end dynamically load in a manner of plug-in unit SDK, therefore in the present invention by plug-in unit SDK be known as push SDK.Its
In, corn module includes at least: push management module, push function module, push function module, which still further comprises, to be opened
Dynamic model block, data channel module and message event distribution module etc..
In addition, before applying the attribute information for sending terminal device to first server end in host, it can also be further
Include: that host's application determines local with the presence or absence of push SDK, if it does not exist, then the attribute information of terminal device is sent to the
One server end;If local have push SDK, the push SDK of local push SDK and first server end are subjected to version
Compare, if there are new versions by the push SDK at first server end, the attribute letter of terminal device is sent to first server end
It ceases to obtain the push SDK of latest edition;If new version is not present in the push SDK at first server end, terminate this implementation
The process of example.
In 102, the push corresponding with the attribute information of the terminal device that the first server end is sent is received
Software Development Kit SDK.
In this step, it after the attribute information of terminal device is sent to first server end by step 101, receives by first
Corresponding with the attribute information of terminal device push SDK (Software Development Kit, the software that server end returns
Development kit).Wherein, host application institute it is received push SDK for counterpart terminal equipment manufacturer push SDK.In addition, place
Main application is the compressed package for pushing SDK by the push SDK that this step is obtained from first server end, includes pushing away in the compressed package
Send the corn module of SDK.
In 103, loads and run the push SDK.
In this step, then host passes through Agent components using loading to push SDK acquired in step 102
So that push SDK is operated normally.
In host's application load before the push SDK that first server end obtains, it may further comprise: to push SDK
In file carry out safety inspection, such as carry out MD5 verification, signature than equity, to guarantee the safety of downloaded file.Such as
Fruit then loads push SDK by safety inspection, otherwise without load.
Specifically, host applies when load pushes SDK, can be in the following manner: will push the jar in SDK first
File is converted into dex file, and dex file is then loaded by ClassLoader, to realize host's application load push
SDK。
Above-mentioned dex file is the executable file of Android system, the instruction of all operationss comprising application program and
Runtime data.So file is dynamic library file, is a kind of binary file.
Conventionally, as host's application is integrated with the push SDK of manufacturer in advance, therefore being capable of pushing away for manufacturer
The component integrated in SDK is sent to be registered in advance.And in the present invention, since the push SDK of manufacturer is from cloud dynamic acquisition
, thus the component that can not be integrated in the push SDK to manufacturer carry out it is registered in advance, when can not collect in the push SDK to manufacturer
At component registered when, the push SDK that will lead to loaded manufacturer is unable to operate normally.
Therefore, the present invention makes to push SDK normal operation by Agent components provided in host's application.Wherein, it acts on behalf of
Component is that host applies for component of the same name provided by the component integrated in push SDK, and carries out in advance to Agent components
Registration.
This step, can be in the following ways when making to push SDK normal operation by Agent components: host's application obtains
The life cycle events of operating system calling Agent components;By Agent components according to right in life cycle events calling push SDK
The life cycle methodology for the actual component answered, so that push SDK is operated normally.Operating system is called into Agent components
Life cycle methodology passes to the actual component in push SDK, is equivalent to operating system and calls directly in push SDK practical group
The life cycle methodology of part, so that it is guaranteed that the push SDK to dynamically load can be operated normally.
Wherein, push the component registered of needs integrated in SDK include Activity component, Service component,
Broadcast Receiver component and Content Provider component.And the life cycle methodology of component is each component institute
Corresponding functional based method, such as the life cycle methodology of Service component is the functions such as onCreat, onDestroy, onBind
Method, the life cycle methodology of Activity component are as follows: the functional based methods such as onCreat, onStart, onPause.
In load push SDK and after to push SDK normal operation, host's application just establishes the company with push channel
It connects, so that service data can be received by the push channel established.
In 104, service data is received from second server end by the push SDK.
In this step, host applies the push SDK by operating normally in step 103, receives by second server end
The service data of transmission, and be shown.Wherein, host includes using the service data for receiving and showing from second server end
One of notification bar message and transparent transmission message.
It, can be in the following ways: host when host is using service data is received from second server end by push SDK
Push channel is established using by push SDK and second server end;Second server is received by the push channel established
Hold the service data sent.Wherein, host is for counterpart terminal equipment using the push channel established with second server end
The push channel of irrespective of size, even if can also receive corresponding service data when host's application is in close state.
For example, if the terminal device where host applies is millet mobile phone, the push SDK obtained from first server end
It, just can be with the after host's application loads and the push SDK of millet equipment is operated normally for the push SDK of millet equipment
Two server ends establish the system-level push channel of millet equipment.
When host's application receives the transparent transmission message of second server end transmission, host's application pair may further comprise:
Transparent transmission message carries out the consistency treatment of notification bar appearance, so that host applies what is shown in different vendor's equipment to push away
Send message consistent notification bar appearance.It is therefore not necessary to show that push disappears for different vendor's equipment by application developer
The notification bar appearance of breath is adapted to, to promote pushing efficiency.
Fig. 2 is a kind of implementation method for push that one embodiment of the invention provides, and is executed in server end, in Fig. 2
It is shown, which comprises
In 201, first server end receives the attribute information for the terminal device that host's application is sent, and according to
After attribute information obtains corresponding push SDK, the push SDK is sent to the host and is applied.
In this step, first server end can be previously stored with the attribute information of each terminal device and pair of push SDK
It should be related to, therefore by the pre-stored corresponding relationship, first server end is receiving host using transmitted terminal
After the attribute information of equipment, push SDK corresponding with the received attribute information of institute just can determine, and then by acquired push
SDK is sent to host's application.
In 202, second server end obtains service data, and the service data is sent to the host and is applied.
In this step, host's application developer is in second server end issuing service data, and then by second server
The service data that host's application developer is issued is pushed to host's application by end.
Host's application developer can pre-select push channel in second server end issuing service data, i.e., logical
The selected push channel of host's application developer is crossed, the host on the terminal device of particular vendor answers from second server end
With Push Service data.Host's application developer can also be without selection, where being applied by second server end according to host
The attribute information of terminal device automatically determines corresponding push channel, then by identified push channel to specific factory
Host's application push PUSH message on the terminal device of quotient.
For example, if the push channel that host's application developer selects is the push channel of millet equipment, second is taken
Business device end is applied by service data by the host that the push channel of millet equipment is sent to millet equipment;If host's application and development
The push channel that person selects is the push channel of Huawei's equipment, then service data is passed through pushing away for Huawei's equipment by second server end
The host's application for sending channel to be sent to Huawei's equipment.If the terminal device where host applies is millet equipment, number will be serviced
Host's application of millet equipment is sent to according to the push channel of the millet equipment automatically selected by second server end.
It is understood that first server end and second server end can be the same server end, it is also possible to
Different server ends.If different server ends, host can be applied the terminal device at place by first server end
Attribute information is sent to second server end, consequently facilitating second server end determines phase according to the attribute information of terminal device
The push channel answered.It can also be applied by host and the attribute information of terminal device is sent to second server end.It is understood that
, second server end is previously stored with the corresponding relationship between the attribute information of each terminal device and each push channel.
In addition, if host's application developer may be used also when the service data that second server end is issued is notification bar message
To further comprise: after the notification bar message that host's application developer is issued is translated as transparent transmission message by second server end, leading to
It crosses push channel and sends the transparent transmission message to host's application.
Fig. 3 is the structure drawing of device realized in the push of host's application execution that one embodiment of the invention provides, in Fig. 3
Shown, described device includes: the first transmission unit 31, the first receiving unit 32, processing unit 33 and the second receiving unit 34.
First transmission unit 31, for the attribute information of terminal device to be sent to first server end.
First transmission unit 31 obtains the attribute information of terminal device first, then by the attribute of acquired terminal device
Information is sent to first server end.
Specifically, the attribute information of terminal device acquired in the first transmission unit 31 may include the model of terminal device
At least one of information, the manufacturer's information of terminal device, information of identification code etc. of terminal device.Acquired attribute information is used
In determining corresponding push SDK at first server end.
In addition, before the first transmission unit 31 sends the attribute information of terminal device to first server end, it can be with
Further comprise: determining that the attribute information of terminal device is then sent to first if it does not exist by the local push SDK that whether there is
Server end;If local have push SDK, the push SDK of local push SDK and first server end are subjected to version ratio
Compared with if there are new versions by the push SDK at first server end, to the attribute information of first server end transmission terminal device
To obtain the push SDK of latest edition;If new version is not present in the push SDK at first server end, terminate the present embodiment
Process.
First receiving unit 32, the attribute information with the terminal device sent for receiving the first server end
Corresponding pushing software development kit SDK.
First receiving unit 32, for the attribute information of terminal device to be sent to first service in the first transmission unit 31
Behind device end, the push SDK (Software corresponding with the attribute information of terminal device returned by first server end is received
Development Kit, Software Development Kit).Wherein, the 32 received push SDK of institute of the first receiving unit is counterpart terminal
The push SDK of the manufacturer of equipment.In addition, the first receiving unit 32 is to push SDK from the received push SDK in first server end
Compressed package includes the corn module of push SDK in the compressed package.
Processing unit 33, for loading and running the push SDK.
Processing unit 33 loads the 32 received push SDK of institute of the first receiving unit, is then made by Agent components
SDK normal operation must be pushed.
Processing unit 33 may further comprise: before the push SDK obtained from first server end in push SDK
File carry out safety inspection, such as carry out MD5 verification, signature than equity, to guarantee the safety of downloaded file.If
By safety inspection, then push SDK is loaded, otherwise without load.
Specifically, processing unit 33, can be in the following manner when load pushes SDK: first will be in push SDK
Jar file is converted into dex file, and dex file is then loaded by ClassLoader, to realize that host pushes away using load
Send SDK.
Above-mentioned dex file is the executable file of Android system, the instruction of all operationss comprising application program and
Runtime data.So file is dynamic library file, is a kind of binary file.
It, can be in the following ways when processing unit 33 makes to push SDK normal operation by Agent components: obtaining operation system
System calls the life cycle events of Agent components;Corresponding reality in push SDK is called according to life cycle events by Agent components
The life cycle methodology of border component, so that push SDK is operated normally.Operating system is called to the Life Cycle of Agent components
Phase method passes to the actual component in push SDK, is equivalent to the life that operating system calls directly actual component in push SDK
Cycle methods are ordered, so that it is guaranteed that the push SDK to dynamically load can be operated normally.
Second receiving unit 34, for receiving service data from second server end by the push SDK.
Second receiving unit 34, the 33 push SDK operated normally, reception are sent by second server end through the processing unit
Service data, and be shown.Wherein, the service data packet that the second receiving unit 34 is received and shown from second server end
Include one of notification bar message and transparent transmission message.
When second receiving unit 34 receives service data from second server end by push SDK, it can use with lower section
Push channel is established by push SDK and second server end likes:;Second server end is received by the push channel established
The service data of transmission.Wherein, it is the system of counterpart terminal equipment that host, which applies the push channel established with second server end,
The push channel of grade, even if can also receive corresponding service data when host's application is in close state.
When the second receiving unit 34 receives the transparent transmission message of second server end transmission, may further comprise: to saturating
The consistency treatment that message carries out notification bar appearance is passed, so that the PUSH message shown in different vendor's equipment has
The notification bar appearance of consistency.It is therefore not necessary to which the notification bar of PUSH message is shown for different vendor's equipment by application developer
Appearance is adapted to, to promote pushing efficiency.
Fig. 4 is the structure drawing of device that the push executed in server end that one embodiment of the invention provides is realized, in Fig. 4
Shown, described device includes: the second transmission unit 41 and third transmission unit 42.
Second transmission unit 41 receives the attribute information for the terminal device that host's application is sent for first server end,
And after obtaining corresponding push SDK according to the attribute information, the push SDK is sent to the host and is applied.
First server end can be previously stored with the attribute information of each terminal device and the corresponding relationship of push SDK, therefore
Second transmission unit 41 is by the pre-stored corresponding relationship, in the attribute letter for receiving the terminal device that host's application is sent
After breath, push SDK corresponding with the received attribute information of institute just can determine, and then acquired push SDK is sent to place
Main application.
Third transmission unit 42 obtains service data for second server end, and the service data is sent to institute
State host's application.
Host's application developer answers host in second server end issuing service data, and then by third transmission unit 42
Host's application is pushed to the service data that developer is issued.
Host's application developer can pre-select push channel in second server end issuing service data, i.e., logical
The selected push channel of host's application developer is crossed, the host on the terminal device of particular vendor answers from second server end
With Push Service data.Host's application developer can also be without selection, where being applied by second server end according to host
The attribute information of terminal device automatically determines corresponding push channel, then by identified push channel to specific factory
Host's application push PUSH message on the terminal device of quotient.
It is understood that first server end and second server end can be the same server end, it is also possible to
Different server ends.If different server ends, host can be applied the terminal device at place by first server end
Attribute information is sent to second server end, consequently facilitating second server end determines phase according to the attribute information of terminal device
The push channel answered.It can also be applied by host and the attribute information of terminal device is sent to second server end.It is understood that
, second server end is previously stored with the corresponding relationship between the attribute information of each terminal device and each push channel.
In addition, if when the service data that host's application developer is issued at second server end is notification bar message, third
Transmission unit 42 can also be executed further: after the notification bar message that host's application developer is issued is translated as transparent transmission message,
The transparent transmission message is sent to host's application by push channel.
Fig. 5 shows the frame for being suitable for the exemplary computer system/server 012 for being used to realize embodiment of the present invention
Figure.The computer system/server 012 that Fig. 5 is shown is only an example, should not function and use to the embodiment of the present invention
Range band carrys out any restrictions.
As shown in figure 5, computer system/server 012 is showed in the form of universal computing device.Computer system/clothes
The component of business device 012 can include but is not limited to: one or more processor or processing unit 016, system storage
028, connect the bus 018 of different system components (including system storage 028 and processing unit 016).
Bus 018 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller,
Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts
For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC)
Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Computer system/server 012 typically comprises a variety of computer system readable media.These media, which can be, appoints
The usable medium what can be accessed by computer system/server 012, including volatile and non-volatile media, movably
With immovable medium.
System storage 028 may include the computer system readable media of form of volatile memory, such as deposit at random
Access to memory (RAM) 030 and/or cache memory 032.Computer system/server 012 may further include other
Removable/nonremovable, volatile/non-volatile computer system storage medium.Only as an example, storage system 034 can
For reading and writing immovable, non-volatile magnetic media (Fig. 5 do not show, commonly referred to as " hard disk drive ").Although in Fig. 5
It is not shown, the disc driver for reading and writing to removable non-volatile magnetic disk (such as " floppy disk ") can be provided, and to can
The CD drive of mobile anonvolatile optical disk (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these situations
Under, each driver can be connected by one or more data media interfaces with bus 018.Memory 028 may include
At least one program product, the program product have one group of (for example, at least one) program module, these program modules are configured
To execute the function of various embodiments of the present invention.
Program/utility 040 with one group of (at least one) program module 042, can store in such as memory
In 028, such program module 042 includes --- but being not limited to --- operating system, one or more application program, other
It may include the realization of network environment in program module and program data, each of these examples or certain combination.Journey
Sequence module 042 usually executes function and/or method in embodiment described in the invention.
Computer system/server 012 can also with one or more external equipments 014 (such as keyboard, sensing equipment,
Display 024 etc.) communication, in the present invention, computer system/server 012 is communicated with outside radar equipment, can also be with
One or more enable a user to the equipment interacted with the computer system/server 012 communication, and/or with make the meter
Any equipment (such as network interface card, the modulation that calculation machine systems/servers 012 can be communicated with one or more of the other calculating equipment
Demodulator etc.) communication.This communication can be carried out by input/output (I/O) interface 022.Also, computer system/clothes
Being engaged in device 012 can also be by network adapter 020 and one or more network (such as local area network (LAN), wide area network (WAN)
And/or public network, such as internet) communication.As shown, network adapter 020 by bus 018 and computer system/
Other modules of server 012 communicate.It should be understood that computer system/server 012 can be combined although being not shown in Fig. 5
Using other hardware and/or software module, including but not limited to: microcode, device driver, redundant processing unit, external magnetic
Dish driving array, RAID system, tape drive and data backup storage system etc..
Processing unit 016 by the program that is stored in system storage 028 of operation, thereby executing various function application with
And data processing, such as realize method flow provided by the embodiment of the present invention.
Above-mentioned computer program can be set in computer storage medium, i.e., the computer storage medium is encoded with
Computer program, the program by one or more computers when being executed, so that one or more computers execute in the present invention
State method flow shown in embodiment and/or device operation.For example, it is real to execute the present invention by said one or multiple processors
Apply method flow provided by example.
With time, the development of technology, medium meaning is more and more extensive, and the route of transmission of computer program is no longer limited by
Tangible medium, can also be directly from network downloading etc..It can be using any combination of one or more computer-readable media.
Computer-readable medium can be computer-readable signal media or computer readable storage medium.Computer-readable storage medium
Matter for example may be-but not limited to-system, device or the device of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, or
Any above combination of person.The more specific example (non exhaustive list) of computer readable storage medium includes: with one
Or the electrical connections of multiple conducting wires, portable computer diskette, hard disk, random access memory (RAM), read-only memory (ROM),
Erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light
Memory device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer readable storage medium can
With to be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or
Person is in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including --- but
It is not limited to --- electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be
Any computer-readable medium other than computer readable storage medium, which can send, propagate or
Transmission is for by the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited
In --- wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof
Program code, described program 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 be with
It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion
Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.?
Be related in the situation of remote computer, 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 provided using Internet service
Quotient is connected by internet).
It is avoided in such a way that host pushes SDK using dynamic acquisition using technical solution provided by the present invention
Multiple push SDK are integrated in host's application, realizing reduces push SDK to the increased purpose of host's application installation package size.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer
It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the present invention
The part steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-
Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. it is various
It can store the medium of program code.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.
Claims (20)
1. a kind of implementation method of push, which is characterized in that the described method includes:
Host, which applies, is sent to first server end for the attribute information of terminal device;
Receive the pushing software developing instrument corresponding with the attribute information of the terminal device that the first server end is sent
Wrap SDK;
It loads and runs the push SDK;
Service data is received from second server end by the push SDK.
2. the method according to claim 1, wherein the attribute information of the terminal device includes: terminal device
Type information, terminal device manufacturer's information or at least one of the information of identification code of terminal device.
3. the method according to claim 1, wherein the method also includes:
Host applies the component to need to register in push SDK to provide component of the same name as Agent components, and in advance to agency
Component is registered;
The push SDK is operated normally by the Agent components.
4. according to the method described in claim 3, it is characterized in that, described make the push SDK just by the Agent components
It often runs and includes:
Host's application obtains the life cycle events that operating system calls Agent components;
The life cycle side of corresponding actual component in the push SDK is called according to the life cycle events by Agent components
Method, so that the push SDK is operated normally.
5. the method according to claim 1, wherein being conquered by the push SDK from second server termination
Business data include:
Host, which applies, establishes push channel by the push SDK and the second service end;
Service data is received from second server end by the push channel.
6. according to the method described in claim 5, it is characterized in that, the service data includes transparent transmission message;
This method further include: after carrying out consistency treatment to the notification bar appearance of the transparent transmission message, show the transparent transmission message.
7. a kind of implementation method of push, which is characterized in that the described method includes:
First server end receives the attribute information for the terminal device that host's application is sent, and in the category according to the terminal device
Property acquisition of information corresponding push SDK after, the push SDK is sent to the host and is applied;
Second server end obtains service data, and the service data is sent to the host and is applied.
8. the method according to the description of claim 7 is characterized in that it is described according to the attribute information of the terminal device obtain with
Its corresponding push SDK includes:
The attribute information of first server end terminal device according to the pre-stored data and the corresponding relationship of push SDK, determining and institute
The corresponding push SDK of the attribute information of received terminal device.
9. the method according to the description of claim 7 is characterized in that the service data is sent to host's application packet
It includes:
The attribute information of second server end terminal device according to the pre-stored data and the corresponding relationship of push channel, determining and institute
Host is stated using corresponding push channel;
Service data is sent to host application according to identified push channel.
10. the method according to the description of claim 7 is characterized in that the method also includes:
Acquired notification bar message is translated as transparent transmission message by second server end;
The transparent transmission message that translation obtains is sent to the host by push channel to apply.
11. a kind of realization device of push, which is characterized in that described device is located at host's application, comprising:
First transmission unit, for the attribute information of terminal device to be sent to first server end;
First receiving unit, for receiving the corresponding with the attribute information of the terminal device of the first server end transmission
Pushing software development kit SDK;
Processing unit, for loading and running the push SDK;
Second receiving unit, for receiving service data from second server end by the push SDK.
12. device according to claim 11, which is characterized in that the processing unit is also used to execute:
Component to need to register in push SDK provides component of the same name as Agent components, and carries out in advance to Agent components
Registration;
The push SDK is operated normally by the Agent components.
13. device according to claim 12, which is characterized in that the processing unit is made described by the Agent components
It is specific to execute when pushing SDK normal operation:
Obtain the life cycle events that operating system calls Agent components;
The life cycle side of corresponding actual component in the push SDK is called according to the life cycle events by Agent components
Method, so that the push SDK is operated normally.
14. device according to claim 12, which is characterized in that second receiving unit by the push SDK from
It is specific to execute when second server end receives service data:
Push channel is established by the push SDK and the second service end;
Service data is received from second server end by the push channel.
15. device according to claim 14, which is characterized in that the service data includes transparent transmission message;
Second receiving unit is also used to execute: after carrying out consistency treatment to the notification bar appearance of the transparent transmission message, exhibition
Show the transparent transmission message.
16. a kind of realization device of push, which is characterized in that described device is located at server end, comprising:
Second transmission unit receives the attribute information for the terminal device that host's application is sent for first server end, and in root
After obtaining corresponding push SDK according to the attribute information of the terminal device, the push SDK is sent to the host and is answered
With;
Third transmission unit obtains service data for second server end, and the service data is sent to the host
Using.
17. device according to claim 16, which is characterized in that second transmission unit is according to the terminal device
It is specific to execute when attribute information obtains corresponding push SDK:
The attribute information of terminal device according to the pre-stored data and the corresponding relationship of push SDK, determine and set with a received terminal
The corresponding push SDK of standby attribute information.
18. device according to claim 16, which is characterized in that the third transmission unit sends the service data
To the host in application, specific execute:
The attribute information of terminal device according to the pre-stored data and the corresponding relationship of push channel, determining and host application pair
The push channel answered;
Service data is sent to host application according to identified push channel.
19. a kind of equipment, which is characterized in that the equipment includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
The now method as described in any in claim 1-10.
20. a kind of storage medium comprising computer executable instructions, the computer executable instructions are by computer disposal
For executing the method as described in any in claim 1-10 when device executes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810816598.XA CN109218393B (en) | 2018-07-24 | 2018-07-24 | Push implementation method, device, equipment and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810816598.XA CN109218393B (en) | 2018-07-24 | 2018-07-24 | Push implementation method, device, equipment and computer storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109218393A true CN109218393A (en) | 2019-01-15 |
CN109218393B CN109218393B (en) | 2021-09-21 |
Family
ID=64990208
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810816598.XA Active CN109218393B (en) | 2018-07-24 | 2018-07-24 | Push implementation method, device, equipment and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109218393B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110839073A (en) * | 2019-11-06 | 2020-02-25 | 北京小米智能科技有限公司 | Method for acquiring push information, method and device for sending push information |
CN111241443A (en) * | 2020-01-08 | 2020-06-05 | 北京字节跳动网络技术有限公司 | Method and device for pushing information and electronic equipment |
CN112714161A (en) * | 2020-12-22 | 2021-04-27 | 北京金山云网络技术有限公司 | Video access method, device and system |
CN113923107A (en) * | 2021-10-14 | 2022-01-11 | 海南车智易通信息技术有限公司 | Method, device, equipment and medium for automatically switching multiple channels of instant messaging |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102830992A (en) * | 2012-07-31 | 2012-12-19 | 北京奇虎科技有限公司 | Plug-in loading method and system |
CN103401896A (en) * | 2013-07-15 | 2013-11-20 | 四川公用信息产业有限责任公司 | Multi-Android-client service sharing method and system |
CN103677877A (en) * | 2012-09-12 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Method and device for updating local advertisement software development kit |
CN105141686A (en) * | 2015-08-19 | 2015-12-09 | 贵阳朗玛信息技术股份有限公司 | Method and device for achieving bluetooth communication |
CN107133057A (en) * | 2016-02-29 | 2017-09-05 | 上海指和信息科技有限公司 | A kind of update of plug-in method applied to Android system |
-
2018
- 2018-07-24 CN CN201810816598.XA patent/CN109218393B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102830992A (en) * | 2012-07-31 | 2012-12-19 | 北京奇虎科技有限公司 | Plug-in loading method and system |
CN103677877A (en) * | 2012-09-12 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Method and device for updating local advertisement software development kit |
CN103401896A (en) * | 2013-07-15 | 2013-11-20 | 四川公用信息产业有限责任公司 | Multi-Android-client service sharing method and system |
CN105141686A (en) * | 2015-08-19 | 2015-12-09 | 贵阳朗玛信息技术股份有限公司 | Method and device for achieving bluetooth communication |
CN107133057A (en) * | 2016-02-29 | 2017-09-05 | 上海指和信息科技有限公司 | A kind of update of plug-in method applied to Android system |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110839073A (en) * | 2019-11-06 | 2020-02-25 | 北京小米智能科技有限公司 | Method for acquiring push information, method and device for sending push information |
CN111241443A (en) * | 2020-01-08 | 2020-06-05 | 北京字节跳动网络技术有限公司 | Method and device for pushing information and electronic equipment |
CN112714161A (en) * | 2020-12-22 | 2021-04-27 | 北京金山云网络技术有限公司 | Video access method, device and system |
CN113923107A (en) * | 2021-10-14 | 2022-01-11 | 海南车智易通信息技术有限公司 | Method, device, equipment and medium for automatically switching multiple channels of instant messaging |
CN113923107B (en) * | 2021-10-14 | 2024-02-23 | 海南车智易通信息技术有限公司 | Method, device, equipment and medium for automatically switching multiple channels of instant messaging |
Also Published As
Publication number | Publication date |
---|---|
CN109218393B (en) | 2021-09-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109213611B (en) | Cross-process communication method, device, terminal and storage medium | |
CN109218393A (en) | A kind of implementation method of push, device, equipment and computer storage medium | |
CN108520454A (en) | The method and system of readjustment order in real time | |
CN109960541A (en) | Start method, equipment and the computer storage medium of small routine | |
WO2017166447A1 (en) | Method and device for loading kernel module | |
US20220214932A1 (en) | Methods, devices and computer storage media for inter-mini program platform communication | |
CN109543462A (en) | Device identification determines method, apparatus, server and storage medium | |
CN109710333A (en) | Processing method, equipment and the computer readable storage medium of boarding application | |
US20220245005A1 (en) | Methods, devices and computer storage media for inter-mini program platform discovery | |
CN109582317B (en) | Method and apparatus for debugging hosted applications | |
CN110287146A (en) | Using the method, equipment and computer storage medium of downloading | |
CN109150956A (en) | A kind of implementation method, device, equipment and computer storage medium pushing SDK | |
CN110134869A (en) | A kind of information-pushing method, device, equipment and storage medium | |
CN109960554A (en) | Show method, equipment and the computer storage medium of reading content | |
CN109801104A (en) | A kind of advertising information methods of exhibiting of unaware | |
CN109347899A (en) | The method of daily record data is written in distributed memory system | |
CN110489326B (en) | IDS-based HTTPAPI debugging method device, medium and equipment | |
CN110489210A (en) | Create method, apparatus, equipment and the computer storage medium of virtual machine | |
CN109189332A (en) | A kind of disk hanging method, device, server and storage medium | |
CN109933444A (en) | A kind of instant communication method between applying of lodging | |
CN109145591A (en) | The plug-in loading method of application program | |
CN112379967B (en) | Simulator detection method, device, equipment and medium | |
CN114546370A (en) | Data docking method and related device | |
CN111784481B (en) | Code scanning ordering method, service code creating method, device and electronic equipment | |
CN112732547B (en) | Service testing method and device, storage medium 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 |