CN107343311A - Push control method and device - Google Patents

Push control method and device Download PDF

Info

Publication number
CN107343311A
CN107343311A CN201710465847.0A CN201710465847A CN107343311A CN 107343311 A CN107343311 A CN 107343311A CN 201710465847 A CN201710465847 A CN 201710465847A CN 107343311 A CN107343311 A CN 107343311A
Authority
CN
China
Prior art keywords
service
push
current
starting
component name
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710465847.0A
Other languages
Chinese (zh)
Inventor
张晓亮
董成鹏
邱子峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710465847.0A priority Critical patent/CN107343311A/en
Publication of CN107343311A publication Critical patent/CN107343311A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0238Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal where the received signal is an unwanted signal, e.g. interference or idle signal
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure is directed to one kind to push control method and device.This method includes:Obtain the SDK component Names for starting current service;Based on the component Name, judge whether the current service is Push Service;When it is determined that the current service is Push Service, current service described in No starting.According to the push control method and device of the disclosure, user can not only be made to be bothered from PUSH message, moreover it is possible to really to realize the purpose for saving electricity, flow and internal memory etc..

Description

Push control method and device
Technical field
This disclosure relates to technical field of intelligent equipment, more particularly to push control method and device.
Background technology
Currently, the application of user installation much all carries Push Service, and these Push Services continually disappear to user's push Breath, often cause the dislike of user, also the message that user really needs can be flooded sometimes.Moreover, frequently push Service can also consume electricity, flow and internal memory.
According to correlation technique, user can select not show PUSH message, to avoid being beaten by unwelcome PUSH message Disturb.But in the correlation technique, can still start the Push Service, that is, establish the long connection for the Push Service and push Message, simply PUSH message be not exposed to user.Therefore, consumption electricity, stream caused by these unwelcome Push Services The problem of amount and internal memory, is still present.
The content of the invention
To overcome problem present in correlation technique, the disclosure provides a kind of push control method and device.
According to the first aspect of the embodiment of the present disclosure, there is provided one kind push control method, including:Obtain and start current service SDK component Names;Based on the component Name, judge whether the current service is Push Service;When it is determined that described current Service for Push Service when, current service described in No starting.
According to the second aspect of the embodiment of the present disclosure, there is provided one kind push control device, including:Component Name obtains mould Block, it is configured as obtaining the SDK component Names for starting current service;Push Service judge module, it is configured as being based on described group Part title, judge whether the current service is Push Service;Push Service disabled module, it is configured as determining described current Service for Push Service when, current service described in No starting.
According to the third aspect of the embodiment of the present disclosure, there is provided one kind push control device, including:Processor;For storing The memory of processor-executable instruction;Wherein, the processor is configured as:Obtain the SDK component names for starting current service Claim;Based on the component Name, judge whether the current service is Push Service;When it is determined that the current service takes for push During business, current service described in No starting.
According to the fourth aspect of the embodiment of the present disclosure, there is provided a kind of non-volatile computer readable storage medium storing program for executing, deposit thereon Contain computer program instructions, it is characterised in that realized when the computer program instructions are executed by processor as described above Method.
The technical scheme provided by this disclosed embodiment can include the following benefits:The push control method of the disclosure And device, after identifying that the service to be started is Push Service based on SDK component Names, can the No starting Push Service, So as to avoid while bothering user of these unwelcome Push Services, really realize and save electricity, flow and internal memory Deng purpose.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the disclosure Example, and be used to together with specification to explain the principle of the disclosure.
Fig. 1 is a kind of flow chart of push control method according to an exemplary embodiment.
Fig. 2 is a kind of exemplary process diagram of push control method according to an exemplary embodiment.
Fig. 3 is a kind of exemplary process diagram of push control method according to an exemplary embodiment.
Fig. 4 is a kind of block diagram of push control device according to an exemplary embodiment.
Fig. 5 is a kind of block diagram of push control device according to an exemplary embodiment.
Fig. 6 is a kind of block diagram of push control device according to an exemplary embodiment.
Fig. 7 is a kind of block diagram of push control device according to an exemplary embodiment.
Fig. 8 is a kind of block diagram of push control device according to an exemplary embodiment.
Fig. 9 is a kind of block diagram of push control device according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of push control method according to an exemplary embodiment.This method can be applied to The terminal device such as mobile phone or tablet personal computer, is not limited herein.As shown in figure 1, this method comprises the following steps.
In step s 102, the SDK component Names for starting current service are obtained.
SDK is Software Development Kit (i.e. SDK) abbreviation, and it typically refers to for spy The set of developing instrument when fixed software kit, software frame, hardware platform, operating system etc. establish application software, such as Android SDK, iPhone SDK etc..
When starting different services, such as search (search) service, authentication (authentication) are serviced, pushed away Send (push) service etc.), SDK can provide corresponding component, for example, SDK components for search service, taking for authentication The SDK components of business, for SDK components of Push Service etc..Each SDK components have the component Name of oneself (or referred to as Title), in the disclosure, it is referred to as the id of respective service.Once monitor the SDK components that SDK is provided, you can be somebody's turn to do The component Name of SDK components.Those skilled in the art can obtain the component name of SDK components using any suitable technological means Claim, the disclosure is not limited this.
As known to those skilled in the art, each SDK components can include explanation document, static library lib and dynamic Storehouse dll etc..The disclosure is not limited this.
In step S104, based on the component Name, judge whether the current service is Push Service.
The component Name of SDK components generally may include two parts:Bag name+specific component name.For example, certain component Name can be with It is " com.XXX.sdk.YYY ", wherein, " com.XXX.sdk " is bag name, and " YYY " is specific component name.This example is only used for lifting Example, is not used in and the title of SDK components is defined in any way, for example, some bag names may not be to be started with " com " , for example, " XXX " and " YYY " may each comprise multiple fields of use " " separation etc..
In step s 106, when it is determined that the current service is Push Service, current service described in No starting.
The present embodiment be based on the principle that:After inventor is studied the SDK component Names for starting Push Service, It was found that the component Name of the SDK components provided generally directed to Push Service has certain characteristic, i.e., based on the component Name It may recognize that whether the current service is Push Service.According to this embodiment, it can identify and to start based on SDK component Names Service be Push Service and the No starting Push Service, that is, avoid establishing the long connection for the Push Service, so as to While avoiding bothering user, the purpose for saving electricity, flow and internal memory etc. is really achieved.
In a kind of possible implementation, in above-mentioned steps 104, based on the component Name, the current clothes are judged Whether business is Push Service, can be included:When detecting that the component Name meets preset format, the current service is determined It is Push Service.Inventor it has been investigated that, the form of the title of many SDK components be substantially it is fixed, can be in such as terminal This form is preset in equipment.When the SDK component Names for starting current application meet the preset format, then it is can recognize that to push away Take business.Those skilled in the art can be preset using any applicable technological means, and the disclosure is not construed as limiting to this.
The preset format can be directed to whole fields or part field in component Name.When the preset format is for all During field, then when each field in detecting the component Name all meets corresponding form, it may be determined that the current clothes It is engaged in as Push Service;When the preset format is for part field (for example, specific component name part), then field expires in this section During the corresponding form of foot, it is Push Service to determine the current service.
In an example of above-mentioned implementation, when detecting that the component Name meets preset format, it is determined that described Current service is Push Service, including:When detect the part or all of field in the component Name with it is known startup push away Take respective field in the SDK component Names of business it is consistent when, it is Push Service to determine the current service.This example can also claim For " accurate pattern ", be advantageous to that accurately No starting is most of or even whole Push Services.
Inventor has found after further investigation, is usually fixed for starting the title of SDK components of main flow Push Service , therefore, current service can be started when detecting using the component Name of these known Push Services as check sample When SDK component Names are consistent with the SDK component Names of known startup Push Service, then the current service can be determined for push Service.Those skilled in the art can obtain the component Name of startup Push Service, this public affairs using any applicable technological means Open and this is not restricted.
For example, " com.XXX001.sdk.YYY001 ", " com.XXX002.sdk.YYY002 " ..., " com.XXX100.sdk.YYY100 " is the component Name for starting Push Service known to 100, then can be by this 100 groups Part title is pre-stored in an array., can be by it with being pre-stored in after the component Name for the SDK components for starting current service is obtained Component Name in array carries out traversal comparison.When it is consistent with the component Name that any one prestores, comparison terminates, and really The fixed current service is Push Service;When finding that 100 component Names of itself and this are inconsistent by contrast, comparison terminates, and It is not Push Service to determine the current service.
In another example " com.XXX001.sdk.YYY001 ", " com.XXX002.sdk.YYY002 " ..., " com.XXX100.sdk.YYY100 " is the component Name for starting Push Service known to 100, and wherein header part may be right In distinguish respective service whether be having little significance for Push Service, then can by " YYY001 ", " YYY002 " ..., " YYY100 " this 100 component Names are pre-stored in an array.If start the entitled of the SDK components of current service " com.XXX***.sdk.YYY*** " (* can represent a character), then " YYY*** " field therein can be intercepted, and It can be carried out into traversal with 100 fields being pre-stored in array to compare.When it is consistent with the field that any one prestores, than To terminating, and determine that the current service is Push Service;When finding that 100 fields of itself and this are inconsistent by contrast, compare Terminate, and determine that the current service is not Push Service.
In another example of above-mentioned implementation, when detecting that the component Name meets preset format, institute is determined It is Push Service to state current service, including:When detecting that the part or all of field in the component Name includes keyword, It is Push Service to determine the current service, wherein, the keyword is associated with starting the SDK component Names of Push Service Keyword.This example is alternatively referred to as " fuzzy pattern ", is advantageous to identify more possible Push Services more quickly.
It will be appreciated by persons skilled in the art that term " keyword " is the concept of broad sense, it can be single key Word or multiple crucial combinatorics on words etc., it can be used to more effectively identify whether the title of certain SDK component opens Any information of the title of the SDK components of dynamic Push Service.
For example, can set the keyword includes " push ", " Push ", " PUSH " etc., if starting the SDK groups of current service Part is entitled " com.XXX***.sdk.YYY*** ", can detect in whole fields " com.XXX***.sdk.YYY*** " whether Comprising any one in " push ", " Push ", " PUSH " etc., if comprising it is push clothes that can determine the current service Business;If do not included, it is not Push Service that can determine the current service.
In another example can set the keyword includes " push ", " Push ", " PUSH " etc., if starting the SDK of current service Whether component Name is " com.XXX***.sdk.YYY*** ", can detect and be included in part field " YYY*** " therein Any one in " push ", " Push ", " PUSH " etc., if comprising it is Push Service that can determine the current service;Such as Fruit does not include, then it is not Push Service that can determine the current service.
It will be appreciated by persons skilled in the art that the example above is not used in and limited in any form only to illustrate The particular content and form of keyword.
Fig. 2 is a kind of exemplary process diagram of push control method according to an exemplary embodiment.Shown in Fig. 2 Step 202,204 and 206 and step 102 in Fig. 1,104 similar with 106, this is no longer repeated one by one.As shown in Fig. 2 the party Method can also comprise the following steps.
Step 208, the current state of application belonging to the current service is obtained, the current state includes:Front stage operation State, background operation state.
Those skilled in the art can determine the application belonging to the current service using any applicable technological means.Example Such as, api interface that related application or operating system provides can be inquired about to determine the affiliated application of current service.For example, set certain Component Name can be " com.XXX.sdk.YYY ", can determine affiliated application based on the information carried in " XXX " field, Etc..The disclosure is not construed as limiting to this.
In a kind of possible implementation, the current state can also include the liveness of the affiliated application.
Step 210, when it is determined that the current service is Push Service, according to the current state, it is determined whether forbid Start the Push Service.
In a kind of possible implementation, when the current state applied belonging to the current service is background operation state When, it may be determined that Push Service described in No starting;When the current state applied belonging to the current service is front stage operation state When, it may be determined that it is not prohibited by the Push Service, you can start the Push Service.This can effectively prevent some apply rear Malice startup Push Service carrys out consumed flow when platform is run.
In a kind of possible implementation, protection can be provided for important application, such as no matter it is in front stage operation Or running background, all it is not prohibited by it and starts Push Service, that is, allow it to start Push Service.
In a kind of possible implementation, it can allow user that the authority of each application startup Push Service is set.For example, It for some or some applications, can set when this is applied in front stage operation, be not prohibited by the application and start Push Service, when this Apply in running background, No starting Push Service;For some or some applications, can set no matter this is applied on foreground Operation still in running background, is not prohibited by the application and starts Push Service;For some or some applications, can set no matter This is applied in front stage operation still in running background, forbids the application to start Push Service.Do not enter in user for certain application It in the case of the special setting of row, can give tacit consent to when this is applied in front stage operation, be not prohibited by the application and start Push Service, when this should During used in running background, No starting Push Service, etc..
In a kind of possible implementation, current state can also include the liveness of the affiliated application.Show at one It in example, for the application of high liveness, can be not prohibited by starting the Push Service for belonging to the application, and be directed to answering for low liveness With, can No starting belong to the Push Service of the application.Those skilled in the art can weigh the work of application using any means Jerk is high or low, and the disclosure is not restricted to this.
In a kind of possible implementation, for the Push Service for being allowed to start, rower can be entered to the Push Service Note, to be subsequently managed to the Push Service.For example, after the current state for having application switches to from foreground running status During platform running status, or have using from high liveness be changed into low liveness when, can the marked Push Service of examination.If certain Labeled Push Service just belongs to above-mentioned and the application of background operation state is switched to from foreground running status, or just belongs to In the application for being changed into low liveness from high liveness, then the labeled Push Service can be killed, flow, electricity are saved so as to realize Amount and the purpose of internal memory etc..
The application whether is allowed to start Push Service for the specific current state of application-specific, those skilled in the art can It is arranged as required to, the disclosure is not construed as limiting to this.
Fig. 3 is the exemplary process diagram according to the push control method of an exemplary embodiment of the disclosure.In step 302 In, the SDK component Names for starting current service can be obtained.The SDK components can be by certain application call.In step 304, The component Name can be based on, judges whether the current service is Push Service.
The judged result of step 304 can then enter step 306, can allow to start the current service if negating.Such as The judged result of fruit step 304 is if certainly, then can enter step 308, further determine whether to allow to start the push Service.As described above, the current state that can be applied according to belonging to the Push Service judges.In this example, when the application When current state is front stage operation state or has high liveness, then allow to start the Push Service;When the current shape of the application State is background operation state or when having low liveness, then can the No starting Push Service.
The judged result of step 308 can then enter step 310, not allow to start the Push Service, i.e., if negating The No starting current service.The judged result of step 308 is if certainly, then can enter step 312, it is allowed to start this and push away Business is taken, and marks the Push Service.
As understood by those skilled in the art, after starting Push Service, it can establish and be connected for the long of the Push Service. Server connects PUSH message using the length.
During this period, the current state of application can be monitored.As shown at step 314, when the current state for monitoring the application When switching to background operation state or low liveness, then it can enter step 316, the Push Service can be killed, for example, disconnecting Long connection, so as to realize the purpose for saving flow, electricity and internal memory.
Fig. 4 is a kind of block diagram of push control device according to an exemplary embodiment.The device can be applied to hand The terminal device such as machine or tablet personal computer, is not limited herein.Reference picture 4, the device include component Name acquisition module 402, pushed away Take business judge module 404 and Push Service disabled module 406.Component Name acquisition module 402, which is configured as obtaining starting, works as The SDK component Names of preceding service.Push Service judge module 404 is configured as being based on the component Name, judges described current Whether service is Push Service.Push Service disabled module 406 is configured as determining the current service when being Push Service, Current service described in No starting.
Fig. 5 is a kind of block diagram of push control device according to an exemplary embodiment.Reference picture 5, In a kind of possible implementation, Push Service judge module 404 can include Push Service determination sub-module 4042.Push clothes When business determination sub-module 4042 is configured as detecting that the component Name meets preset format, determine that the current service is Push Service.
Fig. 6 is a kind of block diagram of push control device according to an exemplary embodiment.Reference picture 6, In a kind of possible implementation, Push Service determination sub-module 4042 can include the first determination sub-module 40422.First is true Stator modules 40422 are configured as detecting that the part or all of field in the component Name starts push clothes with known When respective field in the SDK component Names of business is consistent, it is Push Service to determine the current service.
Fig. 7 is a kind of block diagram of push control device according to an exemplary embodiment.Reference picture 7, In a kind of possible implementation, Push Service determination sub-module 4042 can include the second determination sub-module 40424.Second is true When stator modules 40424 are configured as detecting that the part or all of field in the component Name includes keyword, it is determined that The current service is Push Service, wherein, the keyword is the pass associated with starting the SDK component Names of Push Service Key word.
Fig. 8 is a kind of block diagram of push control device according to an exemplary embodiment.Reference picture 8, should Device can also include current state acquisition module 408 and No starting determining module 410.The quilt of current state acquisition module 408 It is configured to obtain the current state of application belonging to the current service, the current state includes:Front stage operation state, backstage are transported Row state.No starting determining module 410 is configured as according to the current state, it is determined whether is currently taken described in No starting Business.
Fig. 9 is a kind of block diagram of push control device 900 according to an exemplary embodiment.For example, device 900 can To be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, it is good for Body equipment, personal digital assistant etc..
Reference picture 9, device 900 can include following one or more assemblies:Processing component 902, memory 904, power supply Component 906, multimedia groupware 908, audio-frequency assembly 910, the interface 912 of input/output (I/O), sensor cluster 914, and Communication component 916.
The integrated operation of the usual control device 900 of processing component 902, such as communicated with display, call, data, phase The operation that machine operates and record operation is associated.Processing component 902 can refer to including one or more processors 920 to perform Order, to complete all or part of step of above-mentioned method.In addition, processing component 902 can include one or more modules, just Interaction between processing component 902 and other assemblies.For example, processing component 902 can include multi-media module, it is more to facilitate Interaction between media component 908 and processing component 902.
Memory 904 is configured as storing various types of data to support the operation in device 900.These data are shown Example includes the instruction of any application program or method for being operated on device 900, contact data, telephone book data, disappears Breath, picture, video etc..Memory 904 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) are erasable to compile Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 906 provides electric power for the various assemblies of device 900.Power supply module 906 can include power management system System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 900.
Multimedia groupware 908 is included in the screen of one output interface of offer between described device 900 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action Border, but also detect and touched or the related duration and pressure of slide with described.In certain embodiments, more matchmakers Body component 908 includes a front camera and/or rear camera.When device 900 is in operator scheme, such as screening-mode or During video mode, front camera and/or rear camera can receive outside multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 910 is configured as output and/or input audio signal.For example, audio-frequency assembly 910 includes a Mike Wind (MIC), when device 900 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The audio signal received can be further stored in memory 904 or via communication set Part 916 is sent.In certain embodiments, audio-frequency assembly 910 also includes a loudspeaker, for exports audio signal.
I/O interfaces 912 provide interface between processing component 902 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 914 includes one or more sensors, and the state for providing various aspects for device 900 is commented Estimate.For example, sensor cluster 914 can detect opening/closed mode of device 900, and the relative positioning of component, for example, it is described Component is the display and keypad of device 900, and sensor cluster 914 can be with 900 1 components of detection means 900 or device Position change, the existence or non-existence that user contacts with device 900, the orientation of device 900 or acceleration/deceleration and device 900 Temperature change.Sensor cluster 914 can include proximity transducer, be configured to detect in no any physical contact The presence of neighbouring object.Sensor cluster 914 can also include optical sensor, such as CMOS or ccd image sensor, for into As being used in application.In certain embodiments, the sensor cluster 914 can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 916 is configured to facilitate the communication of wired or wireless way between device 900 and other equipment.Device 900 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation In example, communication component 916 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 916 also includes near-field communication (NFC) module, to promote junction service.Example Such as, in NFC module radio frequency identification (RFID) technology can be based on, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 900 can be believed by one or more application specific integrated circuits (ASIC), numeral Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 904 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 920 of device 900.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice invention disclosed herein Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledges in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following Claim is pointed out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.

Claims (12)

1. one kind push control method, it is characterised in that including:
Obtain the SDK component Names for starting current service;
Based on the component Name, judge whether the current service is Push Service;
When it is determined that the current service is Push Service, current service described in No starting.
2. push control method according to claim 1, it is characterised in that based on the component Name, judge described work as Whether preceding service is Push Service, including:
When detecting that the component Name meets preset format, it is Push Service to determine the current service.
3. push control method according to claim 2, it is characterised in that when detecting that it is default that the component Name meets During form, it is Push Service to determine the current service, including:
When in the SDK component Names for detecting the part or all of field in the component Name and known startup Push Service Respective field it is consistent when, it is Push Service to determine the current service.
4. push control method according to claim 2, it is characterised in that when detecting that it is default that the component Name meets During form, it is Push Service to determine the current service, including:
When detecting that the part or all of field in the component Name includes keyword, it is push to determine the current service Service, wherein, the keyword is the keyword associated with starting the SDK component Names of Push Service.
5. the push control method according to claim 1-4, it is characterised in that methods described also includes:
The current state of application belonging to the current service is obtained, the current state includes:Front stage operation state, running background State;
According to the current state, it is determined whether current service described in No starting.
6. one kind push control device, it is characterised in that including:
Component Name acquisition module, it is configured as obtaining the SDK component Names for starting current service;
Push Service judge module, it is configured as being based on the component Name, judges whether the current service is Push Service;
Push Service disabled module, it is configured as determining the current service when being Push Service, it is current described in No starting Service.
7. push control device according to claim 6, it is characterised in that the Push Service judge module includes:
Push Service determination sub-module, when being configured as detecting that the component Name meets preset format, it is determined that described work as Preceding service is Push Service.
8. push control method according to claim 7, it is characterised in that the Push Service determination sub-module includes:
First determination sub-module, the part or all of field for being configured as detecting in the component Name and known startup When respective field in the SDK component Names of Push Service is consistent, it is Push Service to determine the current service.
9. push control method according to claim 7, it is characterised in that the Push Service determination sub-module includes:
Second determination sub-module, it is configured as detecting that the part or all of field in the component Name includes keyword When, it is Push Service to determine the current service, wherein, the keyword is the SDK component Name phases with starting Push Service The keyword of association.
10. the push control device according to claim 5-9, it is characterised in that described device also includes:
Current state acquisition module, it is configured as obtaining the current state of application belonging to the current service, the current state Including:Front stage operation state, background operation state;
No starting determining module, it is configured as according to the current state, it is determined whether current service described in No starting.
A kind of 11. power-comuption detecting device of application program, it is characterised in that including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
Obtain the SDK component Names for starting current service;
Based on the component Name, judge whether the current service is Push Service;
When it is determined that the current service is Push Service, current service described in No starting.
12. a kind of non-volatile computer readable storage medium storing program for executing, is stored thereon with computer program instructions, it is characterised in that institute State and method in claim 1 to 5 described in any one is realized when computer program instructions are executed by processor.
CN201710465847.0A 2017-06-19 2017-06-19 Push control method and device Pending CN107343311A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710465847.0A CN107343311A (en) 2017-06-19 2017-06-19 Push control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710465847.0A CN107343311A (en) 2017-06-19 2017-06-19 Push control method and device

Publications (1)

Publication Number Publication Date
CN107343311A true CN107343311A (en) 2017-11-10

Family

ID=60221263

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710465847.0A Pending CN107343311A (en) 2017-06-19 2017-06-19 Push control method and device

Country Status (1)

Country Link
CN (1) CN107343311A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107819871A (en) * 2017-11-22 2018-03-20 北京小米移动软件有限公司 Application state determines method and device
CN108021488A (en) * 2017-11-30 2018-05-11 北京小米移动软件有限公司 application program monitoring method and device
CN109831484A (en) * 2018-12-29 2019-05-31 天津字节跳动科技有限公司 Electoral machinery, device, medium and the electronic equipment of the shared push SDK service of APP

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104462952A (en) * 2014-12-31 2015-03-25 北京奇虎科技有限公司 Method and device for preventing self-starting of application
CN104598315A (en) * 2014-12-12 2015-05-06 广州三星通信技术研究有限公司 Memory managing method, device and terminal
CN105354492A (en) * 2015-10-16 2016-02-24 珠海格力电器股份有限公司 Mobile communication terminal, message notification control method and device thereof
CN105653323A (en) * 2015-12-28 2016-06-08 小米科技有限责任公司 Application program management method and device
CN106022103A (en) * 2016-05-18 2016-10-12 广东欧珀移动通信有限公司 Method and apparatus for preventing application from being started through pushing platform component
CN106528791A (en) * 2016-11-08 2017-03-22 宇龙计算机通信科技(深圳)有限公司 Method and device for pushing notification messages
CN106648029A (en) * 2016-12-28 2017-05-10 努比亚技术有限公司 Push service-based power consumption control method and mobile terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104598315A (en) * 2014-12-12 2015-05-06 广州三星通信技术研究有限公司 Memory managing method, device and terminal
CN104462952A (en) * 2014-12-31 2015-03-25 北京奇虎科技有限公司 Method and device for preventing self-starting of application
CN105354492A (en) * 2015-10-16 2016-02-24 珠海格力电器股份有限公司 Mobile communication terminal, message notification control method and device thereof
CN105653323A (en) * 2015-12-28 2016-06-08 小米科技有限责任公司 Application program management method and device
CN106022103A (en) * 2016-05-18 2016-10-12 广东欧珀移动通信有限公司 Method and apparatus for preventing application from being started through pushing platform component
CN106528791A (en) * 2016-11-08 2017-03-22 宇龙计算机通信科技(深圳)有限公司 Method and device for pushing notification messages
CN106648029A (en) * 2016-12-28 2017-05-10 努比亚技术有限公司 Push service-based power consumption control method and mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107819871A (en) * 2017-11-22 2018-03-20 北京小米移动软件有限公司 Application state determines method and device
CN108021488A (en) * 2017-11-30 2018-05-11 北京小米移动软件有限公司 application program monitoring method and device
CN109831484A (en) * 2018-12-29 2019-05-31 天津字节跳动科技有限公司 Electoral machinery, device, medium and the electronic equipment of the shared push SDK service of APP

Similar Documents

Publication Publication Date Title
CN104991789A (en) Method and apparatus for starting application
CN105653276A (en) Method and apparatus for language setting
CN104951336A (en) Application program installation method and device
CN105447109A (en) Key word searching method and apparatus
CN105530167A (en) Method and device for setting group name card
CN105389113A (en) Gesture-based application control method and apparatus and terminal
CN105554215A (en) Automatic selection dialing method and device, and mobile terminal
CN105511852A (en) Screen display processing method, and device and equipment
CN106953969A (en) The screen control method and device of mobile terminal
CN107343311A (en) Push control method and device
CN104461358B (en) Light the method and device of screen
CN103905442A (en) Wakeup method and device in data synchronization
CN105245705A (en) Telephone prompting method and device
CN107943370A (en) Advertisement display method, device and storage medium
CN108011990A (en) Contact management method and device
CN106453774A (en) Method and apparatus for displaying contact information
CN105227660A (en) A kind of based reminding method and device
CN106506808B (en) Method and device for prompting communication message
CN105260221A (en) Application installation method and device
CN104780256A (en) Address book management method and device and intelligent terminal
CN106775240A (en) The triggering method of application program, device and terminal
CN106791145A (en) Short message management method and device
CN105786561A (en) Process calling method and apparatus
CN106789554A (en) The method and device of short message treatment
CN105099758A (en) Methods and devices for transmitting update data package

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171110