Hi Kasun, 3. Handle notifications so that it doesn't send unnecessary network calls (Ex: If the user sets 2 second notification interval, we do not need to send continuous network calls if the first call has not given the response)
I think the second notification should not be processed until the process of the previous notification is fully processed. This is because once we get the request from the first call, it needs to be processed and a feedback needs to be sent to the server. Once the server sends a null message, the process continues. So till it receives a null response, all other triggers (wake up) should be discarded. Regards, Nira On Tue, Jun 17, 2014 at 2:36 PM, Kasun Dananjaya Delgolla <[email protected]> wrote: > Hi All, > > I'm in the process of improving the EMM Android Agent and following are > the improvement that I'm currently focusing on, > > 1. Camera disable during policy apply- jira- > https://wso2.org/jira/browse/EMM-648 > > To handle this, we need to kill the camera process if it's running, > before executing camera lock via the device administrator. The reason is, > android OS does not allow locking while user's using the camera since it > distracts the user experience. So before executing it, we need to kill the > camera process. > > 2. After Login, pending notification must be called- currently takes time > for first one to start > > Currently our EMM Agent waits for a server push notification/local push > to be triggered to get the pending operation list from the server for the > first time after registration. So to make it a bit faster, we are going to > execute a pending operation call on register success event. > > 3. Handle notifications so that it doesn't send unnecessary network calls > > (Ex: If the user sets 2 second notification interval, we do not need to > send continuous network calls if the first call has not given the response) > > Please share your ideas on this. > > Thanks > -- > Kasun Dananjaya Delgolla > > Software Engineer > WSO2 Inc.; http://wso2.com > lean.enterprise.middleware > Tel: +94 11 214 5345 > Fax: +94 11 2145300 > Mob: + 94 777 997 850 > Blog: http://kddcodingparadise.blogspot.com > Linkedin: *http://lk.linkedin.com/in/kasundananjaya > <http://lk.linkedin.com/in/kasundananjaya>* > -- *Niranjan Karunanandham* Senior Software Engineer - WSO2 Inc. WSO2 Inc.: http://www.wso2.com M: +94 777 749 661 <http:///>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
